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

Side by Side Diff: Source/core/dom/Element.idl

Issue 340903002: Revert "Subpixel precision for clientWidth, offsetWidth, scrollTop et al" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLBodyElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com> 3 * Copyright (C) 2006 Samuel Weinig <sam.weinig@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 // DOM4 54 // DOM4
55 [Reflect] attribute DOMString id; 55 [Reflect] attribute DOMString id;
56 [TreatReturnedNullStringAs=Null] readonly attribute DOMString namespaceURI; 56 [TreatReturnedNullStringAs=Null] readonly attribute DOMString namespaceURI;
57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter] attribute DOMString prefix; 57 [TreatReturnedNullStringAs=Null, TreatNullAs=NullString, RaisesException=Set ter] attribute DOMString prefix;
58 [TreatReturnedNullStringAs=Null] readonly attribute DOMString localName; 58 [TreatReturnedNullStringAs=Null] readonly attribute DOMString localName;
59 59
60 [RaisesException] boolean matches(DOMString selectors); 60 [RaisesException] boolean matches(DOMString selectors);
61 61
62 // Common extensions 62 // Common extensions
63 63
64 readonly attribute double offsetLeft; 64 readonly attribute long offsetLeft;
65 readonly attribute double offsetTop; 65 readonly attribute long offsetTop;
66 readonly attribute double offsetWidth; 66 readonly attribute long offsetWidth;
67 readonly attribute double offsetHeight; 67 readonly attribute long offsetHeight;
68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent; 68 [ImplementedAs=offsetParentForBindings, PerWorldBindings] readonly attribute Element offsetParent;
69 readonly attribute double clientLeft; 69 readonly attribute long clientLeft;
70 readonly attribute double clientTop; 70 readonly attribute long clientTop;
71 readonly attribute double clientWidth; 71 readonly attribute long clientWidth;
72 readonly attribute double clientHeight; 72 readonly attribute long clientHeight;
73 73
74 // FIXME: should be: 74 // FIXME: should be:
75 // attribute (Dictionary or double) scrollLeft; 75 // attribute (Dictionary or double) scrollLeft;
76 // attribute (Dictionary or double) scrollTop; 76 // attribute (Dictionary or double) scrollTop;
77 // http://crbug.com/240176 77 // http://crbug.com/240176
78 [Custom=Setter] attribute double scrollLeft; 78 [Custom=Setter] attribute long scrollLeft;
79 [Custom=Setter] attribute double scrollTop; 79 [Custom=Setter] attribute long scrollTop;
80 readonly attribute double scrollWidth; 80 readonly attribute long scrollWidth;
81 readonly attribute double scrollHeight; 81 readonly attribute long scrollHeight;
82 82
83 void focus(); 83 void focus();
84 void blur(); 84 void blur();
85 void scrollIntoView(optional boolean alignWithTop); 85 void scrollIntoView(optional boolean alignWithTop);
86 86
87 // WebKit extensions 87 // WebKit extensions
88 88
89 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded); 89 [MeasureAs=ElementScrollIntoViewIfNeeded] void scrollIntoViewIfNeeded(option al boolean centerIfNeeded);
90 [MeasureAs=ElementScrollByLines] void scrollByLines([Default=Undefined] opti onal long lines); 90 [MeasureAs=ElementScrollByLines] void scrollByLines([Default=Undefined] opti onal long lines);
91 [MeasureAs=ElementScrollByPages] void scrollByPages([Default=Undefined] opti onal long pages); 91 [MeasureAs=ElementScrollByPages] void scrollByPages([Default=Undefined] opti onal long pages);
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 [RuntimeEnabled=Touch] attribute EventHandler ontouchend; 139 [RuntimeEnabled=Touch] attribute EventHandler ontouchend;
140 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove; 140 [RuntimeEnabled=Touch] attribute EventHandler ontouchmove;
141 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart; 141 [RuntimeEnabled=Touch] attribute EventHandler ontouchstart;
142 attribute EventHandler onwebkitfullscreenchange; 142 attribute EventHandler onwebkitfullscreenchange;
143 attribute EventHandler onwebkitfullscreenerror; 143 attribute EventHandler onwebkitfullscreenerror;
144 [LogActivity=SetterOnly] attribute EventHandler onwheel; 144 [LogActivity=SetterOnly] attribute EventHandler onwheel;
145 }; 145 };
146 146
147 Element implements ParentNode; 147 Element implements ParentNode;
148 Element implements ChildNode; 148 Element implements ChildNode;
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLBodyElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698