Index: Source/core/layout/LayoutObject.cpp |
diff --git a/Source/core/layout/LayoutObject.cpp b/Source/core/layout/LayoutObject.cpp |
index 7037025a8fff00f2645a457082c524125d6f95cb..d458e2232d0d8c21b0c12b9dacc024ddc6c30136 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(); |
} |
@@ -1397,8 +1397,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 |