Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
index e0126396032491a8a71876ef69f4bec95f6e2f0d..2f4426d145cd2eb6969840fd571e711a69bda304 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp |
@@ -1704,10 +1704,12 @@ ResourcePriority LayoutBox::computeResourcePriority() const { |
} |
void LayoutBox::locationChanged() { |
- // The location may change because of layout of other objects. Should check |
- // this object for paint invalidation. |
- if (!needsLayout()) |
+ // The location may change because of layout of other objects. Should update |
+ // paint properties and check for paint invalidation. |
+ if (!needsLayout()) { |
setMayNeedPaintInvalidation(); |
+ setNeedsPaintPropertyUpdate(); |
+ } |
} |
void LayoutBox::sizeChanged() { |