iOS build fix after http://trac.webkit.org/changeset/167937.
authorenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Apr 2014 17:28:52 +0000 (17:28 +0000)
committerenrica@apple.com <enrica@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 29 Apr 2014 17:28:52 +0000 (17:28 +0000)
Unreviewed.

* rendering/RenderThemeIOS.mm:
(WebCore::RenderThemeIOS::adjustButtonStyle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167941 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderThemeIOS.mm

index 616ee39..3d69858 100644 (file)
@@ -1,3 +1,11 @@
+2014-04-29  Enrica Casucci  <enrica@apple.com>
+
+        iOS build fix after http://trac.webkit.org/changeset/167937.
+        Unreviewed.
+
+        * rendering/RenderThemeIOS.mm:
+        (WebCore::RenderThemeIOS::adjustButtonStyle):
+
 2014-04-29  Hans Muller  <hmuller@adobe.com>
 
         [CSS Shapes] off-by-one error in Shape::createRasterShape()
index 659878a..6b847f6 100644 (file)
@@ -28,6 +28,7 @@
 #if PLATFORM(IOS)
 
 #import "CSSPrimitiveValue.h"
+#import "CSSToLengthConversionData.h"
 #import "CSSValueKeywords.h"
 #import "DateComponents.h"
 #import "Document.h"
@@ -934,7 +935,7 @@ void RenderThemeIOS::adjustButtonStyle(StyleResolver* selector, RenderStyle* sty
     // CSSPrimitiveValue::computeLengthInt only needs the element's style to calculate em lengths.
     // Since the element might not be in a document, just pass nullptr for the root element style.
     RefPtr<CSSPrimitiveValue> emSize = CSSPrimitiveValue::create(1.0, CSSPrimitiveValue::CSS_EMS);
-    int pixels = emSize->computeLength<int>(CSSToLengthConversionData(style, nullptr, 1.0));
+    int pixels = emSize->computeLength<int>(CSSToLengthConversionData(style, nullptr, 1.0, false));
     style->setPaddingBox(LengthBox(0, pixels, 0, pixels));
 
     if (!element)