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

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

Issue 1580293008: Fix incorrect handling of small non-percentage value for 'startOffset' on <textPath> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/SVGLength.h
diff --git a/third_party/WebKit/Source/core/svg/SVGLength.h b/third_party/WebKit/Source/core/svg/SVGLength.h
index 20f9c50f7a0d7933678007a45baee9d15bd518df..5c5767d4fa6a40a302a05f161a13f40e46a56dd7 100644
--- a/third_party/WebKit/Source/core/svg/SVGLength.h
+++ b/third_party/WebKit/Source/core/svg/SVGLength.h
@@ -91,6 +91,7 @@ public:
|| (unitType >= CSSPrimitiveValue::UnitType::ViewportWidth && unitType <= CSSPrimitiveValue::UnitType::ViewportMax);
}
inline bool isRelative() const { return isRelativeUnit(m_value->typeWithCalcResolved()); }
+ inline bool isPercentage() const { return m_value->typeWithCalcResolved() == CSSPrimitiveValue::UnitType::Percentage; }
bool isZero() const
{

Powered by Google App Engine
This is Rietveld 408576698