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

Unified Diff: Source/WebCore/page/FrameView.cpp

Issue 13462003: Add support for accelerated fixed root background (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@background-attachment-fixed2
Patch Set: Adding a FIXME for a bit that'll need fixing. Created 7 years, 8 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: Source/WebCore/page/FrameView.cpp
diff --git a/Source/WebCore/page/FrameView.cpp b/Source/WebCore/page/FrameView.cpp
index 485bd41868a374c6d5ceac2fb9994fbfa0017706..a6fcbb95fbc596e63296242383cf04773a5034b4 100644
--- a/Source/WebCore/page/FrameView.cpp
+++ b/Source/WebCore/page/FrameView.cpp
@@ -195,6 +195,7 @@ FrameView::FrameView(Frame* frame)
, m_shouldAutoSize(false)
, m_inAutoSize(false)
, m_didRunAutosize(false)
+ , m_hasFixedRootBackgroundLayer(false)
, m_headerHeight(0)
, m_footerHeight(0)
#if ENABLE(CSS_FILTERS)
@@ -2004,7 +2005,7 @@ void FrameView::updateFixedElementsAfterScrolling()
if (!shouldUpdateFixedElementsAfterScrolling())
return;
- if (m_nestedLayoutCount <= 1 && hasViewportConstrainedObjects()) {
+ if (m_nestedLayoutCount <= 1 && (hasViewportConstrainedObjects() || hasFixedRootBackgroundLayer())) {
jamesr 2013/04/09 19:45:48 why do you need to updateCompositingLayers() on sc
if (RenderView* renderView = this->renderView())
renderView->compositor()->updateCompositingLayers(CompositingUpdateOnScroll);
}

Powered by Google App Engine
This is Rietveld 408576698