⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 282501 in webkit


Ignore:
Timestamp:
Sep 16, 2021, 1:09:11 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r275876 - Skip style update
​https://bugs.webkit.org/show_bug.cgi?id=223365

Patch by Rob Buis <​rbuis@igalia.com> on 2021-04-13
Reviewed by Ryosuke Niwa.

Skip style update for getting the SVG bounding box
since boundingClientRect already updated style.

  • dom/Element.cpp:

(WebCore::Element::boundingAbsoluteRectWithoutLayout):

  • svg/SVGElement.cpp:

(WebCore::SVGElement::getBoundingBox):

Location:
releases/WebKitGTK/webkit-2.32/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog

    r282500 r282501  
     12021-04-13  Rob Buis  <rbuis@igalia.com>
     2
     3        Skip style update
     4        https://bugs.webkit.org/show_bug.cgi?id=223365
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Skip style update for getting the SVG bounding box
     9        since boundingClientRect already updated style.
     10
     11        * dom/Element.cpp:
     12        (WebCore::Element::boundingAbsoluteRectWithoutLayout):
     13        * svg/SVGElement.cpp:
     14        (WebCore::SVGElement::getBoundingBox):
     15
    1162021-04-12  BJ Burg  <bburg@apple.com>
    217
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/dom/Element.cpp

    r280901 r282501  
    16141614        SVGElement& svgElement = downcast<SVGElement>(*this);
    16151615        FloatRect localRect;
    1616         if (svgElement.getBoundingBox(localRect))
     1616        if (svgElement.getBoundingBox(localRect, SVGLocatable::DisallowStyleUpdate))
    16171617            quads.append(renderer->localToAbsoluteQuad(localRect));
    16181618    } else if (auto pair = listBoxElementBoundingBox(*this)) {
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/svg/SVGElement.cpp

    r280829 r282501  
    294294bool SVGElement::getBoundingBox(FloatRect& rect, SVGLocatable::StyleUpdateStrategy styleUpdateStrategy)
    295295{
     296    // FIXME: should retrieve the value from the associated RenderObject.
    296297    if (is<SVGGraphicsElement>(*this)) {
    297298        rect = downcast<SVGGraphicsElement>(*this).getBBox(styleUpdateStrategy);
Note: See TracChangeset for help on using the changeset viewer.