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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.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/paint/PaintLayerResourceInfo.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp b/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp
index 5bd4753dc0fdf625c178b6a47adbdd437395062d..56d2e8ce00a5a8e1a6c82936fbcc6e94286ff965 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerResourceInfo.cpp
@@ -43,30 +43,30 @@ PaintLayerResourceInfo::~PaintLayerResourceInfo() {
TreeScope* PaintLayerResourceInfo::treeScope() {
DCHECK(m_layer);
- Node* node = m_layer->layoutObject()->node();
+ Node* node = m_layer->layoutObject().node();
return node ? &node->treeScope() : nullptr;
}
void PaintLayerResourceInfo::resourceContentChanged() {
DCHECK(m_layer);
- LayoutObject* layoutObject = m_layer->layoutObject();
- layoutObject->setShouldDoFullPaintInvalidation();
+ LayoutObject& layoutObject = m_layer->layoutObject();
+ layoutObject.setShouldDoFullPaintInvalidation();
// The effect paint property nodes depend on SVG filters so we need
// to update these properties when filter resources change.
- layoutObject->setNeedsPaintPropertyUpdate();
- const ComputedStyle& style = layoutObject->styleRef();
+ layoutObject.setNeedsPaintPropertyUpdate();
+ const ComputedStyle& style = layoutObject.styleRef();
if (style.hasFilter() && style.filter().hasReferenceFilter())
invalidateFilterChain();
}
void PaintLayerResourceInfo::resourceElementChanged() {
DCHECK(m_layer);
- LayoutObject* layoutObject = m_layer->layoutObject();
- layoutObject->setShouldDoFullPaintInvalidation();
+ LayoutObject& layoutObject = m_layer->layoutObject();
+ layoutObject.setShouldDoFullPaintInvalidation();
// The effect paint property nodes depend on SVG filters so we need
// to update these properties when filter resources change.
- layoutObject->setNeedsPaintPropertyUpdate();
- const ComputedStyle& style = layoutObject->styleRef();
+ layoutObject.setNeedsPaintPropertyUpdate();
+ const ComputedStyle& style = layoutObject.styleRef();
if (style.hasFilter() && style.filter().hasReferenceFilter())
invalidateFilterChain();
}

Powered by Google App Engine
This is Rietveld 408576698