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

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

Issue 2774753004: Add SVGFitToViewBox::hasValidViewBox helper (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7017697f2871ab39c7d4d90f7b18ae5df3743f22..4b85c56ab217adbfc7c666b143e0d356d10339ce 100644
--- a/third_party/WebKit/Source/core/svg/SVGFitToViewBox.h
+++ b/third_party/WebKit/Source/core/svg/SVGFitToViewBox.h
@@ -23,7 +23,6 @@
#define SVGFitToViewBox_h
#include "core/SVGNames.h"
-#include "core/dom/QualifiedName.h"
#include "core/svg/SVGAnimatedPreserveAspectRatio.h"
#include "core/svg/SVGAnimatedRect.h"
#include "core/svg/SVGPreserveAspectRatio.h"
@@ -33,6 +32,7 @@
namespace blink {
class AffineTransform;
+class QualifiedName;
class SVGFitToViewBox : public GarbageCollectedMixin {
public:
@@ -43,6 +43,7 @@ class SVGFitToViewBox : public GarbageCollectedMixin {
static bool isKnownAttribute(const QualifiedName&);
+ bool hasValidViewBox() const { return m_viewBox->currentValue()->isValid(); }
bool hasEmptyViewBox() const {
return m_viewBox->currentValue()->isValid() &&
m_viewBox->currentValue()->value().isEmpty();
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698