| Index: third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h b/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h
|
| index abc81b2b141aadae42acf9e36afbbfb9ee37b020..5ddd94dc7c793344ddcc35e820831cb762c17b44 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h
|
| +++ b/third_party/WebKit/Source/core/layout/svg/SVGTextMetrics.h
|
| @@ -24,6 +24,7 @@
|
|
|
| namespace blink {
|
|
|
| +class FloatSize;
|
| enum class FontOrientation;
|
|
|
| class SVGTextMetrics {
|
| @@ -37,12 +38,14 @@ class SVGTextMetrics {
|
|
|
| bool IsEmpty() const { return !width_ && !height_ && length_ <= 1; }
|
|
|
| - float Width() const { return width_; }
|
| - float Height() const { return height_; }
|
| + FloatSize Extents() const;
|
|
|
| // TODO(kojii): We should store logical width (advance) and height instead
|
| // of storing physical and calculate logical. crbug.com/544767
|
| float Advance(FontOrientation) const;
|
| + float Advance(bool is_vertical) const {
|
| + return is_vertical ? height_ : width_;
|
| + }
|
| unsigned length() const { return length_; }
|
|
|
| private:
|
|
|