| Index: Source/core/layout/LayoutObject.cpp
|
| diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp
|
| index 88b60d2fbc360530e0a083ec3ebabdbf1ee4e8b1..7b247a5371ad645c9f70e757f1faff6d39959bc2 100644
|
| --- a/Source/core/layout/LayoutObject.cpp
|
| +++ b/Source/core/layout/LayoutObject.cpp
|
| @@ -998,11 +998,11 @@ IntRect LayoutObject::absoluteBoundingBoxRectIgnoringTransforms() const
|
| return result;
|
| }
|
|
|
| -IntRect LayoutObject::absoluteFocusRingBoundingBoxRect() const
|
| +IntRect LayoutObject::absoluteOutlineBoundingBoxRect() const
|
| {
|
| Vector<LayoutRect> rects;
|
| const LayoutBoxModelObject* container = enclosingLayer()->layoutObject();
|
| - addFocusRingRects(rects, LayoutPoint(localToContainerPoint(FloatPoint(), container)));
|
| + addOutlineRects(rects, LayoutPoint(localToContainerPoint(FloatPoint(), container)));
|
| return container->localToAbsoluteQuad(FloatQuad(unionRect(rects))).enclosingBoundingBox();
|
| }
|
|
|
| @@ -1396,8 +1396,9 @@ PaintInvalidationReason LayoutObject::paintInvalidationReason(const LayoutBoxMod
|
| // The focus ring may change because of position change of descendants. For simplicity,
|
| // just force full paint invalidation if this object is marked for checking paint invalidation
|
| // for any reason.
|
| + // TODO(wangxianzhu): extend this to all outlines.
|
| if (styleRef().outlineStyleIsAuto())
|
| - return PaintInvalidationFocusRing;
|
| + return PaintInvalidationOutline;
|
|
|
| // If the bounds are the same then we know that none of the statements below
|
| // can match, so we can early out since we will not need to do any
|
|
|