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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.h

Issue 2259493004: Fix Compositing of Opaque Scrolling Layers and Add Tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix comment. Created 4 years, 3 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/paint/PaintLayerScrollableAreaTest.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.h
index fd4d9abd643968e902616e0d7dcc2c3d61444c3f..f59205536a1984d9bd579b4d8fa112784bf59708 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableAreaTest.h
@@ -3,7 +3,7 @@
// found in the LICENSE file.
#include "core/frame/FrameView.h"
-#include "core/layout/LayoutBoxModelObject.h"
+#include "core/layout/LayoutBlock.h"
#include "core/layout/LayoutTestHelper.h"
#include "core/paint/PaintLayer.h"
#include "core/paint/PaintLayerScrollableArea.h"
@@ -17,6 +17,12 @@ public:
: RenderingTest(SingleChildFrameLoaderClient::create())
{ }
+ bool shouldPaintBackgroundOntoScrollingContentsLayer(const char* elementId)
+ {
+ PaintLayer* paintLayer = toLayoutBlock(getLayoutObjectByElementId(elementId))->layer();
+ return paintLayer->shouldPaintBackgroundOntoScrollingContentsLayer();
+ }
+
private:
void SetUp() override
{

Powered by Google App Engine
This is Rietveld 408576698