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

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

Issue 2531943002: Unify HTML and SVG coordinates of LayoutSVGText (Closed)
Patch Set: - Created 4 years, 1 month 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
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;
+
static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*);
static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*);

Powered by Google App Engine
This is Rietveld 408576698