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

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

Issue 1419823005: Invalidate background-attachment:fixed on scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2526
Patch Set: Created 5 years, 2 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
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 d44efe6fc3efdf1def00b1a36f100d17decf688f..c6b8a0fbda42d31485e963c1e0dcc42045819685 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -254,7 +254,7 @@ void LayoutBox::styleDidChange(StyleDifference diff, const ComputedStyle* oldSty
if (LayoutMultiColumnSpannerPlaceholder* placeholder = this->spannerPlaceholder())
placeholder->layoutObjectInFlowThreadStyleDidChange(oldStyle);
- updateSlowRepaintStatusAfterStyleChange();
+ updateBackgroundAttachmentFixedStatusAfterStyleChange();
if (oldStyle) {
LayoutFlowThread* flowThread = flowThreadContainingBlock();
@@ -263,7 +263,7 @@ void LayoutBox::styleDidChange(StyleDifference diff, const ComputedStyle* oldSty
}
}
-void LayoutBox::updateSlowRepaintStatusAfterStyleChange()
+void LayoutBox::updateBackgroundAttachmentFixedStatusAfterStyleChange()
{
if (!frameView())
return;
@@ -277,15 +277,15 @@ void LayoutBox::updateSlowRepaintStatusAfterStyleChange()
return;
// An object needs to be repainted on frame scroll when it has background-attachment:fixed.
- // LayoutObject is responsible for painting root background, thus the root element (and the
+ // LayoutView is responsible for painting root background, thus the root element (and the
// body element if html element has no background) skips painting backgrounds.
- bool isSlowRepaintObject = !isDocumentElement() && !backgroundStolenForBeingBody() && styleRef().hasFixedBackgroundImage();
+ bool isBackgroundAttachmentFixedObject = !isDocumentElement() && !backgroundStolenForBeingBody() && styleRef().hasFixedBackgroundImage();
if (isLayoutView() && view()->compositor()->supportsFixedRootBackgroundCompositing()) {
if (styleRef().hasEntirelyFixedBackground())
- isSlowRepaintObject = false;
+ isBackgroundAttachmentFixedObject = false;
}
- setIsSlowRepaintObject(isSlowRepaintObject);
+ setIsBackgroundAttachmentFixedObject(isBackgroundAttachmentFixedObject);
}
void LayoutBox::updateShapeOutsideInfoAfterStyleChange(const ComputedStyle& style, const ComputedStyle* oldStyle)
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698