| 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 {
|
|
|