| Index: third_party/WebKit/Source/core/layout/LayoutBox.h
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.h b/third_party/WebKit/Source/core/layout/LayoutBox.h
|
| index bf3138cff291d724f581a13f5a1fe78a4d6e5170..8b8c257bfa5cdb863001c3daeb96e65a70c0580a 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.h
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.h
|
| @@ -1073,7 +1073,13 @@
|
|
|
| bool isBox() const = delete; // This will catch anyone doing an unnecessary check.
|
|
|
| - void frameRectChanged();
|
| + void frameRectChanged()
|
| + {
|
| + // The frame rect may change because of layout of other objects.
|
| + // Should check this object for paint invalidation.
|
| + if (!needsLayout())
|
| + setMayNeedPaintInvalidation();
|
| + }
|
|
|
| virtual bool isInSelfHitTestingPhase(HitTestAction hitTestAction) const { return hitTestAction == HitTestForeground; }
|
|
|
|
|