Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(31)

Issue 1161863004: Change Layout::adjustCompositedContainerForSpecialAncestors into an overloaded version of container… (Closed)

Created:
4 years, 11 months ago by pilgrim_google
Modified:
4 years, 11 months ago
CC:
blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Change Layout::adjustCompositedContainerForSpecialAncestors into an overloaded version of containerForPaintInvalidation only one caller (LayoutBoxModelObject) -- all other callers call the original containerForPaintInvalidation without parameters BUG=436473

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -4 lines) Patch
M Source/core/layout/LayoutBoxModelObject.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutObject.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/layout/LayoutObject.cpp View 2 chunks +2 lines, -2 lines 1 comment Download

Messages

Total messages: 5 (1 generated)
pilgrim_google
4 years, 11 months ago (2015-06-02 14:08:08 UTC) #2
leviw_travelin_and_unemployed
https://codereview.chromium.org/1161863004/diff/1/Source/core/layout/LayoutObject.cpp File Source/core/layout/LayoutObject.cpp (right): https://codereview.chromium.org/1161863004/diff/1/Source/core/layout/LayoutObject.cpp#newcode1065 Source/core/layout/LayoutObject.cpp:1065: const LayoutBoxModelObject* LayoutObject::containerForPaintInvalidation(const LayoutBoxModelObject* paintInvalidationContainer) const I like the ...
4 years, 11 months ago (2015-06-02 17:49:51 UTC) #3
pilgrim_google
On 2015/06/02 at 17:49:51, leviw wrote: > Calling LayoutObject::containerForPaintInvalidation with a LayoutBoxModelObject* parameter named "paintInvalidationContainer" ...
4 years, 11 months ago (2015-06-02 20:21:19 UTC) #4
leviw_travelin_and_unemployed
4 years, 11 months ago (2015-06-02 20:23:14 UTC) #5
On 2015/06/02 at 20:21:19, pilgrim wrote:
> On 2015/06/02 at 17:49:51, leviw wrote:
> > Calling LayoutObject::containerForPaintInvalidation with a
LayoutBoxModelObject* parameter named "paintInvalidationContainer" doesn't
explain to me what's actually going on in the function. Also passing in a null
pointer to that method doesn't do the same thing as calling
LayoutObject::containerForPaintInvalidation without an argument, even though
it's clear on inspection that it's prepared to deal with null pointers.
> 
> If I fix it so cfpi(null) is the same as cfpi(), would you accept it?

I'd expect something like this: cfpi(LayoutBoxModelObject* =
enclosingCompositedContainer()) where the default parameter is what a caller
wants.

Powered by Google App Engine
This is Rietveld 408576698