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

Unified Diff: third_party/WebKit/Source/core/svg/SVGFitToViewBox.h

Issue 1420263002: Remove some dead code in SVG "mixins" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months 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/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(); }
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGCursorElement.h ('k') | third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698