Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(384)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2501833002: Fix bug of animated table col/section/row background (Closed)
Patch Set: - Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 05643deba378b8642aee9c3e9e8619f8f2115a49..c34902ecec7e5da81b2824dc66d53d77890c1574 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -1891,6 +1891,13 @@ void LayoutObject::styleDidChange(StyleDifference diff,
frame->localFrameRoot()->eventHandler().scheduleCursorUpdate();
}
}
+
+ if (diff.needsPaintInvalidation() && oldStyle) {
+ if (resolveColor(*oldStyle, CSSPropertyBackgroundColor) !=
+ resolveColor(CSSPropertyBackgroundColor) ||
+ oldStyle->backgroundLayers() != styleRef().backgroundLayers())
+ setBackgroundChangedSinceLastPaintInvalidation();
+ }
}
void LayoutObject::propagateStyleToAnonymousChildren() {
@@ -3451,6 +3458,7 @@ void LayoutObject::clearPaintInvalidationFlags() {
m_bitfields.setMayNeedPaintInvalidationSubtree(false);
m_bitfields.setMayNeedPaintInvalidationAnimatedBackgroundImage(false);
m_bitfields.setShouldInvalidateSelection(false);
+ m_bitfields.setBackgroundChangedSinceLastPaintInvalidation(false);
}
bool LayoutObject::isAllowedToModifyLayoutTreeStructure(Document& document) {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/layout/LayoutTableBoxComponent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698