| Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| index 1e9173c2b78273dd22c98e71d32ffa7bb6c1cd35..02286c733ec291a86b1ed9ed0a9ad331ad5299be 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -1141,11 +1141,17 @@ LayoutRect LayoutInline::absoluteVisualRect() const {
|
| for (LayoutBlock* currBlock = containingBlock();
|
| currBlock && currBlock->isAnonymousBlock();
|
| currBlock = toLayoutBlock(currBlock->nextSibling())) {
|
| + bool walkChildrenOnly = !currBlock->childrenInline();
|
| for (LayoutObject* curr = currBlock->firstChild(); curr;
|
| curr = curr->nextSibling()) {
|
| LayoutRect rect(curr->localVisualRect());
|
| context(FloatRect(rect));
|
| - if (curr == endContinuation) {
|
| + if (walkChildrenOnly)
|
| + continue;
|
| + for (LayoutObject* walker = curr; walker;
|
| + walker = walker->nextInPreOrder(curr)) {
|
| + if (walker != endContinuation)
|
| + continue;
|
| LayoutRect rect(enclosingIntRect(floatResult));
|
| mapToVisualRectInAncestorSpace(view(), rect);
|
| return rect;
|
|
|