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

Unified Diff: third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp

Issue 2692853016: Change PaintLayer::m_layoutObject to a reference. (Closed)
Patch Set: Added TODO Created 3 years, 10 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/compositing/GraphicsLayerTreeBuilder.cpp
diff --git a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp
index 51ffead721e65061681dff0ba91607aea1ff4c79..9eea8cc8647b9533061cf2b53e388bb0dd60c703 100644
--- a/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp
+++ b/third_party/WebKit/Source/core/layout/compositing/GraphicsLayerTreeBuilder.cpp
@@ -40,7 +40,7 @@ GraphicsLayerTreeBuilder::GraphicsLayerTreeBuilder() {}
GraphicsLayerTreeBuilder::~GraphicsLayerTreeBuilder() {}
static bool shouldAppendLayer(const PaintLayer& layer) {
- Node* node = layer.layoutObject()->node();
+ Node* node = layer.layoutObject().node();
if (node && isHTMLVideoElement(*node)) {
HTMLVideoElement* element = toHTMLVideoElement(node);
if (element->isFullscreen() && element->usesOverlayFullscreenVideo())
@@ -94,7 +94,7 @@ void GraphicsLayerTreeBuilder::rebuild(PaintLayer& layer,
if (hasCompositedLayerMapping) {
bool parented = false;
- if (layer.layoutObject()->isLayoutPart())
+ if (layer.layoutObject().isLayoutPart())
parented = PaintLayerCompositor::attachFrameContentLayersToIframeLayer(
toLayoutPart(layer.layoutObject()));

Powered by Google App Engine
This is Rietveld 408576698