Changeset 152178 in webkit


Ignore:
Timestamp:
Jun 28, 2013 11:00:53 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

SVG relayout problem when displayed with different image box heights
https://bugs.webkit.org/show_bug.cgi?id=118140

Patch by Morten Stenshorne <mstensho@opera.com> on 2013-06-28
Reviewed by Philip Rogers.

Source/WebCore:

If the root element is an SVG, its position and height are affected
by the view height.

Test: svg/as-image/same-source-different-height.html

  • rendering/RenderView.cpp:

(WebCore::RenderView::layout):

LayoutTests:

  • svg/as-image/same-source-different-height-expected.html: Added.
  • svg/as-image/same-source-different-height.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r152172 r152178  
     12013-06-28  Morten Stenshorne  <mstensho@opera.com>
     2
     3        SVG relayout problem when displayed with different image box heights
     4        https://bugs.webkit.org/show_bug.cgi?id=118140
     5
     6        Reviewed by Philip Rogers.
     7
     8        * svg/as-image/same-source-different-height-expected.html: Added.
     9        * svg/as-image/same-source-different-height.html: Added.
     10
    1112013-06-28  Mario Sanchez Prada  <mario.prada@samsung.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r152175 r152178  
     12013-06-28  Morten Stenshorne  <mstensho@opera.com>
     2
     3        SVG relayout problem when displayed with different image box heights
     4        https://bugs.webkit.org/show_bug.cgi?id=118140
     5
     6        Reviewed by Philip Rogers.
     7
     8        If the root element is an SVG, its position and height are affected
     9        by the view height.
     10
     11        Test: svg/as-image/same-source-different-height.html
     12
     13        * rendering/RenderView.cpp:
     14        (WebCore::RenderView::layout):
     15
    1162013-06-28  Simon Fraser  <simon.fraser@apple.com>
    217
  • trunk/Source/WebCore/rendering/RenderView.cpp

    r151322 r152178  
    281281                    || child->style()->logicalHeight().isViewportPercentage()
    282282                    || child->style()->logicalMinHeight().isViewportPercentage()
    283                     || child->style()->logicalMaxHeight().isViewportPercentage())
     283                    || child->style()->logicalMaxHeight().isViewportPercentage()
     284#if ENABLE(SVG)
     285                    || child->isSVGRoot()
     286#endif
     287                )
    284288                child->setChildNeedsLayout(true, MarkOnlyThis);
    285289        }
Note: See TracChangeset for help on using the changeset viewer.