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

Unified Diff: Source/core/layout/svg/LayoutSVGText.h

Issue 1308983006: Don't drop type information returned from locateRenderSVGTextAncestor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Dedupe. Created 5 years, 4 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
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInline.cpp ('k') | Source/core/layout/svg/LayoutSVGText.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/svg/LayoutSVGText.h
diff --git a/Source/core/layout/svg/LayoutSVGText.h b/Source/core/layout/svg/LayoutSVGText.h
index aacd1858454cc0e288ab9b76f3c3df7a0962568b..a179b39b3064cfa040f262ceec1d6f2b3e09fa47 100644
--- a/Source/core/layout/svg/LayoutSVGText.h
+++ b/Source/core/layout/svg/LayoutSVGText.h
@@ -30,7 +30,6 @@ namespace blink {
class LayoutSVGInlineText;
class SVGTextElement;
-class LayoutSVGInlineText;
class LayoutSVGText final : public LayoutSVGBlock {
public:
@@ -43,6 +42,8 @@ public:
void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; }
FloatRect paintInvalidationRectInLocalCoordinates() const override;
+ FloatRect objectBoundingBox() const override { return FloatRect(frameRect()); }
+ FloatRect strokeBoundingBox() const override;
static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*);
static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*);
@@ -75,9 +76,6 @@ private:
void removeChild(LayoutObject*) override;
void willBeDestroyed() override;
- FloatRect objectBoundingBox() const override { return FloatRect(frameRect()); }
- FloatRect strokeBoundingBox() const override;
-
RootInlineBox* createRootInlineBox() override;
bool shouldHandleSubtreeMutations() const;
« no previous file with comments | « Source/core/layout/svg/LayoutSVGInline.cpp ('k') | Source/core/layout/svg/LayoutSVGText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698