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

Unified Diff: Source/core/dom/ContainerNode.cpp

Issue 295513003: add 'slow' prefix to RenderObject's firstChild() / lastChild() methods (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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
« no previous file with comments | « Source/core/accessibility/AXRenderObject.cpp ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ContainerNode.cpp
diff --git a/Source/core/dom/ContainerNode.cpp b/Source/core/dom/ContainerNode.cpp
index 6ca8c750dcb71d8149f0f75a96f779280d900b39..fa07edbff0d34b663df5464866612b70465b801f 100644
--- a/Source/core/dom/ContainerNode.cpp
+++ b/Source/core/dom/ContainerNode.cpp
@@ -704,8 +704,8 @@ bool ContainerNode::getUpperLeftCorner(FloatPoint& point) const
// find the next text/image child, to get a position
while (o) {
RenderObject* p = o;
- if (o->firstChild()) {
- o = o->firstChild();
+ if (RenderObject* oFirstChild = o->slowFirstChild()) {
+ o = oFirstChild;
} else if (o->nextSibling()) {
o = o->nextSibling();
} else {
@@ -764,8 +764,8 @@ bool ContainerNode::getLowerRightCorner(FloatPoint& point) const
// find the last text/image child, to get a position
while (o) {
- if (o->lastChild()) {
- o = o->lastChild();
+ if (RenderObject* oLastChild = o->slowLastChild()) {
+ o = oLastChild;
} else if (o->previousSibling()) {
o = o->previousSibling();
} else {
« no previous file with comments | « Source/core/accessibility/AXRenderObject.cpp ('k') | Source/core/dom/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698