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

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

Issue 1394193003: Invalidate background-attachment:fixed on scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index 66181526573775c15dd8406d8fdccdbb10fc8c3f..7fa07084bffd4938794886f0f2bcbe730cd38191 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -3437,9 +3437,9 @@ void LayoutObject::setIsSlowRepaintObject(bool isSlowRepaintObject)
return;
m_bitfields.setIsSlowRepaintObject(isSlowRepaintObject);
if (isSlowRepaintObject)
- frameView()->addSlowRepaintObject();
+ frameView()->addBackgroundAttachmentFixedObject(this);
else
- frameView()->removeSlowRepaintObject();
+ frameView()->removeBackgroundAttachmentFixedObject(this);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698