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

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

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/PaintLayerStackingNode.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
index 05c043b508026f2d22b0ee3de6c5ccff7f32e5e4..40e6b85dd053fd42e17fd7cd51ebc963502bbcb6 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerStackingNode.h
@@ -98,10 +98,10 @@ class CORE_EXPORT PaintLayerStackingNode {
explicit PaintLayerStackingNode(PaintLayer*);
~PaintLayerStackingNode();
- int zIndex() const { return layoutObject()->style()->zIndex(); }
+ int zIndex() const { return layoutObject().style()->zIndex(); }
bool isStackingContext() const {
- return layoutObject()->style()->isStackingContext();
+ return layoutObject().style()->isStackingContext();
}
// Whether the node is stacked. See documentation for the class about
@@ -176,7 +176,7 @@ class CORE_EXPORT PaintLayerStackingNode {
PaintLayerCompositor* compositor() const;
// We can't return a LayoutBox as LayoutInline can be a stacking context.
- LayoutBoxModelObject* layoutObject() const;
+ LayoutBoxModelObject& layoutObject() const;
PaintLayer* m_layer;

Powered by Google App Engine
This is Rietveld 408576698