Unreviewed.
Another build fix
* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
* platform/graphics/ca/mac/PlatformCALayerMac.mm:
(PlatformCALayer::setContentsScale):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75649
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2011-01-12 Chris Marrin <cmarrin@apple.com>
+
+ Unreviewed.
+
+ Another build fix
+
+ * platform/graphics/ca/GraphicsLayerCA.cpp:
+ (WebCore::GraphicsLayerCA::clampedContentsScaleForScale):
+ * platform/graphics/ca/mac/PlatformCALayerMac.mm:
+ (PlatformCALayer::setContentsScale):
+
2011-01-11 Matthew Delaney <mdelaney@apple.com>
Reviewed by Simon Fraser.
2011-01-11 Matthew Delaney <mdelaney@apple.com>
Reviewed by Simon Fraser.
const float minScale = 0.01f;
// Avoid very slight scale changes that would be doing extra work for no benefit
const float minScale = 0.01f;
// Avoid very slight scale changes that would be doing extra work for no benefit
- const float maxAllowableDelta = 0.05;
+ const float maxAllowableDelta = 0.05f;
// Clamp
float result = max(minScale, min(scale, maxScale));
// Clamp
float result = max(minScale, min(scale, maxScale));
BEGIN_BLOCK_OBJC_EXCEPTIONS
[m_layer.get() setContentsScale:value];
END_BLOCK_OBJC_EXCEPTIONS
BEGIN_BLOCK_OBJC_EXCEPTIONS
[m_layer.get() setContentsScale:value];
END_BLOCK_OBJC_EXCEPTIONS
+#else
+ UNUSED_PARAM(value);