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

Changeset 100316 in webkit


Ignore:
Timestamp:
Nov 15, 2011, 1:54:54 PM (15 years ago)
Author:
eae@chromium.org
Message:

Have SVGRenderTreeAsText print pixel snapped coordinates and sizes for the root and container elements.

Location:
branches/subpixellayout/Source/WebCore/rendering/svg
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderSupport.cpp

    r100188 r100316  
    5454    // Pass our local paint rect to computeRectForRepaint() which will
    5555    // map to parent coords and recurse up the parent chain.
    56     LayoutRect repaintRect = enclosingLayoutRect(object->repaintRectInLocalCoordinates());
     56    LayoutRect repaintRect = enclosingIntRect(object->repaintRectInLocalCoordinates());
    5757    object->computeRectForRepaint(repaintContainer, repaintRect);
    5858    return repaintRect;
  • branches/subpixellayout/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp

    r100215 r100316  
    342342static TextStream& writePositionAndStyle(TextStream& ts, const RenderObject& object)
    343343{
    344     ts << " " << const_cast<RenderObject&>(object).absoluteClippedOverflowRect();
     344    ts << " " << enclosingIntRect(const_cast<RenderObject&>(object).absoluteClippedOverflowRect());
    345345    writeStyle(ts, object);
    346346    return ts;
Note: See TracChangeset for help on using the changeset viewer.