| Index: third_party/WebKit/Source/core/svg/SVGFitToViewBox.h
|
| diff --git a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.h b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.h
|
| index db2bd05955391e8d3828acc5d00c17dbbde13299..89432009d431d99b408055b2506fb96700029d36 100644
|
| --- a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.h
|
| +++ b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.h
|
| @@ -23,21 +23,16 @@
|
| #define SVGFitToViewBox_h
|
|
|
| #include "core/SVGNames.h"
|
| -#include "core/dom/Document.h"
|
| #include "core/dom/QualifiedName.h"
|
| #include "core/svg/SVGAnimatedPreserveAspectRatio.h"
|
| #include "core/svg/SVGAnimatedRect.h"
|
| -#include "core/svg/SVGDocumentExtensions.h"
|
| -#include "core/svg/SVGParsingError.h"
|
| #include "core/svg/SVGPreserveAspectRatio.h"
|
| #include "core/svg/SVGRect.h"
|
| #include "platform/heap/Handle.h"
|
| -#include "wtf/HashSet.h"
|
|
|
| namespace blink {
|
|
|
| class AffineTransform;
|
| -class Document;
|
|
|
| class SVGFitToViewBox : public WillBeGarbageCollectedMixin {
|
| public:
|
| @@ -49,20 +44,6 @@ public:
|
| static AffineTransform viewBoxToViewTransform(const FloatRect& viewBoxRect, PassRefPtrWillBeRawPtr<SVGPreserveAspectRatio>, float viewWidth, float viewHeight);
|
|
|
| static bool isKnownAttribute(const QualifiedName&);
|
| - static void addSupportedAttributes(HashSet<QualifiedName>&);
|
| -
|
| - bool parseAttribute(const QualifiedName& name, const AtomicString& value, Document& document, SVGParsingError& parseError)
|
| - {
|
| - if (name == SVGNames::viewBoxAttr) {
|
| - m_viewBox->setBaseValueAsString(value, parseError);
|
| - return true;
|
| - }
|
| - if (name == SVGNames::preserveAspectRatioAttr) {
|
| - m_preserveAspectRatio->setBaseValueAsString(value, parseError);
|
| - return true;
|
| - }
|
| - return false;
|
| - }
|
|
|
| bool hasEmptyViewBox() const { return m_viewBox->currentValue()->isValid() && m_viewBox->currentValue()->value().isEmpty(); }
|
|
|
|
|