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

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

Issue 664433002: [SVG] Move negative viewBox width/height reporting to SVGAnimatedViewBoxRect (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: || Created 6 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: Source/core/svg/SVGFitToViewBox.h
diff --git a/Source/core/svg/SVGFitToViewBox.h b/Source/core/svg/SVGFitToViewBox.h
index 036b05b4b7e7d83264158c7c11e9a2e4278c5e1d..17d8e55fe4d057c66a21550203112327b2090ea5 100644
--- a/Source/core/svg/SVGFitToViewBox.h
+++ b/Source/core/svg/SVGFitToViewBox.h
@@ -54,14 +54,6 @@ public:
{
if (name == SVGNames::viewBoxAttr) {
m_viewBox->setBaseValueAsString(value, parseError);
- if (m_viewBox->baseValue()->width() < 0.0f) {
- document.accessSVGExtensions().reportError("A negative value for ViewBox width is not allowed");
- m_viewBox->baseValue()->setInvalid();
- }
- if (m_viewBox->baseValue()->height() < 0.0f) {
- document.accessSVGExtensions().reportError("A negative value for ViewBox height is not allowed");
- m_viewBox->baseValue()->setInvalid();
- }
return true;
}
if (name == SVGNames::preserveAspectRatioAttr) {
« no previous file with comments | « LayoutTests/platform/mac/svg/custom/viewbox-syntax-expected.txt ('k') | Source/core/svg/SVGFitToViewBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698