Commit 481cdc9e authored by mstensho's avatar mstensho Committed by Commit bot

Don't include LineLayoutItem.h from SVGTextContentElement.h.

Review-Url: https://codereview.chromium.org/2342203004
Cr-Commit-Position: refs/heads/master@{#419274}
parent f5009cf8
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "core/editing/FrameSelection.h" #include "core/editing/FrameSelection.h"
#include "core/frame/LocalFrame.h" #include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h" #include "core/frame/UseCounter.h"
#include "core/layout/api/LineLayoutItem.h"
#include "core/layout/svg/SVGTextQuery.h" #include "core/layout/svg/SVGTextQuery.h"
namespace blink { namespace blink {
...@@ -249,7 +250,7 @@ bool SVGTextContentElement::selfHasRelativeLengths() const ...@@ -249,7 +250,7 @@ bool SVGTextContentElement::selfHasRelativeLengths() const
return true; return true;
} }
SVGTextContentElement* SVGTextContentElement::elementFromLineLayoutItem(LineLayoutItem lineLayoutItem) SVGTextContentElement* SVGTextContentElement::elementFromLineLayoutItem(const LineLayoutItem& lineLayoutItem)
{ {
if (!lineLayoutItem || (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline())) if (!lineLayoutItem || (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline()))
return nullptr; return nullptr;
......
...@@ -21,7 +21,6 @@ ...@@ -21,7 +21,6 @@
#ifndef SVGTextContentElement_h #ifndef SVGTextContentElement_h
#define SVGTextContentElement_h #define SVGTextContentElement_h
#include "core/layout/api/LineLayoutItem.h"
#include "core/svg/SVGAnimatedBoolean.h" #include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedEnumeration.h" #include "core/svg/SVGAnimatedEnumeration.h"
#include "core/svg/SVGAnimatedLength.h" #include "core/svg/SVGAnimatedLength.h"
...@@ -32,6 +31,7 @@ ...@@ -32,6 +31,7 @@
namespace blink { namespace blink {
class ExceptionState; class ExceptionState;
class LineLayoutItem;
enum SVGLengthAdjustType { enum SVGLengthAdjustType {
SVGLengthAdjustUnknown, SVGLengthAdjustUnknown,
...@@ -60,7 +60,7 @@ public: ...@@ -60,7 +60,7 @@ public:
int getCharNumAtPosition(SVGPointTearOff*, ExceptionState&); int getCharNumAtPosition(SVGPointTearOff*, ExceptionState&);
void selectSubString(unsigned charnum, unsigned nchars, ExceptionState&); void selectSubString(unsigned charnum, unsigned nchars, ExceptionState&);
static SVGTextContentElement* elementFromLineLayoutItem(const LineLayoutItem); static SVGTextContentElement* elementFromLineLayoutItem(const LineLayoutItem&);
SVGAnimatedLength* textLength() { return m_textLength.get(); } SVGAnimatedLength* textLength() { return m_textLength.get(); }
bool textLengthIsSpecifiedByUser() { return m_textLengthIsSpecifiedByUser; } bool textLengthIsSpecifiedByUser() { return m_textLengthIsSpecifiedByUser; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment