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 @@
#include "core/editing/FrameSelection.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/UseCounter.h"
#include "core/layout/api/LineLayoutItem.h"
#include "core/layout/svg/SVGTextQuery.h"
namespace blink {
......@@ -249,7 +250,7 @@ bool SVGTextContentElement::selfHasRelativeLengths() const
return true;
}
SVGTextContentElement* SVGTextContentElement::elementFromLineLayoutItem(LineLayoutItem lineLayoutItem)
SVGTextContentElement* SVGTextContentElement::elementFromLineLayoutItem(const LineLayoutItem& lineLayoutItem)
{
if (!lineLayoutItem || (!lineLayoutItem.isSVGText() && !lineLayoutItem.isSVGInline()))
return nullptr;
......
......@@ -21,7 +21,6 @@
#ifndef SVGTextContentElement_h
#define SVGTextContentElement_h
#include "core/layout/api/LineLayoutItem.h"
#include "core/svg/SVGAnimatedBoolean.h"
#include "core/svg/SVGAnimatedEnumeration.h"
#include "core/svg/SVGAnimatedLength.h"
......@@ -32,6 +31,7 @@
namespace blink {
class ExceptionState;
class LineLayoutItem;
enum SVGLengthAdjustType {
SVGLengthAdjustUnknown,
......@@ -60,7 +60,7 @@ public:
int getCharNumAtPosition(SVGPointTearOff*, ExceptionState&);
void selectSubString(unsigned charnum, unsigned nchars, ExceptionState&);
static SVGTextContentElement* elementFromLineLayoutItem(const LineLayoutItem);
static SVGTextContentElement* elementFromLineLayoutItem(const LineLayoutItem&);
SVGAnimatedLength* textLength() { return m_textLength.get(); }
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