| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 const Attribute* findAttributeByName(const QualifiedName&) const; | 177 const Attribute* findAttributeByName(const QualifiedName&) const; |
| 178 size_t findAttributeIndexByName(const QualifiedName& name) const { return el
ementData()->findAttributeIndexByName(name); } | 178 size_t findAttributeIndexByName(const QualifiedName& name) const { return el
ementData()->findAttributeIndexByName(name); } |
| 179 size_t findAttributeIndexByName(const AtomicString& name, bool shouldIgnoreA
ttributeCase) const { return elementData()->findAttributeIndexByName(name, shoul
dIgnoreAttributeCase); } | 179 size_t findAttributeIndexByName(const AtomicString& name, bool shouldIgnoreA
ttributeCase) const { return elementData()->findAttributeIndexByName(name, shoul
dIgnoreAttributeCase); } |
| 180 | 180 |
| 181 void scrollIntoView(bool alignToTop = true); | 181 void scrollIntoView(bool alignToTop = true); |
| 182 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); | 182 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); |
| 183 | 183 |
| 184 void scrollByLines(int lines); | 184 void scrollByLines(int lines); |
| 185 void scrollByPages(int pages); | 185 void scrollByPages(int pages); |
| 186 | 186 |
| 187 double offsetLeft(); | 187 int offsetLeft(); |
| 188 double offsetTop(); | 188 int offsetTop(); |
| 189 double offsetWidth(); | 189 int offsetWidth(); |
| 190 double offsetHeight(); | 190 int offsetHeight(); |
| 191 | 191 |
| 192 // FIXME: Replace uses of offsetParent in the platform with calls | 192 // FIXME: Replace uses of offsetParent in the platform with calls |
| 193 // to the render layer and merge offsetParentForBindings and offsetParent. | 193 // to the render layer and merge offsetParentForBindings and offsetParent. |
| 194 Element* offsetParentForBindings(); | 194 Element* offsetParentForBindings(); |
| 195 | 195 |
| 196 Element* offsetParent(); | 196 Element* offsetParent(); |
| 197 double clientLeft(); | 197 int clientLeft(); |
| 198 double clientTop(); | 198 int clientTop(); |
| 199 double clientWidth(); | 199 int clientWidth(); |
| 200 double clientHeight(); | 200 int clientHeight(); |
| 201 virtual double scrollLeft(); | 201 virtual int scrollLeft(); |
| 202 virtual double scrollTop(); | 202 virtual int scrollTop(); |
| 203 virtual void setScrollLeft(double); | 203 virtual void setScrollLeft(int); |
| 204 virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, Except
ionState&); | 204 virtual void setScrollLeft(const Dictionary& scrollOptionsHorizontal, Except
ionState&); |
| 205 virtual void setScrollTop(double); | 205 virtual void setScrollTop(int); |
| 206 virtual void setScrollTop(const Dictionary& scrollOptionsVertical, Exception
State&); | 206 virtual void setScrollTop(const Dictionary& scrollOptionsVertical, Exception
State&); |
| 207 virtual double scrollWidth(); | 207 virtual int scrollWidth(); |
| 208 virtual double scrollHeight(); | 208 virtual int scrollHeight(); |
| 209 | 209 |
| 210 IntRect boundsInRootViewSpace(); | 210 IntRect boundsInRootViewSpace(); |
| 211 | 211 |
| 212 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects(); | 212 PassRefPtrWillBeRawPtr<ClientRectList> getClientRects(); |
| 213 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect(); | 213 PassRefPtrWillBeRawPtr<ClientRect> getBoundingClientRect(); |
| 214 | 214 |
| 215 // Returns the absolute bounding box translated into screen coordinates: | 215 // Returns the absolute bounding box translated into screen coordinates: |
| 216 IntRect screenRect() const; | 216 IntRect screenRect() const; |
| 217 | 217 |
| 218 virtual void didMoveToNewDocument(Document&) OVERRIDE; | 218 virtual void didMoveToNewDocument(Document&) OVERRIDE; |
| (...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 884 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 884 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 885 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 885 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 886 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 886 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 887 { \ | 887 { \ |
| 888 return adoptRefWillBeNoop(new T(tagName, document)); \ | 888 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 889 } | 889 } |
| 890 | 890 |
| 891 } // namespace | 891 } // namespace |
| 892 | 892 |
| 893 #endif | 893 #endif |
| OLD | NEW |