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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 1978933002: [Layout API] Use layoutViewItem() in Internals (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index be9f12d15210d8861813274e286c3558c15cd091..caacbef761333e2989dfbb9aa42aed198ba602b6 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2007,7 +2007,7 @@ void Internals::forceFullRepaint(Document* document, ExceptionState& exceptionSt
void Internals::startTrackingPaintInvalidationObjects()
{
ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
- GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking();
+ GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->view()->layoutViewItem().layer()->graphicsLayerBacking();
if (graphicsLayer->drawsContent())
graphicsLayer->getPaintController().startTrackingPaintInvalidationObjects();
}
@@ -2015,7 +2015,7 @@ void Internals::startTrackingPaintInvalidationObjects()
void Internals::stopTrackingPaintInvalidationObjects()
{
ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
- GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking();
+ GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->view()->layoutViewItem().layer()->graphicsLayerBacking();
if (graphicsLayer->drawsContent())
graphicsLayer->getPaintController().stopTrackingPaintInvalidationObjects();
}
@@ -2023,7 +2023,7 @@ void Internals::stopTrackingPaintInvalidationObjects()
Vector<String> Internals::trackedPaintInvalidationObjects()
{
ASSERT(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
- GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->view()->layoutView()->layer()->graphicsLayerBacking();
+ GraphicsLayer* graphicsLayer = toLocalFrame(frame()->page()->mainFrame())->view()->layoutViewItem().layer()->graphicsLayerBacking();
if (!graphicsLayer->drawsContent())
return Vector<String>();
return graphicsLayer->getPaintController().trackedPaintInvalidationObjects();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698