Changeset 184874 in webkit


Ignore:
Timestamp:
May 26, 2015 2:24:05 PM (9 years ago)
Author:
commit-queue@webkit.org
Message:

SVG fragment identifier rendering issue
https://bugs.webkit.org/show_bug.cgi?id=137328

Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2015-05-26
Reviewed by Darin Adler.

Source/WebCore:

This is a follow up for http://trac.webkit.org/changeset/164983. In this
changeset, scrolling to the fragment should have been added before the
the paint to guarantee setting the proper display position for the SVG
fragment.

Test: svg/css/svg-resource-fragment-identifier-order.html

  • svg/graphics/SVGImage.cpp:

(WebCore::SVGImage::draw): Move view->scrollToFragment() before calling
view->paint().

LayoutTests:

  • svg/css/svg-resource-fragment-identifier-order-expected.html: Added.
  • svg/css/svg-resource-fragment-identifier-order.html: Added.

Ensure the SVG fragment is drawn correctly when the same SVG image is
referenced multiple times.

Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r184870 r184874  
     12015-05-26  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        SVG fragment identifier rendering issue
     4        https://bugs.webkit.org/show_bug.cgi?id=137328
     5
     6        Reviewed by Darin Adler.
     7
     8        * svg/css/svg-resource-fragment-identifier-order-expected.html: Added.
     9        * svg/css/svg-resource-fragment-identifier-order.html: Added.
     10        Ensure the SVG fragment is drawn correctly when the same SVG image is
     11        referenced multiple times.
     12
    1132015-05-26  Daniel Bates  <dabates@apple.com>
    214
  • trunk/Source/WebCore/ChangeLog

    r184872 r184874  
     12015-05-26  Said Abou-Hallawa  <sabouhallawa@apple.com>
     2
     3        SVG fragment identifier rendering issue
     4        https://bugs.webkit.org/show_bug.cgi?id=137328
     5
     6        Reviewed by Darin Adler.
     7
     8        This is a follow up for http://trac.webkit.org/changeset/164983. In this
     9        changeset, scrolling to the fragment should have been added before the
     10        the paint to guarantee setting the proper display position for the SVG
     11        fragment.
     12
     13        Test: svg/css/svg-resource-fragment-identifier-order.html
     14
     15        * svg/graphics/SVGImage.cpp:
     16        (WebCore::SVGImage::draw): Move view->scrollToFragment() before calling
     17        view->paint().
     18
    1192015-05-26  Youenn Fablet  <youenn.fablet@crf.canon.fr>
    220
  • trunk/Source/WebCore/svg/graphics/SVGImage.cpp

    r184852 r184874  
    250250    view->resize(containerSize());
    251251
     252    if (!m_url.isEmpty())
     253        view->scrollToFragment(m_url);
     254   
    252255    if (view->needsLayout())
    253256        view->layout();
     
    259262
    260263    stateSaver.restore();
    261 
    262     if (!m_url.isEmpty())
    263         view->scrollToFragment(m_url);
    264264
    265265    if (imageObserver())
Note: See TracChangeset for help on using the changeset viewer.