Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Issue 10867073: Adding polyfills for MouseEvent.offsetX and MouseEvent.offsetY so they work on FF. (Closed)

Created:
8 years, 4 months ago by blois
Modified:
8 years, 3 months ago
Reviewers:
vsm, Jacob
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Adding polyfills for MouseEvent.offsetX and MouseEvent.offsetY so they work on FF. BUG=1087 Committed: https://code.google.com/p/dart/source/detail?r=11411

Patch Set 1 #

Total comments: 2

Patch Set 2 : Adding doc comments and unit test.wq #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -6 lines) Patch
M lib/dom/scripts/systemhtml.py View 1 chunk +2 lines, -0 lines 0 comments Download
A lib/dom/templates/html/dart2js/impl_MouseEvent.darttemplate View 1 chunk +38 lines, -0 lines 0 comments Download
M lib/html/dart2js/html_dart2js.dart View 3 chunks +35 lines, -4 lines 0 comments Download
M lib/html/doc/interface/MouseEvent.dartdoc View 1 1 chunk +12 lines, -2 lines 0 comments Download
M tests/html/event_test.dart View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
blois
8 years, 4 months ago (2012-08-25 00:28:06 UTC) #1
vsm
lgtm. Do you have a test for this you can also check in?
8 years, 3 months ago (2012-08-27 17:34:07 UTC) #2
Jacob
https://chromiumcodereview.appspot.com/10867073/diff/1/lib/dom/templates/html/dart2js/impl_MouseEvent.darttemplate File lib/dom/templates/html/dart2js/impl_MouseEvent.darttemplate (right): https://chromiumcodereview.appspot.com/10867073/diff/1/lib/dom/templates/html/dart2js/impl_MouseEvent.darttemplate#newcode18 lib/dom/templates/html/dart2js/impl_MouseEvent.darttemplate:18: return this.clientX - this.target.$dom_getBoundingClientRect().left; perhaps cache this value as ...
8 years, 3 months ago (2012-08-27 19:18:51 UTC) #3
blois
I flushed out an existing unit test to add offsetX/Y checks and added documentation for ...
8 years, 3 months ago (2012-08-27 20:12:16 UTC) #4
Jacob
8 years, 3 months ago (2012-08-27 20:14:20 UTC) #5
lgtm

Powered by Google App Engine
This is Rietveld 408576698