Index: Source/core/css/resolver/StyleBuilderCustom.h |
diff --git a/Source/core/css/resolver/StyleBuilderCustom.h b/Source/core/css/resolver/StyleBuilderCustom.h |
index bb1528e6f7ce0b1e49c19204b25fabd696f06cc0..e2156f0d62c00ceffd976ad33fe7fec567439226 100644 |
--- a/Source/core/css/resolver/StyleBuilderCustom.h |
+++ b/Source/core/css/resolver/StyleBuilderCustom.h |
@@ -69,7 +69,7 @@ T StyleBuilderConverter::convertLineWidth(StyleResolverState& state, CSSValue* v |
if (valueID == CSSValueThick) |
return 5; |
if (primitiveValue->isViewportPercentageLength()) |
- return primitiveValue->viewportPercentageLength().value(); |
+ return intValueForLength(primitiveValue->viewportPercentageLength(), 0, state.document().renderView()); |
rune
2013/10/10 11:59:45
To reviewer:
I should have converted to float ins
eae
2013/10/10 15:25:01
Ints is right for borders. Good catch.
|
if (valueID == CSSValueInvalid) { |
float zoom = state.style()->effectiveZoom(); |
// Any original result that was >= 1 should not be allowed to fall below 1. |