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

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

Issue 994903003: Merge Element::offsetParentForBindings() into offsetParent() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 9 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 | « no previous file | Source/core/dom/Element.cpp » ('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) 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-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 AttributeCollection attributesWithoutUpdate() const; 164 AttributeCollection attributesWithoutUpdate() const;
165 165
166 void scrollIntoView(bool alignToTop = true); 166 void scrollIntoView(bool alignToTop = true);
167 void scrollIntoViewIfNeeded(bool centerIfNeeded = true); 167 void scrollIntoViewIfNeeded(bool centerIfNeeded = true);
168 168
169 int offsetLeft(); 169 int offsetLeft();
170 int offsetTop(); 170 int offsetTop();
171 int offsetWidth(); 171 int offsetWidth();
172 int offsetHeight(); 172 int offsetHeight();
173 173
174 // FIXME: Replace uses of offsetParent in the platform with calls
175 // to the render layer and merge offsetParentForBindings and offsetParent.
176 Element* offsetParentForBindings();
177
178 Element* offsetParent(); 174 Element* offsetParent();
179 int clientLeft(); 175 int clientLeft();
180 int clientTop(); 176 int clientTop();
181 int clientWidth(); 177 int clientWidth();
182 int clientHeight(); 178 int clientHeight();
183 virtual double scrollLeft(); 179 virtual double scrollLeft();
184 virtual double scrollTop(); 180 virtual double scrollTop();
185 virtual void setScrollLeft(double); 181 virtual void setScrollLeft(double);
186 virtual void setScrollTop(double); 182 virtual void setScrollTop(double);
187 virtual int scrollWidth(); 183 virtual int scrollWidth();
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
879 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 875 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
880 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 876 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
881 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 877 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
882 { \ 878 { \
883 return adoptRefWillBeNoop(new T(tagName, document)); \ 879 return adoptRefWillBeNoop(new T(tagName, document)); \
884 } 880 }
885 881
886 } // namespace 882 } // namespace
887 883
888 #endif // Element_h 884 #endif // Element_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698