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

Unified Diff: third_party/WebKit/Source/core/paint/PrePaintTreeWalk.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/PrePaintTreeWalk.cpp
diff --git a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
index cc5c551ef9dc8ba924630365ea05fb83580e61a4..a1b871ee917adf1029a0a9301c6bf0d0371ef9ed 100644
--- a/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
+++ b/third_party/WebKit/Source/core/paint/PrePaintTreeWalk.cpp
@@ -83,7 +83,7 @@ static void updateAuxiliaryObjectProperties(const LayoutObject& object,
paintLayer->updateAncestorOverflowLayer(context.ancestorOverflowPaintLayer);
if (object.styleRef().position() == EPosition::kSticky) {
- paintLayer->layoutObject()->updateStickyPositionConstraints();
+ paintLayer->layoutObject().updateStickyPositionConstraints();
// Sticky position constraints and ancestor overflow scroller affect the
// sticky layer position, so we need to update it again here.
@@ -138,7 +138,7 @@ void PrePaintTreeWalk::invalidatePaintLayerOptimizationsIfNeeded(
PaintLayer& paintLayer = *toLayoutBoxModelObject(object).layer();
PropertyTreeState ancestorState =
*ancestorTransformedOrRootPaintLayer.layoutObject()
- ->paintProperties()
+ .paintProperties()
->localBorderBoxProperties();
#ifdef CHECK_CLIP_RECTS
@@ -147,10 +147,10 @@ void PrePaintTreeWalk::invalidatePaintLayerOptimizationsIfNeeded(
if (ancestorTransformedOrRootPaintLayer.compositingState() ==
PaintsIntoOwnBacking &&
ancestorTransformedOrRootPaintLayer.layoutObject()
- ->paintProperties()
+ .paintProperties()
->overflowClip()) {
ancestorState.setClip(ancestorTransformedOrRootPaintLayer.layoutObject()
- ->paintProperties()
+ .paintProperties()
->overflowClip());
#ifdef CHECK_CLIP_RECTS
respectOverflowClip = IgnoreOverflowClip;
@@ -166,7 +166,7 @@ void PrePaintTreeWalk::invalidatePaintLayerOptimizationsIfNeeded(
RefPtr<ClipRects> clipRects = ClipRects::create();
clipRects->setOverflowClipRect(clipRectForContext(
context.current, context.currentEffect, ancestorState,
- ancestorTransformedOrRootPaintLayer.layoutObject()->paintOffset(),
+ ancestorTransformedOrRootPaintLayer.layoutObject().paintOffset(),
hasClip));
#ifdef CHECK_CLIP_RECTS
CHECK(!hasClip ||
@@ -176,7 +176,7 @@ void PrePaintTreeWalk::invalidatePaintLayerOptimizationsIfNeeded(
clipRects->setFixedClipRect(clipRectForContext(
context.fixedPosition, context.currentEffect, ancestorState,
- ancestorTransformedOrRootPaintLayer.layoutObject()->paintOffset(),
+ ancestorTransformedOrRootPaintLayer.layoutObject().paintOffset(),
hasClip));
#ifdef CHECK_CLIP_RECTS
CHECK(hasClip || clipRects->fixedClipRect() == oldClipRects.fixedClipRect())
@@ -185,7 +185,7 @@ void PrePaintTreeWalk::invalidatePaintLayerOptimizationsIfNeeded(
clipRects->setPosClipRect(clipRectForContext(
context.absolutePosition, context.currentEffect, ancestorState,
- ancestorTransformedOrRootPaintLayer.layoutObject()->paintOffset(),
+ ancestorTransformedOrRootPaintLayer.layoutObject().paintOffset(),
hasClip));
#ifdef CHECK_CLIP_RECTS
CHECK(!hasClip || clipRects->posClipRect() == oldClipRects.posClipRect())
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayerStackingNode.cpp ('k') | third_party/WebKit/Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698