Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h |
| diff --git a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h |
| index 350073f43cf0682d3f919badd70ad5b98878da83..d5e3a0f438432acf523a56ff1ab21b673e20469a 100644 |
| --- a/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h |
| +++ b/third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.h |
| @@ -65,6 +65,11 @@ struct PaintPropertyTreeBuilderContext { |
| ContainingBlockContext fixedPosition; |
| + // This is the same as current.paintOffset except when a floating object has |
|
chrishtr
2016/12/16 22:10:30
Nit: add a comma after paintOffset
|
| + // non-block ancestors under its containing block. Paint offsets of the |
| + // non-block ancestors should not be accumulated for the floating object. |
| + LayoutPoint paintOffsetForFloat; |
| + |
| // The effect hierarchy is applied by the stacking context tree. It is |
| // guaranteed that every DOM descendant is also a stacking context descendant. |
| // Therefore, we don't need extra bookkeeping for effect nodes and can |
| @@ -135,8 +140,8 @@ class PaintPropertyTreeBuilder { |
| static void updateScrollAndScrollTranslation( |
| const LayoutObject&, |
| PaintPropertyTreeBuilderContext&); |
| - static void updateOutOfFlowContext(const LayoutObject&, |
| - PaintPropertyTreeBuilderContext&); |
| + static void updateOutOfFlowAndFloatContext(const LayoutObject&, |
| + PaintPropertyTreeBuilderContext&); |
| }; |
| } // namespace blink |