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

Unified Diff: Source/core/css/CSSToStyleMap.cpp

Issue 54383006: Lift integer restriction on border-image-width and border-image-outset (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@length-relative-die-step-4-4
Patch Set: Re-added reftest to test rendering Created 7 years, 1 month 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 | « Source/core/css/CSSParser-in.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSToStyleMap.cpp
diff --git a/Source/core/css/CSSToStyleMap.cpp b/Source/core/css/CSSToStyleMap.cpp
index fa7e34356b43fb5aa6c757c2fc21fee6a76eb05c..10530f487d080f296c199bb96fe74af669677dbe 100644
--- a/Source/core/css/CSSToStyleMap.cpp
+++ b/Source/core/css/CSSToStyleMap.cpp
@@ -625,28 +625,28 @@ BorderImageLengthBox CSSToStyleMap::mapNinePieceImageQuad(CSSValue* value) const
BorderImageLengthBox box; // Defaults to 'auto' so we don't have to handle that explicitly below.
Quad* slices = borderWidths->getQuadValue();
if (slices->top()->isNumber())
- box.setTop(slices->top()->getIntValue());
+ box.setTop(slices->top()->getDoubleValue());
else if (slices->top()->isPercentage())
box.setTop(Length(slices->top()->getDoubleValue(CSSPrimitiveValue::CSS_PERCENTAGE), Percent));
else if (slices->top()->getValueID() != CSSValueAuto)
box.setTop(slices->top()->computeLength<Length>(style(), rootElementStyle(), zoom));
if (slices->right()->isNumber())
- box.setRight(slices->right()->getIntValue());
+ box.setRight(slices->right()->getDoubleValue());
else if (slices->right()->isPercentage())
box.setRight(Length(slices->right()->getDoubleValue(CSSPrimitiveValue::CSS_PERCENTAGE), Percent));
else if (slices->right()->getValueID() != CSSValueAuto)
box.setRight(slices->right()->computeLength<Length>(style(), rootElementStyle(), zoom));
if (slices->bottom()->isNumber())
- box.setBottom(slices->bottom()->getIntValue());
+ box.setBottom(slices->bottom()->getDoubleValue());
else if (slices->bottom()->isPercentage())
box.setBottom(Length(slices->bottom()->getDoubleValue(CSSPrimitiveValue::CSS_PERCENTAGE), Percent));
else if (slices->bottom()->getValueID() != CSSValueAuto)
box.setBottom(slices->bottom()->computeLength<Length>(style(), rootElementStyle(), zoom));
if (slices->left()->isNumber())
- box.setLeft(slices->left()->getIntValue());
+ box.setLeft(slices->left()->getDoubleValue());
else if (slices->left()->isPercentage())
box.setLeft(Length(slices->left()->getDoubleValue(CSSPrimitiveValue::CSS_PERCENTAGE), Percent));
else if (slices->left()->getValueID() != CSSValueAuto)
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698