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

Unified Diff: tools/dom/scripts/htmlrenamer.py

Issue 898993002: Clamp scrollX, scrollY, pageXOffset, and pageYOffset from double to int (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/dom/scripts/htmlrenamer.py
diff --git a/tools/dom/scripts/htmlrenamer.py b/tools/dom/scripts/htmlrenamer.py
index f54b81662754131ce71117522b4082678490617c..92aa17ed886adf8bb302d9ba1c1c4a90f0b4c703 100644
--- a/tools/dom/scripts/htmlrenamer.py
+++ b/tools/dom/scripts/htmlrenamer.py
@@ -380,6 +380,13 @@ private_html_members = monitored.Set('htmlrenamer.private_html_members', [
'Window.getComputedStyle',
'Window.clearInterval',
'Window.clearTimeout',
+ # TODO(tll): These have been converted from int to double in Chrome 39 for
+ # subpixel precision. Special case for backward compatibility.
+ 'Window.scrollX',
+ 'Window.scrollY',
+ 'Window.pageXOffset',
+ 'Window.pageYOffset',
+
'WindowTimers.clearInterval',
'WindowTimers.clearTimeout',
'WindowTimers.setInterval',

Powered by Google App Engine
This is Rietveld 408576698