Chromium Code Reviews| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h |
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h |
| index 9e75c81c7f8e8752d4b4ec33b867e48638825166..ba68a813e762ea64174798375a93de3d08c42017 100644 |
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h |
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h |
| @@ -42,12 +42,14 @@ class LayoutSVGText final : public LayoutSVGBlock { |
| void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } |
| void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; } |
| FloatRect visualRectInLocalSVGCoordinates() const override; |
| - FloatRect objectBoundingBox() const override { |
| - return FloatRect(frameRect()); |
| - } |
| + FloatRect objectBoundingBox() const override; |
| FloatRect strokeBoundingBox() const override; |
| bool isObjectBoundingBoxValid() const; |
| + void addOutlineRects(Vector<LayoutRect>&, |
| + const LayoutPoint& additionalOffset, |
| + IncludeBlockVisualOverflowOrNot) const override; |
|
Xianzhu
2016/11/27 18:13:34
This is to override LayoutBlock's addOutlineRects
|
| + |
| static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*); |
| static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*); |