Changeset 142645 in webkit


Ignore:
Timestamp:
Feb 12, 2013 11:13:56 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Background size width specified in viewport percentage units not working
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.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r142640 r142645  
     12013-02-12  Uday Kiran  <udaykiran@motorola.com>
     2
     3        Background size width specified in viewport percentage units not working
     4        https://bugs.webkit.org/show_bug.cgi?id=109536
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Added a test for background image width specified in viewport percentage unit.
     9
     10        * fast/backgrounds/size/backgroundSize-viewportPercentage-width-expected.html: Added.
     11        * fast/backgrounds/size/backgroundSize-viewportPercentage-width.html: Added.
     12
    1132013-02-12  Pablo Flouret  <pablof@motorola.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r142642 r142645  
     12013-02-12  Uday Kiran  <udaykiran@motorola.com>
     2
     3        Background size width specified in viewport percentage units not working
     4        https://bugs.webkit.org/show_bug.cgi?id=109536
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Corrected the check for viewport percentage unit while calculating
     9        background image width.
     10
     11        Test: fast/backgrounds/size/backgroundSize-viewportPercentage-width.html
     12
     13        * rendering/RenderBoxModelObject.cpp:
     14        (WebCore::RenderBoxModelObject::calculateFillTileSize):
     15
    1162013-02-12  Abhishek Arya  <inferno@chromium.org>
    217
  • trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp

    r142527 r142645  
    10231023            if (layerWidth.isFixed())
    10241024                tileSize.setWidth(layerWidth.value());
    1025             else if (layerWidth.isPercent() || layerHeight.isViewportPercentage())
     1025            else if (layerWidth.isPercent() || layerWidth.isViewportPercentage())
    10261026                tileSize.setWidth(valueForLength(layerWidth, positioningAreaSize.width(), renderView));
    10271027           
Note: See TracChangeset for help on using the changeset viewer.