Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h |
| diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h |
| index 5a7dccaf27728dd86f1283997e789efb2648fc3b..eca8c085f3f71b4cc9df8c815ca5a4e11fa77696 100644 |
| --- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h |
| +++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h |
| @@ -14,8 +14,11 @@ |
| namespace blink { |
| class FillLayer; |
| +class LayoutBox; |
| class LayoutBoxModelObject; |
| +class LayoutObject; |
| class LayoutRect; |
| +class LayoutTableCell; |
| class BackgroundImageGeometry { |
| DISALLOW_NEW_EXCEPT_PLACEMENT_NEW(); |
| @@ -24,6 +27,7 @@ class BackgroundImageGeometry { |
| BackgroundImageGeometry() : m_hasNonLocalGeometry(false) {} |
| void calculate(const LayoutBoxModelObject&, |
| + const LayoutObject*, |
|
Xianzhu
2017/01/15 20:45:58
Please give the parameter a name because the metho
|
| const LayoutBoxModelObject* paintContainer, |
| const GlobalPaintFlags, |
| const FillLayer&, |
| @@ -66,17 +70,22 @@ class BackgroundImageGeometry { |
| LayoutUnit, |
| LayoutUnit, |
| LayoutUnit, |
| + LayoutUnit, |
| LayoutUnit); |
| void setRepeatY(const FillLayer&, |
| LayoutUnit, |
| LayoutUnit, |
| LayoutUnit, |
| + LayoutUnit, |
| LayoutUnit); |
| void setSpaceX(LayoutUnit, LayoutUnit, LayoutUnit); |
| void setSpaceY(LayoutUnit, LayoutUnit, LayoutUnit); |
| void useFixedAttachment(const LayoutPoint& attachmentPoint); |
| void setHasNonLocalGeometry() { m_hasNonLocalGeometry = true; } |
| + LayoutPoint getOffsetForCell(const LayoutTableCell&, const LayoutBox&); |
| + LayoutSize getPositioningAreaSizeForCell(const LayoutTableCell&, |
| + const LayoutBox&); |
| // TODO(schenney): Convert these to IntPoints for values that we snap |
| LayoutRect m_destRect; |