| 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 fefc3724aafd8d8f7eade6f11417d334acc9a356..5d11e8fe84de5c6c558eeeb83929be0ef87d376d 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp
|
| @@ -1062,9 +1062,15 @@ LayoutRect LayoutInline::visualOverflowRect() const
|
| LayoutUnit outlineOutset(style()->outlineOutsetExtent());
|
| if (outlineOutset) {
|
| Vector<LayoutRect> rects;
|
| - // We have already included outline extents of line boxes in linesVisualOverflowBoundingBox(),
|
| - // so the following just add outline rects for children and continuations.
|
| - addOutlineRectsForChildrenAndContinuations(rects, LayoutPoint(), outlineRectsShouldIncludeBlockVisualOverflow());
|
| + if (document().inNoQuirksMode()) {
|
| + // We have already included outline extents of line boxes in linesVisualOverflowBoundingBox(),
|
| + // so the following just add outline rects for children and continuations.
|
| + addOutlineRectsForChildrenAndContinuations(rects, LayoutPoint(), outlineRectsShouldIncludeBlockVisualOverflow());
|
| + } else {
|
| + // In non-standard mode, because the difference in LayoutBlock::minLineHeightForReplacedObject(),
|
| + // linesVisualOverflowBoundingBox() may not cover outline rects of lines containing replaced objects.
|
| + addOutlineRects(rects, LayoutPoint(), outlineRectsShouldIncludeBlockVisualOverflow());
|
| + }
|
| if (!rects.isEmpty()) {
|
| LayoutRect outlineRect = unionRectEvenIfEmpty(rects);
|
| outlineRect.inflate(outlineOutset);
|
|
|