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

Changeset 100189 in webkit


Ignore:
Timestamp:
Nov 14, 2011, 2:19:24 PM (15 years ago)
Author:
leviw@chromium.org
Message:

Reverting lengths to being stored as pixel values for the specified zoom level and adopting an enclosingIntRect model for reporting sizes in RenderTreeAsText. This vastly lowers the number of failing layout tests on our branch.

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

Legend:

Unmodified
Added
Removed
  • branches/subpixellayout/Source/WebCore/css/CSSPrimitiveValue.cpp

    r99784 r100189  
    346346{
    347347    // FIXME: Length.h no longer expects 28 bit integers, so these bounds should be INT_MAX and INT_MIN
    348     return Length(static_cast<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
     348    return Length(roundForImpreciseConversion<int, intMaxForLength, intMinForLength>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed);
    349349}
    350350
  • branches/subpixellayout/Source/WebCore/rendering/RenderTreeAsText.cpp

    r99259 r100189  
    314314        r.move(0, -toRenderTableCell(o.containingBlock())->intrinsicPaddingBefore());
    315315
     316    // FIXME: Convert layout test results to report sub-pixel values, in the meantime using enclosingIntRect
     317    // for consistency with old results.
     318    r = enclosingIntRect(r);
    316319    ts << " " << r;
    317320
Note: See TracChangeset for help on using the changeset viewer.