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

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

Issue 2697193011: DO NOT LAND: Test no paint invalidation for LayoutText. (Closed)
Patch Set: Created 3 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutText.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 68baec2858e10ef18b15fd7e1892c1b891a5824f..51a51fc98e2e198c0f3fb5dd4ef9ece182e12659 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3369,6 +3369,9 @@ void LayoutObject::setShouldDoFullPaintInvalidation(
}
frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded();
+
+ if (isText())
+ parent()->setShouldDoFullPaintInvalidation();
}
void LayoutObject::setMayNeedPaintInvalidation() {
@@ -3377,6 +3380,8 @@ void LayoutObject::setMayNeedPaintInvalidation() {
m_bitfields.setMayNeedPaintInvalidation(true);
markAncestorsForPaintInvalidation();
frameView()->scheduleVisualUpdateForPaintInvalidationIfNeeded();
+ if (isText())
+ parent()->setShouldDoFullPaintInvalidation();
}
void LayoutObject::setMayNeedPaintInvalidationSubtree() {
@@ -3384,6 +3389,8 @@ void LayoutObject::setMayNeedPaintInvalidationSubtree() {
return;
m_bitfields.setMayNeedPaintInvalidationSubtree(true);
setMayNeedPaintInvalidation();
+ if (isText())
+ parent()->setShouldDoFullPaintInvalidation();
}
void LayoutObject::setMayNeedPaintInvalidationAnimatedBackgroundImage() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698