https://bugs.webkit.org/show_bug.cgi?id=109536
Patch by Uday Kiran <udaykiran@motorola.com> on 2013-02-12
Reviewed by Antti Koivisto.
Source/WebCore:
Corrected the check for viewport percentage unit while calculating
background image width.
Test: fast/backgrounds/size/backgroundSize-viewportPercentage-width.html
* rendering/RenderBoxModelObject.cpp:
(WebCore::RenderBoxModelObject::calculateFillTileSize):
LayoutTests:
Added a test for background image width specified in viewport percentage unit.
* fast/backgrounds/size/backgroundSize-viewportPercentage-width-expected.html: Added.
* fast/backgrounds/size/backgroundSize-viewportPercentage-width.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@142645
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2013-02-12 Uday Kiran <udaykiran@motorola.com>
+
+ Background size width specified in viewport percentage units not working
+ https://bugs.webkit.org/show_bug.cgi?id=109536
+
+ Reviewed by Antti Koivisto.
+
+ Added a test for background image width specified in viewport percentage unit.
+
+ * fast/backgrounds/size/backgroundSize-viewportPercentage-width-expected.html: Added.
+ * fast/backgrounds/size/backgroundSize-viewportPercentage-width.html: Added.
+
2013-02-12 Pablo Flouret <pablof@motorola.com>
Handle error recovery in @supports
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body>
+<div style="width: 50vw; height: 300px; background: url('resources/flower.jpg') top left / 50% 300px repeat-x"></div>
+<p><a href="https://bugs.webkit.org/show_bug.cgi?id=109536">https://bugs.webkit.org/show_bug.cgi?id=109536</a><br>
+You should see image repeated twice horizontally.</p>
+</body>
+</html>
--- /dev/null
+<!DOCTYPE html>
+<html>
+<body>
+<div style="width: 50vw; height: 300px; background: url('resources/flower.jpg') top left / 25vw 300px repeat-x"></div>
+<p><a href="https://bugs.webkit.org/show_bug.cgi?id=109536">https://bugs.webkit.org/show_bug.cgi?id=109536</a><br>
+You should see image repeated twice horizontally.</p>
+</body>
+</html>
+2013-02-12 Uday Kiran <udaykiran@motorola.com>
+
+ Background size width specified in viewport percentage units not working
+ https://bugs.webkit.org/show_bug.cgi?id=109536
+
+ Reviewed by Antti Koivisto.
+
+ Corrected the check for viewport percentage unit while calculating
+ background image width.
+
+ Test: fast/backgrounds/size/backgroundSize-viewportPercentage-width.html
+
+ * rendering/RenderBoxModelObject.cpp:
+ (WebCore::RenderBoxModelObject::calculateFillTileSize):
+
2013-02-12 Abhishek Arya <inferno@chromium.org>
Heap-use-after-free in WebCore::DeleteButtonController::enable
if (layerWidth.isFixed())
tileSize.setWidth(layerWidth.value());
- else if (layerWidth.isPercent() || layerHeight.isViewportPercentage())
+ else if (layerWidth.isPercent() || layerWidth.isViewportPercentage())
tileSize.setWidth(valueForLength(layerWidth, positioningAreaSize.width(), renderView));
if (layerHeight.isFixed())