Changeset 116009 in webkit
- Timestamp:
- May 3, 2012 2:07:32 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 7 added
- 32 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r116007 r116009 1 2012-04-23 Levi Weintraub <leviw@chromium.org> 2 3 [meta] Switch away from integers representing pixels for layout/event handling/rendering 4 https://bugs.webkit.org/show_bug.cgi?id=60318 5 6 Reviewed by Eric Seidel. 7 8 * fast/sub-pixel: Added. 9 * fast/sub-pixel/client-width-height-snapping-expected.txt: Added. 10 * fast/sub-pixel/client-width-height-snapping.html: Added. 11 * fast/sub-pixel/size-of-box-with-zoom-expected.html: Added. 12 * fast/sub-pixel/size-of-box-with-zoom.html: Added. 13 * fast/sub-pixel/layout-boxes-with-zoom-expected.html: Added. 14 * fast/sub-pixel/layout-boxes-with-zoom.html: Added. 15 16 <<<<<<< .mine 17 2012-05-03 Levi Weintraub <leviw@chromium.org> 18 19 [meta] Switch away from integers representing pixels for layout/event handling/rendering 20 https://bugs.webkit.org/show_bug.cgi?id=60318 21 22 Reviewed by Eric Seidel. 23 24 * fast/sub-pixel: Added. 25 * fast/sub-pixel/client-width-height-snapping-expected.txt: Added. 26 * fast/sub-pixel/client-width-height-snapping.html: Added. 27 * fast/sub-pixel/layout-boxes-with-zoom-expected.html: Added. 28 * fast/sub-pixel/layout-boxes-with-zoom.html: Added. 29 * fast/sub-pixel/size-of-box-with-zoom-expected.html: Added. 30 * fast/sub-pixel/size-of-box-with-zoom.html: Added. 31 * platform/efl/Skipped: Skipping sub-pixel tests until platforms enabled the 32 SUBPIXEL_LAYOUT feature flag. 33 * platform/gtk-wk2/Skipped: Ditto. 34 * platform/mac-lion/Skipped: Ditto. 35 * platform/mac-snowleopard/Skipped: Ditto. 36 * platform/mac-wk2/Skipped: Ditto. 37 * platform/mac/Skipped: Ditto. 38 * platform/qt-4.8/Skipped: Ditto. 39 * platform/qt-5.0-wk1/Skipped: Ditto. 40 * platform/qt-5.0-wk2/Skipped: Ditto. 41 * platform/qt-5.0/Skipped: Ditto. 42 * platform/qt-arm/Skipped: Ditto. 43 * platform/qt-mac/Skipped: Ditto. 44 * platform/qt/Skipped: Ditto. 45 * platform/win-wk2/Skipped: Ditto. 46 * platform/win-xp/Skipped: Ditto. 47 * platform/win/Skipped: Ditto. 48 * platform/wincairo/Skipped: Ditto. 49 * platform/wk2/Skipped: Ditto. 50 51 ======= 1 52 2012-05-03 Raphael Kubo da Costa <rakuco@webkit.org> 2 53 … … 85 136 * fast/writing-mode/flipped-blocks-inline-map-local-to-container.html: 86 137 138 >>>>>>> .r116007 87 139 2012-05-03 Andreas Kling <kling@webkit.org> 88 140 -
trunk/LayoutTests/platform/efl/Skipped
r116001 r116009 2049 2049 fast/frames/transparent-scrollbar.html 2050 2050 2051 # Fail until SUBPIXEL_LAYOUT is enabled 2052 # https://bugs.webkit.org/show_bug.cgi?id=85532 2053 fast/sub-pixel/client-width-height-snapping.html 2054 fast/sub-pixel/layout-boxes-with-zoom.html 2055 fast/sub-pixel/size-of-box-with-zoom.html 2056 2051 2057 # This should only be a layer change. 2052 2058 # http://webkit.org/b/82129 -
trunk/LayoutTests/platform/gtk-wk2/Skipped
r110939 r116009 347 347 editing/text-iterator/findString-selection-disabled.html 348 348 349 # Fail until SUBPIXEL_LAYOUT is enabled 350 # https://bugs.webkit.org/show_bug.cgi?id=85532 351 fast/sub-pixel/client-width-height-snapping.html 352 fast/sub-pixel/layout-boxes-with-zoom.html 353 fast/sub-pixel/size-of-box-with-zoom.html 354 349 355 ############################################################################### 350 356 # TESTS FAILING -
trunk/LayoutTests/platform/mac-lion/Skipped
r115700 r116009 127 127 # Most if not all Java tests fail when run in WebKit1. 128 128 java/ 129 130 # Fail until SUBPIXEL_LAYOUT is enabled 131 # https://bugs.webkit.org/show_bug.cgi?id=85532 132 fast/sub-pixel/client-width-height-snapping.html 133 fast/sub-pixel/layout-boxes-with-zoom.html 134 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/mac-snowleopard/Skipped
r106463 r116009 195 195 fast/hidpi 196 196 197 # Fail until SUBPIXEL_LAYOUT is enabled 198 # https://bugs.webkit.org/show_bug.cgi?id=85532 199 fast/sub-pixel/client-width-height-snapping.html 200 fast/sub-pixel/layout-boxes-with-zoom.html 201 fast/sub-pixel/size-of-box-with-zoom.html 202 197 203 # Frame::findString does nothing on pages that prevent selection 198 204 # https://bugs.webkit.org/show_bug.cgi?id=40361 -
trunk/LayoutTests/platform/mac-wk2/Skipped
r115572 r116009 208 208 editing/spelling/spelling-marker-description.html 209 209 210 # Fail until SUBPIXEL_LAYOUT is enabled 211 # https://bugs.webkit.org/show_bug.cgi?id=85532 212 fast/sub-pixel/client-width-height-snapping.html 213 fast/sub-pixel/layout-boxes-with-zoom.html 214 fast/sub-pixel/size-of-box-with-zoom.html 215 210 216 # fast/events/pagehide-timeout.html, pageshow-pagehide-on-back-cached-with-frames.html, and 211 217 # pageshow-pagehide-on-back-cached.html flakey on Lion Intel Debug WebKit testers. -
trunk/LayoutTests/platform/mac/Skipped
r116004 r116009 806 806 scrollbars/scrollbar-miss-mousemove-disabled.html 807 807 808 # Fail until SUBPIXEL_LAYOUT is enabled 809 # https://bugs.webkit.org/show_bug.cgi?id=85532 810 fast/sub-pixel/client-width-height-snapping.html 811 fast/sub-pixel/layout-boxes-with-zoom.html 812 fast/sub-pixel/size-of-box-with-zoom.html 813 808 814 # media/audio-repaint.html sometimes fails on Lion Debug (Tests) 809 815 # https://bugs.webkit.org/show_bug.cgi?id=84357 -
trunk/LayoutTests/platform/qt-4.8/Skipped
r113235 r116009 79 79 fast/events/page-visibility-transition-test.html 80 80 81 # Fail until SUBPIXEL_LAYOUT is enabled 82 # https://bugs.webkit.org/show_bug.cgi?id=85532 83 fast/sub-pixel/client-width-height-snapping.html 84 fast/sub-pixel/layout-boxes-with-zoom.html 85 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/qt-5.0-wk1/Skipped
r113235 r116009 30 30 fast/events/page-visibility-transition-test.html 31 31 32 # Fail until SUBPIXEL_LAYOUT is enabled 33 # https://bugs.webkit.org/show_bug.cgi?id=85532 34 fast/sub-pixel/client-width-height-snapping.html 35 fast/sub-pixel/layout-boxes-with-zoom.html 36 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/qt-5.0-wk2/Skipped
r115572 r116009 594 594 # https://bugs.webkit.org/show_bug.cgi?id=84434 595 595 fast/events/touch/basic-single-touch-events.html 596 597 # Fail until SUBPIXEL_LAYOUT is enabled 598 # https://bugs.webkit.org/show_bug.cgi?id=85532 599 fast/sub-pixel/client-width-height-snapping.html 600 fast/sub-pixel/layout-boxes-with-zoom.html 601 fast/sub-pixel/size-of-box-with-zoom.html -
trunk/LayoutTests/platform/qt-5.0/Skipped
r115941 r116009 118 118 svg/hixie/error/dumpAsText/005.xml 119 119 120 # Fail until SUBPIXEL_LAYOUT is enabled 121 # https://bugs.webkit.org/show_bug.cgi?id=85532 122 fast/sub-pixel/client-width-height-snapping.html 123 fast/sub-pixel/layout-boxes-with-zoom.html 124 fast/sub-pixel/size-of-box-with-zoom.html 125 120 126 # REGRESSION(r114899) - https://bugs.webkit.org/show_bug.cgi?id=84595 121 127 editing/selection/5354455-1.html -
trunk/LayoutTests/platform/qt-arm/Skipped
r115927 r116009 205 205 fast/events/media-focus-in-standalone-media-document.html 206 206 207 # Fail until SUBPIXEL_LAYOUT is enabled 208 # https://bugs.webkit.org/show_bug.cgi?id=85532 209 fast/sub-pixel/client-width-height-snapping.html 210 fast/sub-pixel/layout-boxes-with-zoom.html 211 fast/sub-pixel/size-of-box-with-zoom.html 212 207 213 # missing layoutTestController.setPageVisibility() 208 214 fast/events/page-visibility-iframe-delete-test.html -
trunk/LayoutTests/platform/qt-mac/Skipped
r115818 r116009 5613 5613 ietestcenter/css3/text/textshadow-010.htm 5614 5614 5615 # Fail until SUBPIXEL_LAYOUT is enabled 5616 # https://bugs.webkit.org/show_bug.cgi?id=85532 5617 fast/sub-pixel/client-width-height-snapping.html 5618 fast/sub-pixel/layout-boxes-with-zoom.html 5619 fast/sub-pixel/size-of-box-with-zoom.html 5620 5615 5621 # new failing tests 5616 5622 fast/ruby/floating-ruby-text.html -
trunk/LayoutTests/platform/qt/Skipped
r116001 r116009 207 207 fast/dom/shadow/shadow-ul-li.html 208 208 fast/dom/shadow/tab-order-iframe-and-shadow.html 209 210 # Fail until SUBPIXEL_LAYOUT is enabled 211 # https://bugs.webkit.org/show_bug.cgi?id=85532 212 fast/sub-pixel/client-width-height-snapping.html 213 fast/sub-pixel/layout-boxes-with-zoom.html 214 fast/sub-pixel/size-of-box-with-zoom.html 209 215 210 216 # CSS Regions support not yet enabled. http://webkit.org/b/57312 -
trunk/LayoutTests/platform/win-wk2/Skipped
r113127 r116009 934 934 inspector/extensions/extensions-resources.html 935 935 936 # Fail until SUBPIXEL_LAYOUT is enabled 937 # https://bugs.webkit.org/show_bug.cgi?id=85532 938 fast/sub-pixel/client-width-height-snapping.html 939 fast/sub-pixel/layout-boxes-with-zoom.html 940 fast/sub-pixel/size-of-box-with-zoom.html 941 936 942 # HiDPI tests require test infrastructure enhancements 937 943 fast/hidpi -
trunk/LayoutTests/platform/win-xp/Skipped
r85479 r116009 34 34 fast/images/embed-image.html 35 35 36 # Fail until SUBPIXEL_LAYOUT is enabled 37 # https://bugs.webkit.org/show_bug.cgi?id=85532 38 fast/sub-pixel/client-width-height-snapping.html 39 fast/sub-pixel/layout-boxes-with-zoom.html 40 fast/sub-pixel/size-of-box-with-zoom.html 41 36 42 # REGRESSION (r83928 or before): Some tests failing assertions in MarkStack::internalAppend / MarkStack::drain 37 43 # https://bugs.webkit.org/show_bug.cgi?id=58657 -
trunk/LayoutTests/platform/win/Skipped
r115927 r116009 1725 1725 fast/block/lineboxcontain/font.html 1726 1726 1727 # Fail until SUBPIXEL_LAYOUT is enabled 1728 # https://bugs.webkit.org/show_bug.cgi?id=85532 1729 fast/sub-pixel/client-width-height-snapping.html 1730 fast/sub-pixel/layout-boxes-with-zoom.html 1731 fast/sub-pixel/size-of-box-with-zoom.html 1732 1727 1733 # http://webkit.org/b/82886 1728 1734 inspector/styles/override-screen-size.html -
trunk/LayoutTests/platform/wincairo/Skipped
r115927 r116009 2080 2080 fast/dom/navigator-vibration.html 2081 2081 2082 # Fail until SUBPIXEL_LAYOUT is enabled 2083 # https://bugs.webkit.org/show_bug.cgi?id=85532 2084 fast/sub-pixel/client-width-height-snapping.html 2085 fast/sub-pixel/layout-boxes-with-zoom.html 2086 fast/sub-pixel/size-of-box-with-zoom.html 2087 2082 2088 #Battery Status API is not implemented. 2083 2089 batterystatus -
trunk/LayoutTests/platform/wk2/Skipped
r115790 r116009 83 83 # Needs rebaseline 84 84 fast/js/constructor-length.html 85 86 # Fail until SUBPIXEL_LAYOUT is enabled 87 # https://bugs.webkit.org/show_bug.cgi?id=85532 88 fast/sub-pixel/client-width-height-snapping.html 89 fast/sub-pixel/layout-boxes-with-zoom.html 90 fast/sub-pixel/size-of-box-with-zoom.html 85 91 86 92 # CONSOLE MESSAGE: line 0: SVG animation pause API missing! -
trunk/Source/WebCore/ChangeLog
r116005 r116009 1 2012-04-23 Levi Weintraub <leviw@chromium.org> and Emil A Eklund <eae@chromium.org> 2 3 [meta] Switch away from integers representing pixels for layout/event handling/rendering 4 https://bugs.webkit.org/show_bug.cgi?id=60318 5 6 Reviewed by Eric Seidel. 7 8 Swapping the LayoutUnit backend to FractionalLayoutUnit from int. 9 10 FractionalLayoutUnit is a new type that uses an integer to represent a fraction of a pixel. 11 We're also adding a feature flag -- ENABLE_SUBPIXEL_LAYOUT -- that toggles this fraction 12 between 1/1 and 1/60. Initially, all platforms will default to subpixel layout being off, 13 so FractionalLayoutUnits will effectively continue to act as integers. 14 15 With ENABLE_SUBPIXEL_LAYOUT turned on, FractionalLayoutUnits accumulate error from sub-pixel 16 CSS values and applied zooming, and painting uses pixel-snapping to align these values 17 to pixels. See http://trac.webkit.org/wiki/LayoutUnit for details. 18 19 In a number of previous patches, LayoutUnits were plumbed throughout the rendering tree 20 to prepare for this change. This included a number of functions in LayoutTypes.h and 21 the IntRect/Point/Size classes that were effectively no-ops while LayoutUnits were 22 integers. Subsequent patches will remove unnecessary versions of these functions; see 23 http://webkit.org/b/84616 for tracking these changes. 24 25 Tests: fast/sub-pixel/client-width-height-snapping.html 26 fast/sub-pixel/layout-boxes-with-zoom.html 27 fast/sub-pixel/size-of-box-with-zoom.html 28 29 * WebCore.exp.in: Updating function signatures that expose FractionalLayoutUnits. 30 * WebCore.xcodeproj/project.pbxproj: Adding missing FractionalLayoutPoint.h header. 31 * css/CSSComputedStyleDeclaration.cpp: 32 (WebCore::zoomAdjustedPixelValue): Using adjustFloatForAbsoluteZoom instead of int 33 to make use of extra precision before returning the pixel value. 34 * css/CSSPrimitiveValue.cpp: 35 (WebCore::CSSPrimitiveValue::computeLength): No longer rounds for imprecise conversion 36 when sub-pixel layout is enabled. 37 (WebCore::CSSPrimitiveValue::customCssText): Returning integer values for pixels. 38 * dom/Element.cpp: 39 (WebCore::adjustForLocalZoom): Using rounding instead of incrementing the value before 40 adjusting to account for truncation when sub-pixel layout is enabled. 41 * page/SpatialNavigation.cpp: 42 (WebCore::distanceDataForNode): Using FractionalLayoutUnit::abs instead of std::abs. 43 * platform/FractionalLayoutUnit.h: Adding some missing operators and a flag around the 44 constant denominator to switch it between 1/1 and 1/60 depending on the feature flag. 45 * platform/Length.h: Changing the default type for value to float, and adding intValue 46 since this more closely matches usage in a sub-pixel layout world. 47 * platform/win/PopupMenuWin.cpp: 48 (WebCore::PopupMenuWin::paint): Using minimumIntValueForLength in this platform code 49 instead of LayoutUnits. 50 * rendering/InlineFlowBox.cpp: 51 (WebCore::InlineFlowBox::placeBoxesInBlockDirection): 52 * rendering/LayoutTypes.h: This file contains the actual switch for changing LayoutUnits 53 to be FractionalLayoutUnits. Also updating stub methods with their proper implementations. 54 * rendering/PaintInfo.h: 55 (WebCore::PaintInfo::infiniteRect): Ensuring the infiniteRect doesn't overflow the 56 FractionalLayoutUnit bounds. 57 * rendering/RenderBlockLineLayout.cpp: 58 (WebCore::RenderBlock::checkPaginationAndFloatsAtEndLine): Switch to 59 FractionalLayoutUnit's abs function instead of std::abs. 60 * rendering/RenderBoxModelObject.cpp: 61 (WebCore::RenderBoxModelObject::calculateBackgroundImageGeometry): Add rounding for 62 setting the phase of the background geometry before applying modulo from the tile size. 63 * rendering/RenderDeprecatedFlexibleBox.cpp: 64 (WebCore::RenderDeprecatedFlexibleBox::layoutVerticalBox): Stop applying flex when 65 we have less than a pixel to distribute. 66 * rendering/RenderLayer.cpp: 67 (WebCore::RenderLayer::backgroundClipRect): Replace PaintInfo::infiniteRect with the 68 LayoutRect equivalent. 69 * rendering/RenderLineBoxList.cpp: 70 (WebCore::RenderLineBoxList::rangeIntersectsRect): Using FractionalLayoutUnit::abs 71 instead of std::abs. 72 * rendering/RenderObject.cpp: 73 (WebCore::RenderObject::repaintAfterLayoutIfNeeded): Ditto. 74 * rendering/RenderObject.h: 75 (WebCore): Removing unnecessary adjustForAbsoluteZoom function. 76 (WebCore::RenderObject::outlineSize): Outlines remain ints. 77 * rendering/RenderTableCell.cpp: 78 (WebCore::RenderTableCell::styleOrColLogicalWidth): Build fix. Using floats because 79 colWidthSum is a Length which uses floats. 80 * rendering/RenderThemeChromiumSkia.cpp: 81 (WebCore::RenderThemeChromiumSkia::paintSearchFieldResultsButton): Explicit templatization 82 for max. 83 * rendering/RenderTreeAsText.cpp: Adding code to minimize test expectation churn. It 84 may be worth outputting float values in test expectations, but this isn't done with 85 the inline box tree yet, either. 86 * rendering/RenderTreeAsText.h: 87 (WebCore): Adding a FractionalLayoutPoint operator. 88 * rendering/RenderWidget.cpp: 89 (WebCore::RenderWidget::updateWidgetGeometry): Adding missing pixel snapping, and switching 90 absoluteContentBox to an IntRect, as this is what boundingBox returns. 91 * rendering/svg/SVGRenderTreeAsText.cpp: 92 (WebCore::writePositionAndStyle): Adding an enclosingIntRect for consistency with old results. 93 94 <<<<<<< .mine 95 2012-05-03 Levi Weintraub <leviw@chromium.org> and Emil A Eklund <eae@chromium.org> 96 97 [meta] Switch away from integers representing pixels for layout/event handling/rendering 98 https://bugs.webkit.org/show_bug.cgi?id=60318 99 100 Reviewed by Eric Seidel. 101 102 Swapping the LayoutUnit backend to FractionalLayoutUnit from int. 103 104 FractionalLayoutUnit is a new type that uses an integer that can represent a fraction of a 105 pixel. The ENABLE_SUBPIXEL_LAYOUT feature flags toggles this fraction between 1/1 and 1/60. 106 Initially, all platforms will default to subpixel layout being off, so FractionalLayoutUnits 107 will effectively continue to act as integers. 108 109 With ENABLE_SUBPIXEL_LAYOUT turned on, FractionalLayoutUnits accumulate error from sub-pixel 110 CSS values and applied zooming, and painting uses pixel-snapping to align these values 111 to pixels and prevent unwanted anti-aliasing. See http://trac.webkit.org/wiki/LayoutUnit for 112 details. 113 114 In a number of previous patches, LayoutUnits were plumbed throughout the rendering tree to 115 prepare for this change. This included a number of functions in LayoutTypes.h and the 116 IntRect/Point/Size classes that were effectively no-ops while LayoutUnits were integers. See 117 http://webkit.org/b/60318 for the exhaustive list of changes that were done in preparation 118 for this. Subsequent patches will remove unnecessary versions of these functions. 119 http://webkit.org/b/84616 tracks these changes. 120 121 Tests: fast/sub-pixel/client-width-height-snapping.html 122 fast/sub-pixel/layout-boxes-with-zoom.html 123 fast/sub-pixel/size-of-box-with-zoom.html 124 125 * WebCore.exp.in: Updating function signatures that expose FractionalLayoutUnits. 126 * WebCore.order: Ditto. 127 * WebCore.xcodeproj/project.pbxproj: Adding missing FractionalLayoutPoint.h header. 128 * css/CSSPrimitiveValue.cpp: 129 (WebCore::CSSPrimitiveValue::computeLength): No longer rounds for imprecise conversion 130 when sub-pixel layout is enabled. 131 * dom/Element.cpp: 132 (WebCore::adjustForLocalZoom): Using rounding instead of incrementing the value before 133 adjusting to account for truncation when sub-pixel layout is enabled. 134 * rendering/mathml/RenderMathMLBlock.cpp: 135 (WebCore): Fixing a static initializer build error by moving an integer constant to be 136 an int. 137 * rendering/LayoutTypes.h: This file contains the actual switch for changing LayoutUnits 138 to be FractionalLayoutUnits. Also updating stub methods with their proper implementations. 139 * rendering/PaintInfo.h: 140 (WebCore::PaintInfo::infiniteRect): Ensuring the infiniteRect doesn't overflow the 141 FractionalLayoutUnit bounds. LayoutRect::infiniteRect() is the largest rectangle that can 142 be represented using LayoutUnits. 143 * rendering/RenderLayer.h: 144 (WebCore::ClipRect::operator!=): Add overload of != to fix complaining compilers when 145 * rendering/RenderTreeAsText.cpp: Adding code to minimize test expectation churn. It 146 may be worth outputting float values in test expectations, but this isn't done with 147 the inline box tree yet, either. 148 * rendering/RenderTreeAsText.h: 149 (WebCore): Adding a FractionalLayoutPoint operator. 150 * rendering/svg/SVGRenderTreeAsText.cpp: 151 (WebCore::writePositionAndStyle): 152 (WebCore): Adding a FractionalLayoutPoint operator. 153 154 ======= 1 155 2012-05-03 Anders Carlsson <andersca@apple.com> 2 156 … … 139 293 * rendering/RenderLayerCompositor.h: 140 294 295 >>>>>>> .r116007 141 296 2012-05-03 Andreas Kling <kling@webkit.org> 142 297 -
trunk/Source/WebCore/WebCore.exp.in
r115943 r116009 221 221 __ZN7WebCore11MemoryCache19getOriginsWithCacheERN3WTF7HashSetINS1_6RefPtrINS_14SecurityOriginEEENS_18SecurityOriginHashENS1_10HashTraitsIS5_EEEE 222 222 __ZN7WebCore11MemoryCache25removeResourcesWithOriginEPNS_14SecurityOriginE 223 __ZN7WebCore1 2RenderObject19scrollRectToVisibleERKNS_7IntRectERKNS_15ScrollAlignmentES6_223 __ZN7WebCore11RenderLayer19scrollRectToVisibleERKNS_20FractionalLayoutRectERKNS_15ScrollAlignmentES6_ 224 224 __ZN7WebCore11URLWithDataEP6NSDataP5NSURL 225 225 __ZN7WebCore11globalPointERK8_NSPointP8NSWindow … … 239 239 __ZN7WebCore12EventHandler16handleWheelEventERKNS_18PlatformWheelEventE 240 240 __ZN7WebCore12EventHandler17scrollRecursivelyENS_15ScrollDirectionENS_17ScrollGranularityEPNS_4NodeE 241 __ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_ 8IntPointEbbNS_17HitTestScrollbarsEjRKNS_7IntSizeE241 __ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_21FractionalLayoutPointEbbNS_17HitTestScrollbarsEjRKNS_20FractionalLayoutSizeE 242 242 __ZN7WebCore12EventHandler21handleMousePressEventERKNS_18PlatformMouseEventE 243 243 __ZN7WebCore12EventHandler23handleMouseReleaseEventERKNS_18PlatformMouseEventE … … 269 269 __ZN7WebCore12PrintContextC1EPNS_5FrameE 270 270 __ZN7WebCore12PrintContextD1Ev 271 __ZN7WebCore12RenderObject16repaintRectangleERKNS_7IntRectEb 271 __ZN7WebCore12RenderObject16repaintRectangleERKNS_20FractionalLayoutRectEb 272 __ZN7WebCore12RenderObject19scrollRectToVisibleERKNS_20FractionalLayoutRectERKNS_15ScrollAlignmentES6_ 272 273 __ZN7WebCore12RenderWidget28resumeWidgetHierarchyUpdatesEv 273 274 __ZN7WebCore12RenderWidget29suspendWidgetHierarchyUpdatesEv … … 528 529 __ZN7WebCore16enclosingIntRectERK7_NSRect 529 530 __ZN7WebCore16enclosingIntRectERKNS_9FloatRectE 531 __ZN7WebCore16enclosingIntRectERKNS_20FractionalLayoutRectE 530 532 __ZN7WebCore16isEndOfParagraphERKNS_15VisiblePositionENS_27EditingBoundaryCrossingRuleE 531 533 __ZN7WebCore16isUserVisibleURLEP8NSString … … 606 608 __ZN7WebCore19TextResourceDecoderD1Ev 607 609 __ZN7WebCore19applicationIsSafariEv 610 __ZN7WebCore19pixelSnappedIntRectERKNS_20FractionalLayoutRectE 608 611 __ZN7WebCore20DictationAlternativeC1Ejjy 609 612 __ZN7WebCore20DictationAlternativeC1Ev … … 838 841 __ZN7WebCore5Frame17setPageZoomFactorEf 839 842 __ZN7WebCore5Frame17setTextZoomFactorEf 843 __ZN7WebCore5Frame24searchForLabelsAboveCellEPNS_17RegularExpressionEPNS_20HTMLTableCellElementEPm 840 844 __ZN7WebCore5Frame23visiblePositionForPointERKNS_8IntPointE 841 __ZN7WebCore5Frame24searchForLabelsAboveCellEPNS_17RegularExpressionEPNS_20HTMLTableCellElementEPm842 845 __ZN7WebCore5Frame25setPageAndTextZoomFactorsEff 843 846 __ZN7WebCore5Frame27resizePageRectsKeepingRatioERKNS_9FloatSizeES3_ … … 854 857 __ZN7WebCore5Range6setEndEN3WTF10PassRefPtrINS_4NodeEEEiRi 855 858 __ZN7WebCore5Range8setStartEN3WTF10PassRefPtrINS_4NodeEEEiRi 856 __ZN7WebCore5Range9textRectsERN3WTF6VectorINS_7IntRectELm0EEEbPNS0_20RangeInFixedPositionE857 859 __ZN7WebCore5RangeD1Ev 858 860 __ZN7WebCore6Chrome16setStatusbarTextEPNS_5FrameERKN3WTF6StringE … … 1062 1064 __ZN7WebCore9DOMWindow30dispatchAllPendingUnloadEventsEv 1063 1065 __ZN7WebCore9DOMWindow36dispatchAllPendingBeforeUnloadEventsEv 1064 __ZN7WebCore9FloatRectC1ERK6CGRect1065 1066 __ZN7WebCore9FloatRectC1ERK7_NSRect 1067 __ZN7WebCore9FloatRectC1ERKNS_20FractionalLayoutRectE 1066 1068 __ZN7WebCore9FloatRectC1ERKNS_7IntRectE 1067 1069 __ZN7WebCore9FloatSizeC1ERKNS_7IntSizeE 1070 __ZN7WebCore9FloatSizeC1ERKNS_20FractionalLayoutSizeE 1068 1071 __ZN7WebCore9FontCache13fontDataCountEv 1069 1072 __ZN7WebCore9FontCache21inactiveFontDataCountEv … … 1076 1079 __ZN7WebCore9FrameView12setMediaTypeERKN3WTF6StringE 1077 1080 __ZN7WebCore9FrameView14adjustViewSizeEv 1078 __ZN7WebCore9FrameView14setMarginWidthEi1079 1081 __ZN7WebCore9FrameView14setNeedsLayoutEv 1080 1082 __ZN7WebCore9FrameView14setTransparentEb 1081 __ZN7WebCore9FrameView15setMarginHeightEi1082 1083 __ZN7WebCore9FrameView16setPaintBehaviorEj 1083 1084 __ZN7WebCore9FrameView17addScrollableAreaEPNS_14ScrollableAreaE … … 1512 1513 __ZNK7WebCore8Position8upstreamENS_27EditingBoundaryCrossingRuleE 1513 1514 __ZNK7WebCore9DOMWindow27pendingUnloadEventListenersEv 1515 __ZNK7WebCore5Range9textQuadsERN3WTF6VectorINS_9FloatQuadELm0EEEbPNS0_20RangeInFixedPositionE 1516 __ZNK7WebCore9FloatSize6isZeroEv 1514 1517 __ZNK7WebCore9FloatQuad11boundingBoxEv 1515 1518 __ZNK7WebCore9FloatRect10intersectsERKS0_ -
trunk/Source/WebCore/WebCore.order
r115248 r116009 3509 3509 __ZN7WebCore17RenderLineBoxList13removeLineBoxEPNS_13InlineFlowBoxE 3510 3510 __ZNK7WebCore11RenderBlock20adjustRectForColumnsERNS_7IntRectE 3511 __ZN7WebCore12RenderObject16repaintRectangleERKNS_7IntRectEb3512 3511 __ZNK7WebCore22HTMLFormControlElement11isFocusableEv 3513 3512 __ZNK7WebCore22HTMLFormControlElement13supportsFocusEv … … 6249 6248 __ZN7WebCore14RenderMenuList11removeChildEPNS_12RenderObjectE 6250 6249 __ZN7WebCore14RenderMenuListD0Ev 6251 __ZN7WebCore13HitTestResultC1ERKNS_8IntPointE6252 6250 __ZN7WebCore11RenderLayer7hitTestERKNS_14HitTestRequestERNS_13HitTestResultE 6253 6251 __ZN7WebCore11RenderLayer12hitTestLayerEPS0_S1_RKNS_14HitTestRequestERNS_13HitTestResultERKNS_7IntRectERKNS_8IntPointEbPKNS_24HitTestingTransformStateEPd … … 6255 6253 __ZN7WebCore11RenderLayer35update3DTransformedDescendantStatusEv 6256 6254 __ZN7WebCore11RenderLayer11hitTestListEPN3WTF6VectorIPS0_Lm0EEES3_RKNS_14HitTestRequestERNS_13HitTestResultERKNS_7IntRectERKNS_8IntPointEPKNS_24HitTestingTransformStateEPdSK_SJ_b 6257 __ZN7WebCore13HitTestResultC1ERKNS_8IntPointEjjjj6258 6255 __ZNK7WebCore11RenderLayer15hitTestContentsERKNS_14HitTestRequestERNS_13HitTestResultERKNS_7IntRectERKNS_8IntPointENS_13HitTestFilterE 6259 6256 __ZN7WebCore12RenderObject7hitTestERKNS_14HitTestRequestERNS_13HitTestResultERKNS_8IntPointEiiNS_13HitTestFilterE … … 14361 14358 __ZN3WTF9HashTableIPKvSt4pairIS2_N7WebCore7IntSizeEENS_18PairFirstExtractorIS6_EENS_7PtrHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSC_IS5_EEEESD_E6rehashEi 14362 14359 __ZN3WTF9HashTableIPKvSt4pairIS2_N7WebCore7IntSizeEENS_18PairFirstExtractorIS6_EENS_7PtrHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSC_IS5_EEEESD_EaSERKSG_ 14363 __ZN7WebCore12EventHandler20hitTestResultAtPointERKNS_8IntPointEbbNS_17HitTestScrollbarsEjRKNS_7IntSizeE14364 14360 __ZNK7WebCore13HitTestResult10isSelectedEv 14365 14361 __ZN3WTF9HashTableIN7WebCore7IntSizeESt4pairIS2_jENS_18PairFirstExtractorIS4_EENS_7IntHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSA_IjEEEESB_E16lookupForWritingIS2_NS_22IdentityHashTranslatorIS2_S4_S8_EEEES3_IPS4_bERKT_ -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r115943 r116009 5137 5137 B8DBDB4D130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp in Sources */ = {isa = PBXBuildFile; fileRef = B8DBDB49130B0F8A00F5CDB1 /* SpellingCorrectionCommand.cpp */; }; 5138 5138 B8DBDB4E130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h in Headers */ = {isa = PBXBuildFile; fileRef = B8DBDB4A130B0F8A00F5CDB1 /* SpellingCorrectionCommand.h */; }; 5139 BAB1C06A14FC3679004233FC /* FractionalLayoutPoint.h in Headers */ = {isa = PBXBuildFile; fileRef = 144FCE5414EC79E7000D17A3 /* FractionalLayoutPoint.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5139 5140 BACF290113B2A0D500781F90 /* LayoutTypes.h in Headers */ = {isa = PBXBuildFile; fileRef = BACF290013B2A0D500781F90 /* LayoutTypes.h */; settings = {ATTRIBUTES = (Private, ); }; }; 5140 5141 BC00F0040E0A185500FD04E3 /* DOMFile.h in Headers */ = {isa = PBXBuildFile; fileRef = BC00EFFE0E0A185500FD04E3 /* DOMFile.h */; }; … … 22835 22836 41885B9311B6FDA6003383BB /* FormSubmission.h in Headers */, 22836 22837 935C476D09AC4D6300A6AAB4 /* FoundationExtras.h in Headers */, 22838 BAB1C06A14FC3679004233FC /* FractionalLayoutPoint.h in Headers */, 22837 22839 144FCFE114EF2509000D17A3 /* FractionalLayoutRect.h in Headers */, 22838 22840 144FCE5D14EC79E7000D17A3 /* FractionalLayoutSize.h in Headers */, -
trunk/Source/WebCore/css/CSSPrimitiveValue.cpp
r115573 r116009 432 432 template<> Length CSSPrimitiveValue::computeLength(RenderStyle* style, RenderStyle* rootStyle, float multiplier, bool computingFontSize) 433 433 { 434 #if ENABLE(SUBPIXEL_LAYOUT) 435 return Length(static_cast<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed); 436 #else 434 437 return Length(roundForImpreciseConversion<float>(computeLengthDouble(style, rootStyle, multiplier, computingFontSize)), Fixed); 438 #endif 435 439 } 436 440 -
trunk/Source/WebCore/dom/Element.cpp
r115645 r116009 354 354 if (zoomFactor == 1) 355 355 return value; 356 #if ENABLE(SUBPIXEL_LAYOUT) 357 return lroundf(value / zoomFactor); 358 #else 356 359 // Needed because computeLengthInt truncates (rather than rounds) when scaling up. 357 360 if (zoomFactor > 1) 358 361 value++; 359 362 return static_cast<int>(value / zoomFactor); 363 #endif 360 364 } 361 365 -
trunk/Source/WebCore/rendering/LayoutTypes.h
r115691 r116009 38 38 39 39 #include "FloatRect.h" 40 #include "FractionalLayoutRect.h" 41 #include "FractionalLayoutUnit.h" 40 42 #include "IntRect.h" 41 #include <wtf/UnusedParam.h> 43 44 #include <wtf/MathExtras.h> 42 45 43 46 namespace WebCore { 44 47 45 typedef int LayoutUnit;46 typedef IntPoint LayoutPoint;47 typedef IntSize LayoutSize;48 typedef IntRect LayoutRect;48 typedef FractionalLayoutUnit LayoutUnit; 49 typedef FractionalLayoutPoint LayoutPoint; 50 typedef FractionalLayoutSize LayoutSize; 51 typedef FractionalLayoutRect LayoutRect; 49 52 50 #define MAX_LAYOUT_UNIT INT_MAX51 #define MIN_LAYOUT_UNIT INT_MIN52 #define ZERO_LAYOUT_UNIT 053 #define MAX_LAYOUT_UNIT LayoutUnit::max() 54 #define MIN_LAYOUT_UNIT LayoutUnit::min() 55 #define ZERO_LAYOUT_UNIT LayoutUnit(0) 53 56 54 inline LayoutRect enclosingLayoutRect(const FloatRect& rect)57 inline FractionalLayoutRect enclosingLayoutRect(const FloatRect& rect) 55 58 { 56 59 return enclosingIntRect(rect); 57 60 } 58 61 59 inline IntRect pixelSnappedIntRect(const LayoutRect& rect)62 inline LayoutSize roundedLayoutSize(const FloatSize& s) 60 63 { 61 return rect; 64 #if ENABLE(SUBPIXEL_LAYOUT) 65 return FractionalLayoutSize(s); 66 #else 67 return roundedIntSize(s); 68 #endif 62 69 } 63 70 64 71 inline IntRect pixelSnappedIntRect(LayoutUnit left, LayoutUnit top, LayoutUnit width, LayoutUnit height) 65 72 { 66 return IntRect(left, top, width, height); 67 } 68 69 inline IntRect pixelSnappedIntRect(const LayoutPoint& location, const LayoutSize& size) 70 { 71 return IntRect(location, size); 73 return IntRect(left.round(), top.round(), snapSizeToPixel(width, left), snapSizeToPixel(height, top)); 72 74 } 73 75 74 76 inline IntRect pixelSnappedIntRectFromEdges(LayoutUnit left, LayoutUnit top, LayoutUnit right, LayoutUnit bottom) 75 77 { 76 return IntRect(left, top, right - left, bottom - top); 77 } 78 79 inline int snapSizeToPixel(LayoutUnit size, LayoutUnit location) 80 { 81 UNUSED_PARAM(location); 82 return size; 83 } 84 85 inline IntSize pixelSnappedIntSize(LayoutSize size, LayoutPoint location) 86 { 87 UNUSED_PARAM(location); 88 return size; 89 } 90 91 inline IntSize roundedIntSize(const LayoutSize& s) 92 { 93 return s; 94 } 95 96 inline LayoutSize roundedLayoutSize(const FloatSize& s) 97 { 98 return roundedIntSize(s); 99 } 100 101 inline IntPoint roundedIntPoint(const LayoutPoint& p) 102 { 103 return p; 78 return IntRect(left.round(), top.round(), snapSizeToPixel(right - left, left), snapSizeToPixel(bottom - top, top)); 104 79 } 105 80 106 81 inline LayoutPoint roundedLayoutPoint(const FloatPoint& p) 107 82 { 83 #if ENABLE(SUBPIXEL_LAYOUT) 84 return FractionalLayoutPoint(p); 85 #else 108 86 return roundedIntPoint(p); 87 #endif 109 88 } 110 89 111 90 inline LayoutPoint flooredLayoutPoint(const FloatPoint& p) 112 91 { 113 return flooredIntPoint(p);92 return LayoutPoint(p.x(), p.y()); 114 93 } 115 94 116 95 inline LayoutPoint flooredLayoutPoint(const FloatSize& s) 117 96 { 118 return flooredIntPoint(s);97 return LayoutPoint(s.width(), s.height()); 119 98 } 120 99 121 100 inline LayoutSize flooredLayoutSize(const FloatPoint& p) 122 101 { 123 return LayoutSize( static_cast<int>(p.x()), static_cast<int>(p.y()));102 return LayoutSize(p.x(), p.y()); 124 103 } 125 104 126 105 inline int roundToInt(LayoutUnit value) 127 106 { 128 return value ;107 return value.round(); 129 108 } 130 109 131 110 inline int floorToInt(LayoutUnit value) 132 111 { 133 return value ;112 return value.toInt(); 134 113 } 135 114 136 115 inline LayoutUnit roundedLayoutUnit(float value) 137 116 { 138 return lroundf(value); 117 #if ENABLE(SUBPIXEL_LAYOUT) 118 return FractionalLayoutUnit(value); 119 #else 120 return static_cast<int>(lroundf(value)); 121 #endif 139 122 } 140 123 141 124 inline LayoutUnit ceiledLayoutUnit(float value) 142 125 { 126 #if ENABLE(SUBPIXEL_LAYOUT) 127 return FractionalLayoutUnit(value); 128 #else 143 129 return ceilf(value); 130 #endif 144 131 } 145 132 146 133 inline LayoutUnit absoluteValue(const LayoutUnit& value) 147 134 { 148 return abs(value);135 return value.abs(); 149 136 } 150 137 … … 161 148 inline LayoutUnit layoutMod(const LayoutUnit& numerator, const LayoutUnit& denominator) 162 149 { 163 return numerator % denominator;150 return numerator.toInt() % denominator.toInt(); 164 151 } 165 152 166 153 inline LayoutUnit clampToLayoutUnit(double value) 167 154 { 168 return clampTo Integer(value);155 return clampTo<FractionalLayoutUnit>(value, FractionalLayoutUnit::min(), FractionalLayoutUnit::max()); 169 156 } 170 157 171 inline bool isIntegerValue(const LayoutUnit)158 inline IntRect pixelSnappedIntRect(LayoutPoint location, LayoutSize size) 172 159 { 173 return true;160 return IntRect(roundedIntPoint(location), pixelSnappedIntSize(size, location)); 174 161 } 175 162 176 inline LayoutUnit boundedMultiply(const LayoutUnit& a, const LayoutUnit& b)163 inline bool isIntegerValue(const LayoutUnit value) 177 164 { 178 return a * b;165 return value.floor() == value; 179 166 } 180 167 -
trunk/Source/WebCore/rendering/PaintInfo.h
r96408 r116009 33 33 #include "GraphicsContext.h" 34 34 #include "IntRect.h" 35 #include "LayoutTypes.h" 35 36 #include "PaintPhase.h" 37 #include <limits> 36 38 #include <wtf/HashMap.h> 37 39 #include <wtf/ListHashSet.h> … … 97 99 #endif 98 100 99 static IntRect infiniteRect() { return IntRect( INT_MIN / 2, INT_MIN / 2, INT_MAX, INT_MAX); }101 static IntRect infiniteRect() { return IntRect(LayoutRect::infiniteRect()); } 100 102 101 103 // FIXME: Introduce setters/getters at some point. Requires a lot of changes throughout rendering/. -
trunk/Source/WebCore/rendering/RenderLayer.h
r115913 r116009 102 102 bool operator==(const ClipRect& other) const { return rect() == other.rect() && hasRadius() == other.hasRadius(); } 103 103 bool operator!=(const ClipRect& other) const { return rect() != other.rect() || hasRadius() != other.hasRadius(); } 104 bool operator!=(const LayoutRect& otherRect) const { return rect() != otherRect; } 104 105 105 106 void intersect(const LayoutRect& other) { m_rect.intersect(other); } -
trunk/Source/WebCore/rendering/RenderTreeAsText.cpp
r115913 r116009 78 78 using namespace HTMLNames; 79 79 80 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const IntRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal);80 static void writeLayers(TextStream&, const RenderLayer* rootLayer, RenderLayer*, const LayoutRect& paintDirtyRect, int indent = 0, RenderAsTextBehavior = RenderAsTextBehaviorNormal); 81 81 82 82 static inline bool hasFractions(double val) … … 103 103 { 104 104 return ts << "(" << p.x() << "," << p.y() << ")"; 105 } 106 107 TextStream& operator<<(TextStream& ts, const FractionalLayoutPoint& p) 108 { 109 // FIXME: These should be printed as floats. Keeping them ints for consistency with pervious test expectations. 110 return ts << "(" << p.x().toInt() << "," << p.y().toInt() << ")"; 105 111 } 106 112 … … 243 249 bool adjustForTableCells = cb ? cb->isTableCell() : false; 244 250 245 IntRect r;251 LayoutRect r; 246 252 if (o.isText()) { 247 253 // FIXME: Would be better to dump the bounding box x and y rather than the first run's x and y, but that would involve updating … … 262 268 // captured by the results. 263 269 const RenderTableCell& cell = *toRenderTableCell(&o); 264 r = IntRect(cell.x(), cell.y() + cell.intrinsicPaddingBefore(), cell.width(), cell.height() - cell.intrinsicPaddingBefore() - cell.intrinsicPaddingAfter());270 r = LayoutRect(cell.x(), cell.y() + cell.intrinsicPaddingBefore(), cell.width(), cell.height() - cell.intrinsicPaddingBefore() - cell.intrinsicPaddingAfter()); 265 271 } else if (o.isBox()) 266 272 r = toRenderBox(&o)->frameRect(); … … 269 275 if (adjustForTableCells) 270 276 r.move(0, -toRenderTableCell(o.containingBlock())->intrinsicPaddingBefore()); 277 278 // FIXME: Convert layout test results to report sub-pixel values, in the meantime using enclosingIntRect 279 // for consistency with old results. 280 r = enclosingIntRect(r); 281 271 282 272 283 ts << " " << r; … … 592 603 593 604 static void write(TextStream& ts, RenderLayer& l, 594 const IntRect& layerBounds, const IntRect& backgroundClipRect, const IntRect& clipRect, const IntRect& outlineClipRect,605 const LayoutRect& layerBounds, const LayoutRect& backgroundClipRect, const LayoutRect& clipRect, const LayoutRect& outlineClipRect, 595 606 LayerPaintPhase paintPhase = LayerPaintPhaseAll, int indent = 0, RenderAsTextBehavior behavior = RenderAsTextBehaviorNormal) 596 607 { 608 IntRect adjustedLayoutBounds = pixelSnappedIntRect(layerBounds); 609 IntRect adjustedBackgroundClipRect = pixelSnappedIntRect(backgroundClipRect); 610 IntRect adjustedClipRect = pixelSnappedIntRect(clipRect); 611 IntRect adjustedOutlineClipRect = pixelSnappedIntRect(outlineClipRect); 612 597 613 writeIndent(ts, indent); 598 614 … … 602 618 ts << static_cast<const void*>(&l) << " "; 603 619 604 ts << layerBounds;605 606 if (! layerBounds.isEmpty()) {607 if (! backgroundClipRect.contains(layerBounds))608 ts << " backgroundClip " << backgroundClipRect;609 if (! clipRect.contains(layerBounds))610 ts << " clip " << clipRect;611 if (! outlineClipRect.contains(layerBounds))612 ts << " outlineClip " << outlineClipRect;620 ts << adjustedLayoutBounds; 621 622 if (!adjustedLayoutBounds.isEmpty()) { 623 if (!adjustedBackgroundClipRect.contains(adjustedLayoutBounds)) 624 ts << " backgroundClip " << adjustedBackgroundClipRect; 625 if (!adjustedClipRect.contains(adjustedLayoutBounds)) 626 ts << " clip " << adjustedClipRect; 627 if (!adjustedOutlineClipRect.contains(adjustedLayoutBounds)) 628 ts << " outlineClip " << adjustedOutlineClipRect; 613 629 } 614 630 … … 645 661 646 662 static void writeRenderNamedFlowThreads(TextStream& ts, RenderView* renderView, const RenderLayer* rootLayer, 647 const IntRect& paintRect, int indent, RenderAsTextBehavior behavior)663 const LayoutRect& paintRect, int indent, RenderAsTextBehavior behavior) 648 664 { 649 665 if (!renderView->hasRenderNamedFlowThreads()) … … 693 709 694 710 static void writeLayers(TextStream& ts, const RenderLayer* rootLayer, RenderLayer* l, 695 const IntRect& paintRect, int indent, RenderAsTextBehavior behavior)711 const LayoutRect& paintRect, int indent, RenderAsTextBehavior behavior) 696 712 { 697 713 // FIXME: Apply overflow to the root layer to not break every test. Complete hack. Sigh. 698 IntRect paintDirtyRect(paintRect);714 LayoutRect paintDirtyRect(paintRect); 699 715 if (rootLayer == l) { 700 paintDirtyRect.setWidth(max (paintDirtyRect.width(), rootLayer->renderBox()->maxXLayoutOverflow()));701 paintDirtyRect.setHeight(max (paintDirtyRect.height(), rootLayer->renderBox()->maxYLayoutOverflow()));702 l->setSize(l->size().expandedTo( l->renderBox()->maxLayoutOverflow()));716 paintDirtyRect.setWidth(max<LayoutUnit>(paintDirtyRect.width(), rootLayer->renderBox()->maxXLayoutOverflow())); 717 paintDirtyRect.setHeight(max<LayoutUnit>(paintDirtyRect.height(), rootLayer->renderBox()->maxYLayoutOverflow())); 718 l->setSize(l->size().expandedTo(pixelSnappedIntSize(l->renderBox()->maxLayoutOverflow(), LayoutPoint(0, 0)))); 703 719 } 704 720 705 721 // Calculate the clip rects we should use. 706 IntRect layerBounds;722 LayoutRect layerBounds; 707 723 ClipRect damageRect, clipRectToApply, outlineRect; 708 724 l->calculateRects(rootLayer, 0, paintDirtyRect, layerBounds, damageRect, clipRectToApply, outlineRect, true); -
trunk/Source/WebCore/rendering/RenderTreeAsText.h
r101342 r116009 34 34 35 35 class Element; 36 class FractionalLayoutPoint; 36 37 class FloatPoint; 37 38 class FloatSize; … … 71 72 TextStream& operator<<(TextStream&, const IntPoint&); 72 73 TextStream& operator<<(TextStream&, const IntRect&); 74 TextStream& operator<<(TextStream&, const FractionalLayoutPoint&); 73 75 TextStream& operator<<(TextStream&, const FloatPoint&); 74 76 TextStream& operator<<(TextStream&, const FloatSize&); -
trunk/Source/WebCore/rendering/mathml/RenderMathMLBlock.cpp
r115895 r116009 158 158 159 159 // An arbitrary large value, like RenderBlock.cpp BLOCK_MAX_WIDTH or FixedTableLayout.cpp TABLE_MAX_WIDTH. 160 static const LayoutUnit cLargeLogicalWidth = 15000;160 static const int cLargeLogicalWidth = 15000; 161 161 162 162 void RenderMathMLBlock::computeChildrenPreferredLogicalHeights() -
trunk/Source/WebCore/rendering/svg/SVGRenderTreeAsText.cpp
r115560 r116009 327 327 static TextStream& writePositionAndStyle(TextStream& ts, const RenderObject& object) 328 328 { 329 ts << " " << const_cast<RenderObject&>(object).absoluteClippedOverflowRect();329 ts << " " << enclosingIntRect(const_cast<RenderObject&>(object).absoluteClippedOverflowRect()); 330 330 writeStyle(ts, object); 331 331 return ts;
Note: See TracChangeset
for help on using the changeset viewer.