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

Unified Diff: third_party/WebKit/Source/core/svg/SVGLengthContext.cpp

Issue 2286543002: Add Length::isPercent and use it in tables. (Closed)
Patch Set: rebase Created 4 years, 3 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 | « third_party/WebKit/Source/core/style/GridLength.h ('k') | third_party/WebKit/Source/platform/Length.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
index 5b265e1b6e7cc5a959b1d373185a5dda1179426d..7b33d95a029b09437e1ecba752fd4e2fc53c4e4f 100644
--- a/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGLengthContext.cpp
@@ -211,7 +211,7 @@ float SVGLengthContext::valueForLength(const Length& length, const ComputedStyle
float SVGLengthContext::valueForLength(const Length& length, float zoom, SVGLengthMode mode) const
{
float dimension = 0;
- if (length.hasPercent()) {
+ if (length.isPercentOrCalc()) {
FloatSize viewportSize;
determineViewport(viewportSize);
// The viewport will be unaffected by zoom.
« no previous file with comments | « third_party/WebKit/Source/core/style/GridLength.h ('k') | third_party/WebKit/Source/platform/Length.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698