Changeset 90832 in webkit
- Timestamp:
- Jul 12, 2011 11:37:09 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 23 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r90680 r90832 1080 1080 platform/graphics/PathTraversalState.cpp 1081 1081 platform/graphics/Pattern.cpp 1082 platform/graphics/Rounded IntRect.cpp1082 platform/graphics/RoundedRect.cpp 1083 1083 platform/graphics/SegmentedFontData.cpp 1084 1084 platform/graphics/ShadowBlur.cpp -
trunk/Source/WebCore/ChangeLog
r90831 r90832 1 2011-07-12 Levi Weintraub <leviw@chromium.org> 2 3 Change roundedIntRect to roundedRect 4 https://bugs.webkit.org/show_bug.cgi?id=64326 5 6 Reviewed by Eric Seidel. 7 8 Renaming RoundedIntRect to RoundedRect and moving the underlying type to Layout units from 9 integer-based versions. 10 11 No new tests, no new functionality 12 13 * WebCore.gypi: 14 * WebCore.pro: 15 * WebCore.vcproj/WebCore.vcproj: 16 * WebCore.xcodeproj/project.pbxproj: 17 * platform/graphics/GraphicsContext.cpp: 18 (WebCore::GraphicsContext::addRoundedRectClip): 19 (WebCore::GraphicsContext::clipOutRoundedRect): 20 (WebCore::GraphicsContext::fillRoundedRect): 21 (WebCore::GraphicsContext::fillRectWithRoundedHole): 22 * platform/graphics/GraphicsContext.h: 23 * platform/graphics/Path.cpp: 24 (WebCore::Path::addRoundedRect): 25 * platform/graphics/Path.h: 26 * platform/graphics/RoundedIntRect.cpp: Removed. 27 * platform/graphics/RoundedIntRect.h: Removed. 28 * platform/graphics/RoundedRect.cpp: Copied from Source/WebCore/platform/graphics/RoundedIntRect.cpp. 29 (WebCore::RoundedRect::Radii::isZero): 30 (WebCore::RoundedRect::Radii::scale): 31 (WebCore::RoundedRect::Radii::expand): 32 (WebCore::RoundedRect::inflateWithRadii): 33 (WebCore::RoundedRect::Radii::includeLogicalEdges): 34 (WebCore::RoundedRect::Radii::excludeLogicalEdges): 35 (WebCore::RoundedRect::RoundedRect): 36 (WebCore::RoundedRect::includeLogicalEdges): 37 (WebCore::RoundedRect::excludeLogicalEdges): 38 (WebCore::RoundedRect::isRenderable): 39 * platform/graphics/RoundedRect.h: Copied from Source/WebCore/platform/graphics/RoundedIntRect.h. 40 (WebCore::RoundedRect::Radii::Radii): 41 (WebCore::RoundedRect::Radii::setTopLeft): 42 (WebCore::RoundedRect::Radii::setTopRight): 43 (WebCore::RoundedRect::Radii::setBottomLeft): 44 (WebCore::RoundedRect::Radii::setBottomRight): 45 (WebCore::RoundedRect::Radii::topLeft): 46 (WebCore::RoundedRect::Radii::topRight): 47 (WebCore::RoundedRect::Radii::bottomLeft): 48 (WebCore::RoundedRect::Radii::bottomRight): 49 (WebCore::RoundedRect::Radii::expand): 50 (WebCore::RoundedRect::Radii::shrink): 51 (WebCore::RoundedRect::rect): 52 (WebCore::RoundedRect::setRect): 53 (WebCore::RoundedRect::move): 54 (WebCore::RoundedRect::inflate): 55 (WebCore::RoundedRect::expandRadii): 56 (WebCore::RoundedRect::shrinkRadii): 57 (WebCore::operator==): 58 * platform/graphics/ShadowBlur.cpp: 59 (WebCore::ScratchBuffer::setLastShadowValues): 60 (WebCore::ScratchBuffer::setLastInsetShadowValues): 61 (WebCore::ScratchBuffer::matchesLastShadow): 62 (WebCore::ScratchBuffer::matchesLastInsetShadow): 63 (WebCore::computeSliceSizesFromRadii): 64 (WebCore::ShadowBlur::templateSize): 65 (WebCore::ShadowBlur::drawRectShadow): 66 (WebCore::ShadowBlur::drawInsetShadow): 67 (WebCore::ShadowBlur::drawRectShadowWithoutTiling): 68 (WebCore::ShadowBlur::drawInsetShadowWithoutTiling): 69 (WebCore::ShadowBlur::drawInsetShadowWithTiling): 70 (WebCore::ShadowBlur::drawRectShadowWithTiling): 71 (WebCore::ShadowBlur::drawLayerPieces): 72 * platform/graphics/ShadowBlur.h: 73 * platform/graphics/cg/GraphicsContextCG.cpp: 74 (WebCore::GraphicsContext::fillRect): 75 (WebCore::GraphicsContext::fillRoundedRect): 76 (WebCore::GraphicsContext::fillRectWithRoundedHole): 77 * rendering/RenderBox.cpp: 78 (WebCore::RenderBox::paintBoxDecorations): 79 * rendering/RenderBoxModelObject.cpp: 80 (WebCore::RenderBoxModelObject::getBackgroundRoundedRect): 81 (WebCore::RenderBoxModelObject::paintFillLayerExtended): 82 (WebCore::RenderBoxModelObject::paintOneBorderSide): 83 (WebCore::RenderBoxModelObject::paintBorderSides): 84 (WebCore::RenderBoxModelObject::paintTranslucentBorderSides): 85 (WebCore::RenderBoxModelObject::paintBorder): 86 (WebCore::RenderBoxModelObject::drawBoxSideFromPath): 87 (WebCore::RenderBoxModelObject::clipBorderSidePolygon): 88 (WebCore::RenderBoxModelObject::paintBoxShadow): 89 * rendering/RenderBoxModelObject.h: 90 * rendering/RenderThemeMac.mm: 91 (WebCore::RenderThemeMac::paintMenuListButtonGradients): 92 (WebCore::RenderThemeMac::paintSliderTrack): 93 * rendering/style/RenderStyle.cpp: 94 (WebCore::calcRadiiFor): 95 (WebCore::calcConstraintScaleFor): 96 (WebCore::RenderStyle::getRoundedBorderFor): 97 (WebCore::RenderStyle::getRoundedInnerBorderFor): 98 * rendering/style/RenderStyle.h: 99 1 100 2011-07-12 Mike Reed <reed@google.com> 2 101 -
trunk/Source/WebCore/GNUmakefile.list.am
r90680 r90832 2544 2544 Source/WebCore/platform/graphics/Pattern.cpp \ 2545 2545 Source/WebCore/platform/graphics/Pattern.h \ 2546 Source/WebCore/platform/graphics/Rounded IntRect.cpp \2547 Source/WebCore/platform/graphics/Rounded IntRect.h \2546 Source/WebCore/platform/graphics/RoundedRect.cpp \ 2547 Source/WebCore/platform/graphics/RoundedRect.h \ 2548 2548 Source/WebCore/platform/graphics/SegmentedFontData.cpp \ 2549 2549 Source/WebCore/platform/graphics/SegmentedFontData.h \ -
trunk/Source/WebCore/WebCore.gypi
r90830 r90832 856 856 'platform/graphics/Path.h', 857 857 'platform/graphics/Pattern.h', 858 'platform/graphics/Rounded IntRect.h',858 'platform/graphics/RoundedRect.h', 859 859 'platform/graphics/SimpleFontData.h', 860 860 'platform/graphics/StringTruncator.h', … … 3974 3974 'platform/graphics/PathTraversalState.h', 3975 3975 'platform/graphics/Pattern.cpp', 3976 'platform/graphics/Rounded IntRect.cpp',3976 'platform/graphics/RoundedRect.cpp', 3977 3977 'platform/graphics/SegmentedFontData.cpp', 3978 3978 'platform/graphics/SegmentedFontData.h', -
trunk/Source/WebCore/WebCore.order
r90253 r90832 5211 5211 __ZNK7WebCore20RenderBoxModelObject17getBorderEdgeInfoEPNS_10BorderEdgeEbb 5212 5212 __ZNK7WebCore11RenderStyle19getRoundedBorderForERKNS_7IntRectEbb 5213 __ZN7WebCore14Rounded IntRectC1ERKNS_7IntRectERKNS0_5RadiiE5213 __ZN7WebCore14RoundedRectC1ERKNS_7IntRectERKNS0_5RadiiE 5214 5214 __ZNK7WebCore11RenderStyle24getRoundedInnerBorderForERKNS_7IntRectEbb 5215 5215 __ZNK7WebCore11RenderStyle24getRoundedInnerBorderForERKNS_7IntRectEiiiibb 5216 5216 __ZNK7WebCore15GraphicsContext6getCTMEv 5217 5217 __ZN7WebCore15AffineTransformC1Edddddd 5218 __ZNK7WebCore14Rounded IntRect5Radii6isZeroEv5219 __ZN7WebCore20RenderBoxModelObject16paintBorderSidesEPNS_15GraphicsContextEPKNS_11RenderStyleERKNS_14Rounded IntRectES8_PKNS_10BorderEdgeEjNS_24BackgroundBleedAvoidanceEbbbPKNS_5ColorE5220 __ZN7WebCore20RenderBoxModelObject18paintOneBorderSideEPNS_15GraphicsContextEPKNS_11RenderStyleERKNS_14Rounded IntRectES8_RKNS_7IntRectENS_7BoxSideESC_SC_PKNS_10BorderEdgeEPKNS_4PathENS_24BackgroundBleedAvoidanceEbbbPKNS_5ColorE5218 __ZNK7WebCore14RoundedRect5Radii6isZeroEv 5219 __ZN7WebCore20RenderBoxModelObject16paintBorderSidesEPNS_15GraphicsContextEPKNS_11RenderStyleERKNS_14RoundedRectES8_PKNS_10BorderEdgeEjNS_24BackgroundBleedAvoidanceEbbbPKNS_5ColorE 5220 __ZN7WebCore20RenderBoxModelObject18paintOneBorderSideEPNS_15GraphicsContextEPKNS_11RenderStyleERKNS_14RoundedRectES8_RKNS_7IntRectENS_7BoxSideESC_SC_PKNS_10BorderEdgeEPKNS_4PathENS_24BackgroundBleedAvoidanceEbbbPKNS_5ColorE 5221 5221 __ZN7WebCoreL17joinRequiresMitreENS_7BoxSideES0_PKNS_10BorderEdgeEb 5222 5222 __ZN7WebCore12RenderObject18drawLineForBoxSideEPNS_15GraphicsContextEiiiiNS_7BoxSideENS_5ColorENS_12EBorderStyleEiib … … 5756 5756 __ZNK7WebCore9RenderBox27computeReplacedLogicalWidthEb 5757 5757 __ZN7WebCore9RenderBox26repaintDuringLayoutIfMovedERKNS_7IntRectE 5758 __ZNK7WebCore14Rounded IntRect12isRenderableEv5758 __ZNK7WebCore14RoundedRect12isRenderableEv 5759 5759 __ZN7WebCore11RenderImage13paintIntoRectEPNS_15GraphicsContextERKNS_7IntRectE 5760 5760 __ZN7WebCore20RenderBoxModelObject23shouldPaintAtLowQualityEPNS_15GraphicsContextEPNS_5ImageEPKvRKNS_7IntSizeE … … 9793 9793 __ZNK7WebCore10ShadowData19adjustRectForShadowERNS_7IntRectEi 9794 9794 __ZN7WebCore10ShadowBlurC1ERKNS_9FloatSizeES3_RKNS_5ColorENS_10ColorSpaceE 9795 __ZN7WebCore10ShadowBlur14drawRectShadowEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14Rounded IntRect5RadiiE9795 __ZN7WebCore10ShadowBlur14drawRectShadowEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14RoundedRect5RadiiE 9796 9796 __ZNK7WebCore15GraphicsContext10clipBoundsEv 9797 9797 __ZN7WebCore10ShadowBlur26calculateLayerBoundingRectEPNS_15GraphicsContextERKNS_9FloatRectERKNS_7IntRectE 9798 9798 __ZN7WebCore10ShadowBlur16adjustBlurRadiusEPNS_15GraphicsContextE 9799 __ZN7WebCore10ShadowBlur24drawRectShadowWithTilingEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14Rounded IntRect5RadiiERKNS_7IntSizeESC_9799 __ZN7WebCore10ShadowBlur24drawRectShadowWithTilingEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14RoundedRect5RadiiERKNS_7IntSizeESC_ 9800 9800 __ZN7WebCore13ScratchBuffer16getScratchBufferERKNS_7IntSizeE 9801 __ZNK7WebCore13ScratchBuffer17matchesLastShadowERKNS_9FloatSizeERKNS_5ColorENS_10ColorSpaceERKNS_9FloatRectERKNS_14Rounded IntRect5RadiiE9801 __ZNK7WebCore13ScratchBuffer17matchesLastShadowERKNS_9FloatSizeERKNS_5ColorENS_10ColorSpaceERKNS_9FloatRectERKNS_14RoundedRect5RadiiE 9802 9802 __ZN7WebCore10ShadowBlur16blurShadowBufferERKNS_7IntSizeE 9803 9803 __ZN7WebCore10ShadowBlur14blurLayerImageEPhRKNS_7IntSizeEi 9804 __ZN7WebCore10ShadowBlur15drawLayerPiecesEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14Rounded IntRect5RadiiERKNS_7IntSizeESC_NS0_15ShadowDirectionE9804 __ZN7WebCore10ShadowBlur15drawLayerPiecesEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14RoundedRect5RadiiERKNS_7IntSizeESC_NS0_15ShadowDirectionE 9805 9805 __ZN7WebCore5TimerINS_13ScratchBufferEE5firedEv 9806 9806 __ZN7WebCore13ScratchBuffer10timerFiredEPNS_5TimerIS0_EE … … 11238 11238 __ZNK7WebCore16HTMLElementStack13inButtonScopeERKNS_13QualifiedNameE 11239 11239 __ZN7WebCoreL22decodeNonASCIISequenceEPKhj 11240 __ZN7WebCore20RenderBoxModelObject21clipBorderSidePolygonEPNS_15GraphicsContextERKNS_14Rounded IntRectES5_NS_7BoxSideEbb11240 __ZN7WebCore20RenderBoxModelObject21clipBorderSidePolygonEPNS_15GraphicsContextERKNS_14RoundedRectES5_NS_7BoxSideEbb 11241 11241 __ZN7WebCore15GraphicsContext17clipConvexPolygonEmPKNS_10FloatPointEb 11242 11242 __ZN7WebCore15GraphicsContext8clipPathERKNS_4PathENS_8WindRuleE … … 14264 14264 __ZNK7WebCore15RenderTableCell20cellBaselinePositionEv 14265 14265 __ZNK7WebCore11RenderBlock20firstLineBoxBaselineEv 14266 __ZN7WebCore14Rounded IntRect5Radii5scaleEf14267 __ZN7WebCore14Rounded IntRect19includeLogicalEdgesERKNS0_5RadiiEbbb14268 __ZN7WebCore14Rounded IntRect5Radii6expandEiiii14269 __ZN7WebCore4Path14addRoundedRectERKNS_14Rounded IntRectE14266 __ZN7WebCore14RoundedRect5Radii5scaleEf 14267 __ZN7WebCore14RoundedRect19includeLogicalEdgesERKNS0_5RadiiEbbb 14268 __ZN7WebCore14RoundedRect5Radii6expandEiiii 14269 __ZN7WebCore4Path14addRoundedRectERKNS_14RoundedRectE 14270 14270 __ZN7WebCore4Path14addRoundedRectERKNS_9FloatRectERKNS_9FloatSizeES6_S6_S6_ 14271 14271 __ZN7WebCore21createListItemElementEPNS_8DocumentE … … 14367 14367 __ZN3WTF9HashTableIPKN7WebCore13InlineTextBoxESt4pairIS4_NS1_7IntRectEENS_18PairFirstExtractorIS7_EENS_7PtrHashIS4_EENS_14PairHashTraitsINS_10HashTraitsIS4_EENSD_IS6_EEEESE_E6rehashEi 14368 14368 __ZNK7WebCore15GraphicsContext23shadowsIgnoreTransformsEv 14369 __ZN7WebCore15GraphicsContext18clipOutRoundedRectERKNS_14Rounded IntRectE14369 __ZN7WebCore15GraphicsContext18clipOutRoundedRectERKNS_14RoundedRectE 14370 14370 __ZN7WebCore15GraphicsContext7clipOutERKNS_4PathE 14371 __ZN7WebCore15GraphicsContext15fillRoundedRectERKNS_14Rounded IntRectERKNS_5ColorENS_10ColorSpaceE14371 __ZN7WebCore15GraphicsContext15fillRoundedRectERKNS_14RoundedRectERKNS_5ColorENS_10ColorSpaceE 14372 14372 __ZN7WebCore15GraphicsContext15fillRoundedRectERKNS_7IntRectERKNS_7IntSizeES6_S6_S6_RKNS_5ColorENS_10ColorSpaceE 14373 14373 __ZN7WebCoreL39backgroundRectAdjustedForBleedAvoidanceEPNS_15GraphicsContextERKNS_7IntRectENS_24BackgroundBleedAvoidanceE 14374 14374 __ZN7WebCore20RenderBoxModelObject24getBackgroundRoundedRectERKNS_7IntRectEPNS_13InlineFlowBoxEiibb 14375 __ZN7WebCore15GraphicsContext18addRoundedRectClipERKNS_14Rounded IntRectE14375 __ZN7WebCore15GraphicsContext18addRoundedRectClipERKNS_14RoundedRectE 14376 14376 __ZN3WTF9HashTableIN7WebCore7IntSizeESt4pairIS2_NS_6RefPtrINS1_5ImageEEEENS_18PairFirstExtractorIS7_EENS_7IntHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSD_IS6_EEEESE_E16lookupForWritingIS2_NS_22IdentityHashTranslatorIS2_S7_SB_EEEES3_IPS7_bERKT_ 14377 14377 __ZN3WTF9HashTableIN7WebCore7IntSizeESt4pairIS2_NS_6RefPtrINS1_5ImageEEEENS_18PairFirstExtractorIS7_EENS_7IntHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSD_IS6_EEEESE_E3addIS2_S6_NS_17HashMapTranslatorIS7_SG_SB_EEEES3_INS_17HashTableIteratorIS2_S7_S9_SB_SG_SE_EEbERKT_RKT0_ … … 14381 14381 __ZN3WTF9HashTableIN7WebCore7IntSizeESt4pairIS2_NS_6RefPtrINS1_5ImageEEEENS_18PairFirstExtractorIS7_EENS_7IntHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSD_IS6_EEEESE_E6removeEPS7_ 14382 14382 __ZN3WTF9HashTableIN7WebCore7IntSizeESt4pairIS2_NS_6RefPtrINS1_5ImageEEEENS_18PairFirstExtractorIS7_EENS_7IntHashIS2_EENS_14PairHashTraitsINS_10HashTraitsIS2_EENSD_IS6_EEEESE_ED1Ev 14383 __ZN7WebCore15GraphicsContext23fillRectWithRoundedHoleERKNS_7IntRectERKNS_14Rounded IntRectERKNS_5ColorENS_10ColorSpaceE14384 __ZN7WebCore10ShadowBlur15drawInsetShadowEPNS_15GraphicsContextERKNS_9FloatRectES5_RKNS_14Rounded IntRect5RadiiE14385 __ZN7WebCore10ShadowBlur25drawInsetShadowWithTilingEPNS_15GraphicsContextERKNS_9FloatRectES5_RKNS_14Rounded IntRect5RadiiERKNS_7IntSizeESC_14386 __ZNK7WebCore13ScratchBuffer22matchesLastInsetShadowERKNS_9FloatSizeERKNS_5ColorENS_10ColorSpaceERKNS_9FloatRectESA_RKNS_14Rounded IntRect5RadiiE14383 __ZN7WebCore15GraphicsContext23fillRectWithRoundedHoleERKNS_7IntRectERKNS_14RoundedRectERKNS_5ColorENS_10ColorSpaceE 14384 __ZN7WebCore10ShadowBlur15drawInsetShadowEPNS_15GraphicsContextERKNS_9FloatRectES5_RKNS_14RoundedRect5RadiiE 14385 __ZN7WebCore10ShadowBlur25drawInsetShadowWithTilingEPNS_15GraphicsContextERKNS_9FloatRectES5_RKNS_14RoundedRect5RadiiERKNS_7IntSizeESC_ 14386 __ZNK7WebCore13ScratchBuffer22matchesLastInsetShadowERKNS_9FloatSizeERKNS_5ColorENS_10ColorSpaceERKNS_9FloatRectESA_RKNS_14RoundedRect5RadiiE 14387 14387 __ZN7WebCore14GeneratedImage11drawPatternEPNS_15GraphicsContextERKNS_9FloatRectERKNS_15AffineTransformERKNS_10FloatPointENS_10ColorSpaceENS_17CompositeOperatorES5_ 14388 14388 __ZN7WebCore8Gradient31adjustParametersForTiledDrawingERNS_7IntSizeERNS_9FloatRectE … … 16693 16693 __ZN7WebCore16findIntersectionERKNS_10FloatPointES2_S2_S2_RS0_ 16694 16694 __ZN7WebCore20RenderBoxModelObject19drawBoxSideFromPathEPNS_15GraphicsContextERKNS_7IntRectERKNS_4PathEPKNS_10BorderEdgeEffNS_7BoxSideEPKNS_11RenderStyleENS_5ColorENS_12EBorderStyleENS_24BackgroundBleedAvoidanceEbb 16695 __ZN7WebCore20RenderBoxModelObject27paintTranslucentBorderSidesEPNS_15GraphicsContextEPKNS_11RenderStyleERKNS_14Rounded IntRectES8_PKNS_10BorderEdgeENS_24BackgroundBleedAvoidanceEbbb16695 __ZN7WebCore20RenderBoxModelObject27paintTranslucentBorderSidesEPNS_15GraphicsContextEPKNS_11RenderStyleERKNS_14RoundedRectES8_PKNS_10BorderEdgeENS_24BackgroundBleedAvoidanceEbbb 16696 16696 __ZN3WTF9HashTableIPNS_15ListHashSetNodeIPN7WebCore11RenderBlock14FloatingObjectELm4EEES7_NS_17IdentityExtractorIS7_EENS_28ListHashSetNodeHashFunctionsIS5_Lm4ENS3_27FloatingObjectHashFunctionsEEENS_10HashTraitsIS7_EESE_E16lookupForWritingERKS7_ 16697 16697 __ZN3WTF9HashTableIPNS_15ListHashSetNodeIPN7WebCore11RenderBlock14FloatingObjectELm4EEES7_NS_17IdentityExtractorIS7_EENS_28ListHashSetNodeHashFunctionsIS5_Lm4ENS3_27FloatingObjectHashFunctionsEEENS_10HashTraitsIS7_EESE_E3addIS5_PNS_24ListHashSetNodeAllocatorIS5_Lm4EEENS_21ListHashSetTranslatorIS5_Lm4ESB_EEEESt4pairINS_17HashTableIteratorIS7_S7_S9_SC_SE_SE_EEbERKT_RKT0_ … … 17116 17116 __ZN7WebCore11RenderStyle12setBorderFitENS_10EBorderFitE 17117 17117 __ZNK7WebCore11RenderBlock18adjustForBorderFitEiRiS1_ 17118 __ZN7WebCore10ShadowBlur27drawRectShadowWithoutTilingEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14Rounded IntRect5RadiiERKNS_7IntRectE17118 __ZN7WebCore10ShadowBlur27drawRectShadowWithoutTilingEPNS_15GraphicsContextERKNS_9FloatRectERKNS_14RoundedRect5RadiiERKNS_7IntRectE 17119 17119 __ZN7WebCore10ShadowBlur16drawShadowBufferEPNS_15GraphicsContextE 17120 17120 __ZNK7WebCore4Path6lengthEv … … 17132 17132 __ZN7WebCore13InlineFlowBox9paintMaskERNS_9PaintInfoEii 17133 17133 __ZN7WebCore8SVGImage26nativeImageForCurrentFrameEv 17134 __ZN7WebCore10ShadowBlur28drawInsetShadowWithoutTilingEPNS_15GraphicsContextERKNS_9FloatRectES5_RKNS_14Rounded IntRect5RadiiERKNS_7IntRectE17134 __ZN7WebCore10ShadowBlur28drawInsetShadowWithoutTilingEPNS_15GraphicsContextERKNS_9FloatRectES5_RKNS_14RoundedRect5RadiiERKNS_7IntRectE 17135 17135 __ZN7WebCore11RenderStyle12setMaxHeightENS_6LengthE 17136 17136 __ZN7WebCore13CSSStyleSheet18determineNamespaceERKN3WTF12AtomicStringE … … 19417 19417 __ZNK7WebCore17SpinButtonElement21isReadOnlyFormControlEv 19418 19418 __ZN7WebCore14RenderThemeMac16paintSliderTrackEPNS_12RenderObjectERKNS_9PaintInfoERKNS_7IntRectE 19419 __ZN7WebCore14Rounded IntRectC1ERKNS_7IntRectERKNS_7IntSizeES6_S6_S6_19419 __ZN7WebCore14RoundedRectC1ERKNS_7IntRectERKNS_7IntSizeES6_S6_S6_ 19420 19420 __ZN7WebCoreL24TrackGradientInterpolateEPvPKdPd 19421 19421 __ZN7WebCore14RenderThemeMac16paintSliderThumbEPNS_12RenderObjectERKNS_9PaintInfoERKNS_7IntRectE -
trunk/Source/WebCore/WebCore.pro
r90680 r90832 1000 1000 platform/graphics/PathTraversalState.cpp \ 1001 1001 platform/graphics/Pattern.cpp \ 1002 platform/graphics/Rounded IntRect.cpp \1002 platform/graphics/RoundedRect.cpp \ 1003 1003 platform/graphics/SegmentedFontData.cpp \ 1004 1004 platform/graphics/ShadowBlur.cpp \ … … 1991 1991 platform/graphics/PathTraversalState.h \ 1992 1992 platform/graphics/Pattern.h \ 1993 platform/graphics/Rounded IntRect.h \1993 platform/graphics/RoundedRect.h \ 1994 1994 platform/graphics/qt/FontCustomPlatformData.h \ 1995 1995 platform/graphics/qt/ImageDecoderQt.h \ -
trunk/Source/WebCore/WebCore.vcproj/WebCore.vcproj
r90830 r90832 27658 27658 </File> 27659 27659 <File 27660 RelativePath="..\platform\graphics\Rounded IntRect.cpp"27661 > 27662 </File> 27663 <File 27664 RelativePath="..\platform\graphics\Rounded IntRect.h"27660 RelativePath="..\platform\graphics\RoundedRect.cpp" 27661 > 27662 </File> 27663 <File 27664 RelativePath="..\platform\graphics\RoundedRect.h" 27665 27665 > 27666 27666 </File> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r90680 r90832 3296 3296 A71C30B81381265E00DBC351 /* ShadowContentSelector.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A71C30B61381265E00DBC351 /* ShadowContentSelector.cpp */; }; 3297 3297 A71C30B91381265E00DBC351 /* ShadowContentSelector.h in Headers */ = {isa = PBXBuildFile; fileRef = A71C30B71381265E00DBC351 /* ShadowContentSelector.h */; }; 3298 A73F95FE12C97BFE0031AAF9 /* Rounded IntRect.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A73F95FC12C97BFE0031AAF9 /* RoundedIntRect.cpp */; };3299 A73F95FF12C97BFE0031AAF9 /* Rounded IntRect.h in Headers */ = {isa = PBXBuildFile; fileRef = A73F95FD12C97BFE0031AAF9 /* RoundedIntRect.h */; settings = {ATTRIBUTES = (Private, ); }; };3298 A73F95FE12C97BFE0031AAF9 /* RoundedRect.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A73F95FC12C97BFE0031AAF9 /* RoundedRect.cpp */; }; 3299 A73F95FF12C97BFE0031AAF9 /* RoundedRect.h in Headers */ = {isa = PBXBuildFile; fileRef = A73F95FD12C97BFE0031AAF9 /* RoundedRect.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3300 3300 A74C2D3C13811E0D00F83572 /* ShadowContentElement.h in Headers */ = {isa = PBXBuildFile; fileRef = A74C2D3B13811E0D00F83572 /* ShadowContentElement.h */; settings = {ATTRIBUTES = (Private, ); }; }; 3301 3301 A75E497610752ACB00C9B896 /* SerializedScriptValue.h in Headers */ = {isa = PBXBuildFile; fileRef = A75E497410752ACB00C9B896 /* SerializedScriptValue.h */; settings = {ATTRIBUTES = (Private, ); }; }; … … 9825 9825 A71C30B61381265E00DBC351 /* ShadowContentSelector.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = ShadowContentSelector.cpp; sourceTree = "<group>"; }; 9826 9826 A71C30B71381265E00DBC351 /* ShadowContentSelector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShadowContentSelector.h; sourceTree = "<group>"; }; 9827 A73F95FC12C97BFE0031AAF9 /* Rounded IntRect.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RoundedIntRect.cpp; sourceTree = "<group>"; };9828 A73F95FD12C97BFE0031AAF9 /* Rounded IntRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RoundedIntRect.h; sourceTree = "<group>"; };9827 A73F95FC12C97BFE0031AAF9 /* RoundedRect.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RoundedRect.cpp; sourceTree = "<group>"; }; 9828 A73F95FD12C97BFE0031AAF9 /* RoundedRect.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RoundedRect.h; sourceTree = "<group>"; }; 9829 9829 A74C2D3B13811E0D00F83572 /* ShadowContentElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ShadowContentElement.h; sourceTree = "<group>"; }; 9830 9830 A75E497410752ACB00C9B896 /* SerializedScriptValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SerializedScriptValue.h; sourceTree = "<group>"; }; … … 18086 18086 A8FA6E5C0E4CFDED00D5CF49 /* Pattern.cpp */, 18087 18087 A8FA6E5B0E4CFDED00D5CF49 /* Pattern.h */, 18088 A73F95FC12C97BFE0031AAF9 /* Rounded IntRect.cpp */,18089 A73F95FD12C97BFE0031AAF9 /* Rounded IntRect.h */,18088 A73F95FC12C97BFE0031AAF9 /* RoundedRect.cpp */, 18089 A73F95FD12C97BFE0031AAF9 /* RoundedRect.h */, 18090 18090 371F4FFB0D25E7F300ECE0D5 /* SegmentedFontData.cpp */, 18091 18091 371F4FFA0D25E7F300ECE0D5 /* SegmentedFontData.h */, … … 22459 22459 A8CFF5E10A155A05000A4234 /* RootInlineBox.h in Headers */, 22460 22460 49E911C90EF86D47009D0CAF /* RotateTransformOperation.h in Headers */, 22461 A73F95FF12C97BFE0031AAF9 /* Rounded IntRect.h in Headers */,22461 A73F95FF12C97BFE0031AAF9 /* RoundedRect.h in Headers */, 22462 22462 1C63A2480F71646600C09D5A /* RunLoopTimer.h in Headers */, 22463 22463 1A569D1F0D7E2B82007C3983 /* runtime_array.h in Headers */, … … 25364 25364 A8CFF5E70A155A05000A4234 /* RootInlineBox.cpp in Sources */, 25365 25365 49E911C80EF86D47009D0CAF /* RotateTransformOperation.cpp in Sources */, 25366 A73F95FE12C97BFE0031AAF9 /* Rounded IntRect.cpp in Sources */,25366 A73F95FE12C97BFE0031AAF9 /* RoundedRect.cpp in Sources */, 25367 25367 1C63A2490F71646600C09D5A /* RunLoopTimerCF.cpp in Sources */, 25368 25368 1A569D1E0D7E2B82007C3983 /* runtime_array.cpp in Sources */, -
trunk/Source/WebCore/platform/graphics/GraphicsContext.cpp
r90767 r90832 32 32 #include "ImageBuffer.h" 33 33 #include "IntRect.h" 34 #include "Rounded IntRect.h"34 #include "RoundedRect.h" 35 35 #include "TextRun.h" 36 36 … … 555 555 #endif 556 556 557 void GraphicsContext::addRoundedRectClip(const Rounded IntRect& rect)557 void GraphicsContext::addRoundedRectClip(const RoundedRect& rect) 558 558 { 559 559 if (paintingDisabled()) … … 565 565 } 566 566 567 void GraphicsContext::clipOutRoundedRect(const Rounded IntRect& rect)567 void GraphicsContext::clipOutRoundedRect(const RoundedRect& rect) 568 568 { 569 569 if (paintingDisabled()) … … 621 621 } 622 622 623 void GraphicsContext::fillRoundedRect(const Rounded IntRect& rect, const Color& color, ColorSpace colorSpace)623 void GraphicsContext::fillRoundedRect(const RoundedRect& rect, const Color& color, ColorSpace colorSpace) 624 624 { 625 625 fillRoundedRect(rect.rect(), rect.radii().topLeft(), rect.radii().topRight(), rect.radii().bottomLeft(), rect.radii().bottomRight(), color, colorSpace); … … 627 627 628 628 #if !USE(CG) 629 void GraphicsContext::fillRectWithRoundedHole(const IntRect& rect, const Rounded IntRect& roundedHoleRect, const Color& color, ColorSpace colorSpace)629 void GraphicsContext::fillRectWithRoundedHole(const IntRect& rect, const RoundedRect& roundedHoleRect, const Color& color, ColorSpace colorSpace) 630 630 { 631 631 if (paintingDisabled()) -
trunk/Source/WebCore/platform/graphics/GraphicsContext.h
r90767 r90832 127 127 class ImageBuffer; 128 128 class IntRect; 129 class Rounded IntRect;129 class RoundedRect; 130 130 class KURL; 131 131 class SharedGraphicsContext3D; … … 300 300 void fillRect(const FloatRect&, const Color&, ColorSpace, CompositeOperator); 301 301 void fillRoundedRect(const IntRect&, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight, const Color&, ColorSpace); 302 void fillRoundedRect(const Rounded IntRect&, const Color&, ColorSpace);303 void fillRectWithRoundedHole(const IntRect&, const Rounded IntRect& roundedHoleRect, const Color&, ColorSpace);302 void fillRoundedRect(const RoundedRect&, const Color&, ColorSpace); 303 void fillRectWithRoundedHole(const IntRect&, const RoundedRect& roundedHoleRect, const Color&, ColorSpace); 304 304 305 305 void clearRect(const FloatRect&); … … 331 331 void clip(const IntRect&); 332 332 void clip(const FloatRect&); 333 void addRoundedRectClip(const Rounded IntRect&);333 void addRoundedRectClip(const RoundedRect&); 334 334 void addInnerRoundedRectClip(const IntRect&, int thickness); 335 335 void clipOut(const IntRect&); 336 void clipOutRoundedRect(const Rounded IntRect&);336 void clipOutRoundedRect(const RoundedRect&); 337 337 void clipPath(const Path&, WindRule); 338 338 void clipConvexPolygon(size_t numPoints, const FloatPoint*, bool antialias = true); -
trunk/Source/WebCore/platform/graphics/Path.cpp
r87955 r90832 93 93 #endif 94 94 95 void Path::addRoundedRect(const Rounded IntRect& r)95 void Path::addRoundedRect(const RoundedRect& r) 96 96 { 97 97 addRoundedRect(r.rect(), r.radii().topLeft(), r.radii().topRight(), r.radii().bottomLeft(), r.radii().bottomRight()); -
trunk/Source/WebCore/platform/graphics/Path.h
r87955 r90832 29 29 #define Path_h 30 30 31 #include "Rounded IntRect.h"31 #include "RoundedRect.h" 32 32 #include <wtf/FastAllocBase.h> 33 33 #include <wtf/Forward.h> … … 139 139 void addRoundedRect(const FloatRect&, const FloatSize& roundingRadii); 140 140 void addRoundedRect(const FloatRect&, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius); 141 void addRoundedRect(const Rounded IntRect&);141 void addRoundedRect(const RoundedRect&); 142 142 143 143 void translate(const FloatSize&); -
trunk/Source/WebCore/platform/graphics/RoundedRect.cpp
r90831 r90832 26 26 27 27 #include "config.h" 28 #include "Rounded IntRect.h"28 #include "RoundedRect.h" 29 29 30 #include "IntRect.h"31 30 #include <algorithm> 32 31 … … 35 34 namespace WebCore { 36 35 37 bool Rounded IntRect::Radii::isZero() const36 bool RoundedRect::Radii::isZero() const 38 37 { 39 38 return m_topLeft.isZero() && m_topRight.isZero() && m_bottomLeft.isZero() && m_bottomRight.isZero(); 40 39 } 41 40 42 void Rounded IntRect::Radii::scale(float factor)41 void RoundedRect::Radii::scale(float factor) 43 42 { 44 43 if (factor == 1) … … 48 47 m_topLeft.scale(factor); 49 48 if (!m_topLeft.width() || !m_topLeft.height()) 50 m_topLeft = IntSize();49 m_topLeft = LayoutSize(); 51 50 m_topRight.scale(factor); 52 51 if (!m_topRight.width() || !m_topRight.height()) 53 m_topRight = IntSize();52 m_topRight = LayoutSize(); 54 53 m_bottomLeft.scale(factor); 55 54 if (!m_bottomLeft.width() || !m_bottomLeft.height()) 56 m_bottomLeft = IntSize();55 m_bottomLeft = LayoutSize(); 57 56 m_bottomRight.scale(factor); 58 57 if (!m_bottomRight.width() || !m_bottomRight.height()) 59 m_bottomRight = IntSize();58 m_bottomRight = LayoutSize(); 60 59 61 60 } 62 61 63 void Rounded IntRect::Radii::expand(int topWidth, int bottomWidth, int leftWidth, int rightWidth)62 void RoundedRect::Radii::expand(LayoutUnit topWidth, LayoutUnit bottomWidth, LayoutUnit leftWidth, LayoutUnit rightWidth) 64 63 { 65 64 m_topLeft.setWidth(max(0, m_topLeft.width() + leftWidth)); … … 76 75 } 77 76 78 void Rounded IntRect::inflateWithRadii(int size)77 void RoundedRect::inflateWithRadii(LayoutUnit size) 79 78 { 80 IntRect old = m_rect;79 LayoutRect old = m_rect; 81 80 82 81 m_rect.inflate(size); … … 91 90 } 92 91 93 void Rounded IntRect::Radii::includeLogicalEdges(const RoundedIntRect::Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge)92 void RoundedRect::Radii::includeLogicalEdges(const RoundedRect::Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) 94 93 { 95 94 if (includeLogicalLeftEdge) { … … 110 109 } 111 110 112 void Rounded IntRect::Radii::excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge)111 void RoundedRect::Radii::excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge) 113 112 { 114 113 if (excludeLogicalLeftEdge) { 115 114 if (isHorizontal) 116 m_bottomLeft = IntSize();115 m_bottomLeft = LayoutSize(); 117 116 else 118 m_topRight = IntSize();119 m_topLeft = IntSize();117 m_topRight = LayoutSize(); 118 m_topLeft = LayoutSize(); 120 119 } 121 120 122 121 if (excludeLogicalRightEdge) { 123 122 if (isHorizontal) 124 m_topRight = IntSize();123 m_topRight = LayoutSize(); 125 124 else 126 m_bottomLeft = IntSize();127 m_bottomRight = IntSize();125 m_bottomLeft = LayoutSize(); 126 m_bottomRight = LayoutSize(); 128 127 } 129 128 } 130 129 131 Rounded IntRect::RoundedIntRect(int x, int y, int width, int height)130 RoundedRect::RoundedRect(LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height) 132 131 : m_rect(x, y, width, height) 133 132 { 134 133 } 135 134 136 Rounded IntRect::RoundedIntRect(const IntRect& rect, const Radii& radii)135 RoundedRect::RoundedRect(const LayoutRect& rect, const Radii& radii) 137 136 : m_rect(rect) 138 137 , m_radii(radii) … … 140 139 } 141 140 142 Rounded IntRect::RoundedIntRect(const IntRect& rect, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight)141 RoundedRect::RoundedRect(const LayoutRect& rect, const LayoutSize& topLeft, const LayoutSize& topRight, const LayoutSize& bottomLeft, const LayoutSize& bottomRight) 143 142 : m_rect(rect) 144 143 , m_radii(topLeft, topRight, bottomLeft, bottomRight) … … 146 145 } 147 146 148 void Rounded IntRect::includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge)147 void RoundedRect::includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) 149 148 { 150 149 m_radii.includeLogicalEdges(edges, isHorizontal, includeLogicalLeftEdge, includeLogicalRightEdge); 151 150 } 152 151 153 void Rounded IntRect::excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge)152 void RoundedRect::excludeLogicalEdges(bool isHorizontal, bool excludeLogicalLeftEdge, bool excludeLogicalRightEdge) 154 153 { 155 154 m_radii.excludeLogicalEdges(isHorizontal, excludeLogicalLeftEdge, excludeLogicalRightEdge); 156 155 } 157 156 158 bool Rounded IntRect::isRenderable() const157 bool RoundedRect::isRenderable() const 159 158 { 160 159 return m_radii.topLeft().width() + m_radii.topRight().width() <= m_rect.width() -
trunk/Source/WebCore/platform/graphics/RoundedRect.h
r90831 r90832 25 25 */ 26 26 27 #ifndef Rounded IntRect_h28 #define Rounded IntRect_h27 #ifndef RoundedRect_h 28 #define RoundedRect_h 29 29 30 #include " IntRect.h"30 #include "LayoutTypes.h" 31 31 32 32 namespace WebCore { 33 33 34 34 35 class Rounded IntRect {35 class RoundedRect { 36 36 public: 37 37 class Radii { 38 38 public: 39 39 Radii() {} 40 Radii(const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight)40 Radii(const LayoutSize& topLeft, const LayoutSize& topRight, const LayoutSize& bottomLeft, const LayoutSize& bottomRight) 41 41 : m_topLeft(topLeft) 42 42 , m_topRight(topRight) … … 46 46 } 47 47 48 void setTopLeft(const IntSize& size) { m_topLeft = size; }49 void setTopRight(const IntSize& size) { m_topRight = size; }50 void setBottomLeft(const IntSize& size) { m_bottomLeft = size; }51 void setBottomRight(const IntSize& size) { m_bottomRight = size; }52 const IntSize& topLeft() const { return m_topLeft; }53 const IntSize& topRight() const { return m_topRight; }54 const IntSize& bottomLeft() const { return m_bottomLeft; }55 const IntSize& bottomRight() const { return m_bottomRight; }48 void setTopLeft(const LayoutSize& size) { m_topLeft = size; } 49 void setTopRight(const LayoutSize& size) { m_topRight = size; } 50 void setBottomLeft(const LayoutSize& size) { m_bottomLeft = size; } 51 void setBottomRight(const LayoutSize& size) { m_bottomRight = size; } 52 const LayoutSize& topLeft() const { return m_topLeft; } 53 const LayoutSize& topRight() const { return m_topRight; } 54 const LayoutSize& bottomLeft() const { return m_bottomLeft; } 55 const LayoutSize& bottomRight() const { return m_bottomRight; } 56 56 57 57 bool isZero() const; … … 61 61 62 62 void scale(float factor); 63 void expand( int topWidth, int bottomWidth, int leftWidth, int rightWidth);64 void expand( int size) { expand(size, size, size, size); }65 void shrink( int topWidth, int bottomWidth, int leftWidth, int rightWidth) { expand(-topWidth, -bottomWidth, -leftWidth, -rightWidth); }66 void shrink( int size) { shrink(size, size, size, size); }63 void expand(LayoutUnit topWidth, LayoutUnit bottomWidth, LayoutUnit leftWidth, LayoutUnit rightWidth); 64 void expand(LayoutUnit size) { expand(size, size, size, size); } 65 void shrink(LayoutUnit topWidth, LayoutUnit bottomWidth, LayoutUnit leftWidth, LayoutUnit rightWidth) { expand(-topWidth, -bottomWidth, -leftWidth, -rightWidth); } 66 void shrink(LayoutUnit size) { shrink(size, size, size, size); } 67 67 68 68 private: 69 IntSize m_topLeft;70 IntSize m_topRight;71 IntSize m_bottomLeft;72 IntSize m_bottomRight;69 LayoutSize m_topLeft; 70 LayoutSize m_topRight; 71 LayoutSize m_bottomLeft; 72 LayoutSize m_bottomRight; 73 73 }; 74 74 75 explicit Rounded IntRect(const IntRect&, const Radii& = Radii());76 Rounded IntRect(int x, int y, int width, int height);77 Rounded IntRect(const IntRect&, const IntSize& topLeft, const IntSize& topRight, const IntSize& bottomLeft, const IntSize& bottomRight);75 explicit RoundedRect(const LayoutRect&, const Radii& = Radii()); 76 RoundedRect(LayoutUnit x, LayoutUnit y, LayoutUnit width, LayoutUnit height); 77 RoundedRect(const LayoutRect&, const LayoutSize& topLeft, const LayoutSize& topRight, const LayoutSize& bottomLeft, const LayoutSize& bottomRight); 78 78 79 const IntRect& rect() const { return m_rect; }79 const LayoutRect& rect() const { return m_rect; } 80 80 const Radii& radii() const { return m_radii; } 81 81 bool isRounded() const { return !m_radii.isZero(); } 82 82 bool isEmpty() const { return m_rect.isEmpty(); } 83 83 84 void setRect(const IntRect& rect) { m_rect = rect; }84 void setRect(const LayoutRect& rect) { m_rect = rect; } 85 85 void setRadii(const Radii& radii) { m_radii = radii; } 86 86 87 void move(const IntSize& size) { m_rect.move(size); }88 void inflate( int size) { m_rect.inflate(size); }89 void inflateWithRadii( int size);90 void expandRadii( int size) { m_radii.expand(size); }91 void shrinkRadii( int size) { m_radii.shrink(size); }87 void move(const LayoutSize& size) { m_rect.move(size); } 88 void inflate(LayoutUnit size) { m_rect.inflate(size); } 89 void inflateWithRadii(LayoutUnit size); 90 void expandRadii(LayoutUnit size) { m_radii.expand(size); } 91 void shrinkRadii(LayoutUnit size) { m_radii.shrink(size); } 92 92 93 93 void includeLogicalEdges(const Radii& edges, bool isHorizontal, bool includeLogicalLeftEdge, bool includeLogicalRightEdge); … … 97 97 98 98 private: 99 IntRect m_rect;99 LayoutRect m_rect; 100 100 Radii m_radii; 101 101 }; 102 102 103 inline bool operator==(const Rounded IntRect::Radii& a, const RoundedIntRect::Radii& b)103 inline bool operator==(const RoundedRect::Radii& a, const RoundedRect::Radii& b) 104 104 { 105 105 return a.topLeft() == b.topLeft() && a.topRight() == b.topRight() && a.bottomLeft() == b.bottomLeft() && a.bottomRight() == b.bottomRight(); 106 106 } 107 107 108 inline bool operator==(const Rounded IntRect& a, const RoundedIntRect& b)108 inline bool operator==(const RoundedRect& a, const RoundedRect& b) 109 109 { 110 110 return a.rect() == b.rect() && a.radii() == b.radii(); … … 114 114 } // namespace WebCore 115 115 116 #endif // Rounded IntRect_h116 #endif // RoundedRect_h -
trunk/Source/WebCore/platform/graphics/ShadowBlur.cpp
r90406 r90832 84 84 } 85 85 86 void setLastShadowValues(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const Rounded IntRect::Radii& radii)86 void setLastShadowValues(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const RoundedRect::Radii& radii) 87 87 { 88 88 m_lastWasInset = false; … … 94 94 } 95 95 96 void setLastInsetShadowValues(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const Rounded IntRect::Radii& radii)96 void setLastInsetShadowValues(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const RoundedRect::Radii& radii) 97 97 { 98 98 m_lastWasInset = true; … … 105 105 } 106 106 107 bool matchesLastShadow(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const Rounded IntRect::Radii& radii) const107 bool matchesLastShadow(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& shadowRect, const RoundedRect::Radii& radii) const 108 108 { 109 109 if (m_lastWasInset) … … 112 112 } 113 113 114 bool matchesLastInsetShadow(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const Rounded IntRect::Radii& radii) const114 bool matchesLastInsetShadow(const FloatSize& radius, const Color& color, ColorSpace colorSpace, const FloatRect& bounds, const FloatRect& shadowRect, const RoundedRect::Radii& radii) const 115 115 { 116 116 if (!m_lastWasInset) … … 150 150 FloatRect m_lastInsetBounds; 151 151 FloatRect m_lastShadowRect; 152 Rounded IntRect::Radii m_lastRadii;152 RoundedRect::Radii m_lastRadii; 153 153 Color m_lastColor; 154 154 ColorSpace m_lastColorSpace; … … 477 477 } 478 478 479 static void computeSliceSizesFromRadii(const IntSize& twiceRadius, const Rounded IntRect::Radii& radii, int& leftSlice, int& rightSlice, int& topSlice, int& bottomSlice)479 static void computeSliceSizesFromRadii(const IntSize& twiceRadius, const RoundedRect::Radii& radii, int& leftSlice, int& rightSlice, int& topSlice, int& bottomSlice) 480 480 { 481 481 leftSlice = twiceRadius.width() + max(radii.topLeft().width(), radii.bottomLeft().width()); … … 486 486 } 487 487 488 IntSize ShadowBlur::templateSize(const IntSize& radiusPadding, const Rounded IntRect::Radii& radii) const488 IntSize ShadowBlur::templateSize(const IntSize& radiusPadding, const RoundedRect::Radii& radii) const 489 489 { 490 490 const int templateSideLength = 1; … … 504 504 } 505 505 506 void ShadowBlur::drawRectShadow(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, const Rounded IntRect::Radii& radii)506 void ShadowBlur::drawRectShadow(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, const RoundedRect::Radii& radii) 507 507 { 508 508 IntRect layerRect = calculateLayerBoundingRect(graphicsContext, shadowedRect, graphicsContext->clipBounds()); … … 531 531 } 532 532 533 void ShadowBlur::drawInsetShadow(GraphicsContext* graphicsContext, const FloatRect& rect, const FloatRect& holeRect, const Rounded IntRect::Radii& holeRadii)533 void ShadowBlur::drawInsetShadow(GraphicsContext* graphicsContext, const FloatRect& rect, const FloatRect& holeRect, const RoundedRect::Radii& holeRadii) 534 534 { 535 535 IntRect layerRect = calculateLayerBoundingRect(graphicsContext, rect, graphicsContext->clipBounds()); … … 558 558 } 559 559 560 void ShadowBlur::drawRectShadowWithoutTiling(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, const Rounded IntRect::Radii& radii, const IntRect& layerRect)560 void ShadowBlur::drawRectShadowWithoutTiling(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, const RoundedRect::Radii& radii, const IntRect& layerRect) 561 561 { 562 562 m_layerImage = ScratchBuffer::shared().getScratchBuffer(layerRect.size()); … … 592 592 } 593 593 594 void ShadowBlur::drawInsetShadowWithoutTiling(GraphicsContext* graphicsContext, const FloatRect& rect, const FloatRect& holeRect, const Rounded IntRect::Radii& holeRadii, const IntRect& layerRect)594 void ShadowBlur::drawInsetShadowWithoutTiling(GraphicsContext* graphicsContext, const FloatRect& rect, const FloatRect& holeRect, const RoundedRect::Radii& holeRadii, const IntRect& layerRect) 595 595 { 596 596 m_layerImage = ScratchBuffer::shared().getScratchBuffer(layerRect.size()); … … 665 665 */ 666 666 667 void ShadowBlur::drawInsetShadowWithTiling(GraphicsContext* graphicsContext, const FloatRect& rect, const FloatRect& holeRect, const Rounded IntRect::Radii& radii, const IntSize& templateSize, const IntSize& edgeSize)667 void ShadowBlur::drawInsetShadowWithTiling(GraphicsContext* graphicsContext, const FloatRect& rect, const FloatRect& holeRect, const RoundedRect::Radii& radii, const IntSize& templateSize, const IntSize& edgeSize) 668 668 { 669 669 GraphicsContextStateSaver stateSaver(*graphicsContext); … … 727 727 } 728 728 729 void ShadowBlur::drawRectShadowWithTiling(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, const Rounded IntRect::Radii& radii, const IntSize& templateSize, const IntSize& edgeSize)729 void ShadowBlur::drawRectShadowWithTiling(GraphicsContext* graphicsContext, const FloatRect& shadowedRect, const RoundedRect::Radii& radii, const IntSize& templateSize, const IntSize& edgeSize) 730 730 { 731 731 GraphicsContextStateSaver stateSaver(*graphicsContext); … … 770 770 } 771 771 772 void ShadowBlur::drawLayerPieces(GraphicsContext* graphicsContext, const FloatRect& shadowBounds, const Rounded IntRect::Radii& radii, const IntSize& bufferPadding, const IntSize& templateSize, ShadowDirection direction)772 void ShadowBlur::drawLayerPieces(GraphicsContext* graphicsContext, const FloatRect& shadowBounds, const RoundedRect::Radii& radii, const IntSize& bufferPadding, const IntSize& templateSize, ShadowDirection direction) 773 773 { 774 774 const IntSize twiceRadius = IntSize(bufferPadding.width() * 2, bufferPadding.height() * 2); -
trunk/Source/WebCore/platform/graphics/ShadowBlur.h
r90406 r90832 33 33 #include "ColorSpace.h" 34 34 #include "FloatRect.h" 35 #include "Rounded IntRect.h"35 #include "RoundedRect.h" 36 36 #include <wtf/Noncopyable.h> 37 37 … … 62 62 void endShadowLayer(GraphicsContext*); 63 63 64 void drawRectShadow(GraphicsContext*, const FloatRect&, const Rounded IntRect::Radii&);65 void drawInsetShadow(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const Rounded IntRect::Radii& holeRadii);64 void drawRectShadow(GraphicsContext*, const FloatRect&, const RoundedRect::Radii&); 65 void drawInsetShadow(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedRect::Radii& holeRadii); 66 66 67 67 void blurLayerImage(unsigned char*, const IntSize&, int stride); … … 83 83 84 84 IntRect calculateLayerBoundingRect(GraphicsContext*, const FloatRect& layerArea, const IntRect& clipRect); 85 IntSize templateSize(const IntSize& blurredEdgeSize, const Rounded IntRect::Radii&) const;85 IntSize templateSize(const IntSize& blurredEdgeSize, const RoundedRect::Radii&) const; 86 86 87 void drawRectShadowWithoutTiling(GraphicsContext*, const FloatRect&, const Rounded IntRect::Radii&, const IntRect& layerRect);88 void drawRectShadowWithTiling(GraphicsContext*, const FloatRect&, const Rounded IntRect::Radii&, const IntSize& shadowTemplateSize, const IntSize& blurredEdgeSize);87 void drawRectShadowWithoutTiling(GraphicsContext*, const FloatRect&, const RoundedRect::Radii&, const IntRect& layerRect); 88 void drawRectShadowWithTiling(GraphicsContext*, const FloatRect&, const RoundedRect::Radii&, const IntSize& shadowTemplateSize, const IntSize& blurredEdgeSize); 89 89 90 void drawInsetShadowWithoutTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const Rounded IntRect::Radii&, const IntRect& layerRect);91 void drawInsetShadowWithTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const Rounded IntRect::Radii&, const IntSize& shadowTemplateSize, const IntSize& blurredEdgeSize);90 void drawInsetShadowWithoutTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedRect::Radii&, const IntRect& layerRect); 91 void drawInsetShadowWithTiling(GraphicsContext*, const FloatRect&, const FloatRect& holeRect, const RoundedRect::Radii&, const IntSize& shadowTemplateSize, const IntSize& blurredEdgeSize); 92 92 93 void drawLayerPieces(GraphicsContext*, const FloatRect& shadowBounds, const Rounded IntRect::Radii&, const IntSize& roundedRadius, const IntSize& templateSize, ShadowDirection);93 void drawLayerPieces(GraphicsContext*, const FloatRect& shadowBounds, const RoundedRect::Radii&, const IntSize& roundedRadius, const IntSize& templateSize, ShadowDirection); 94 94 95 95 void blurShadowBuffer(const IntSize& templateSize); -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r89397 r90832 704 704 705 705 ShadowBlur contextShadow(FloatSize(shadowBlur, shadowBlur), m_state.shadowOffset, m_state.shadowColor, m_state.shadowColorSpace); 706 contextShadow.drawRectShadow(this, rect, Rounded IntRect::Radii());706 contextShadow.drawRectShadow(this, rect, RoundedRect::Radii()); 707 707 } 708 708 … … 733 733 734 734 ShadowBlur contextShadow(FloatSize(shadowBlur, shadowBlur), m_state.shadowOffset, m_state.shadowColor, m_state.shadowColorSpace); 735 contextShadow.drawRectShadow(this, rect, Rounded IntRect::Radii());735 contextShadow.drawRectShadow(this, rect, RoundedRect::Radii()); 736 736 } 737 737 … … 766 766 767 767 ShadowBlur contextShadow(FloatSize(shadowBlur, shadowBlur), m_state.shadowOffset, m_state.shadowColor, m_state.shadowColorSpace); 768 contextShadow.drawRectShadow(this, rect, Rounded IntRect::Radii(topLeft, topRight, bottomLeft, bottomRight));768 contextShadow.drawRectShadow(this, rect, RoundedRect::Radii(topLeft, topRight, bottomLeft, bottomRight)); 769 769 } 770 770 … … 787 787 } 788 788 789 void GraphicsContext::fillRectWithRoundedHole(const IntRect& rect, const Rounded IntRect& roundedHoleRect, const Color& color, ColorSpace colorSpace)789 void GraphicsContext::fillRectWithRoundedHole(const IntRect& rect, const RoundedRect& roundedHoleRect, const Color& color, ColorSpace colorSpace) 790 790 { 791 791 if (paintingDisabled()) -
trunk/Source/WebCore/rendering/RenderBox.cpp
r90773 r90832 851 851 // into a transparency layer, and then clip that in one go (which requires setting up the clip before 852 852 // beginning the layer). 853 Rounded IntRect border = style()->getRoundedBorderFor(paintRect);853 RoundedRect border = style()->getRoundedBorderFor(paintRect); 854 854 stateSaver.save(); 855 855 paintInfo.context->addRoundedRectClip(border); -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r90675 r90832 564 564 } 565 565 566 Rounded IntRect RenderBoxModelObject::getBackgroundRoundedRect(const IntRect& borderRect, InlineFlowBox* box, int inlineBoxWidth, int inlineBoxHeight,566 RoundedRect RenderBoxModelObject::getBackgroundRoundedRect(const LayoutRect& borderRect, InlineFlowBox* box, LayoutUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, 567 567 bool includeLogicalLeftEdge, bool includeLogicalRightEdge) 568 568 { 569 Rounded IntRect border = style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge, includeLogicalRightEdge);569 RoundedRect border = style()->getRoundedBorderFor(borderRect, includeLogicalLeftEdge, includeLogicalRightEdge); 570 570 if (box && (box->nextLineBox() || box->prevLineBox())) { 571 Rounded IntRect segmentBorder = style()->getRoundedBorderFor(IntRect(0, 0, inlineBoxWidth, inlineBoxHeight), includeLogicalLeftEdge, includeLogicalRightEdge);571 RoundedRect segmentBorder = style()->getRoundedBorderFor(LayoutRect(0, 0, inlineBoxWidth, inlineBoxHeight), includeLogicalLeftEdge, includeLogicalRightEdge); 572 572 border.setRadii(segmentBorder.radii()); 573 573 } … … 632 632 633 633 if (hasRoundedBorder && bleedAvoidance != BackgroundBleedUseTransparencyLayer) { 634 Rounded IntRect border = getBackgroundRoundedRect(backgroundRectAdjustedForBleedAvoidance(context, rect, bleedAvoidance), box, boxSize.width(), boxSize.height(), includeLeftEdge, includeRightEdge);634 RoundedRect border = getBackgroundRoundedRect(backgroundRectAdjustedForBleedAvoidance(context, rect, bleedAvoidance), box, boxSize.width(), boxSize.height(), includeLeftEdge, includeRightEdge); 635 635 context->fillRoundedRect(border, bgColor, style()->colorSpace()); 636 636 } else … … 643 643 GraphicsContextStateSaver clipToBorderStateSaver(*context, clipToBorderRadius); 644 644 if (clipToBorderRadius) { 645 Rounded IntRect border = getBackgroundRoundedRect(backgroundRectAdjustedForBleedAvoidance(context, rect, bleedAvoidance), box, boxSize.width(), boxSize.height(), includeLeftEdge, includeRightEdge);645 RoundedRect border = getBackgroundRoundedRect(backgroundRectAdjustedForBleedAvoidance(context, rect, bleedAvoidance), box, boxSize.width(), boxSize.height(), includeLeftEdge, includeRightEdge); 646 646 context->addRoundedRectClip(border); 647 647 } … … 1230 1230 } 1231 1231 1232 void RenderBoxModelObject::paintOneBorderSide(GraphicsContext* graphicsContext, const RenderStyle* style, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,1232 void RenderBoxModelObject::paintOneBorderSide(GraphicsContext* graphicsContext, const RenderStyle* style, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 1233 1233 const IntRect& sideRect, BoxSide side, BoxSide adjacentSide1, BoxSide adjacentSide2, const BorderEdge edges[], const Path* path, 1234 1234 BackgroundBleedAvoidance bleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias, const Color* overrideColor) … … 1268 1268 } 1269 1269 1270 void RenderBoxModelObject::paintBorderSides(GraphicsContext* graphicsContext, const RenderStyle* style, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,1270 void RenderBoxModelObject::paintBorderSides(GraphicsContext* graphicsContext, const RenderStyle* style, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 1271 1271 const BorderEdge edges[], BorderEdgeFlags edgeSet, BackgroundBleedAvoidance bleedAvoidance, 1272 1272 bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias, const Color* overrideColor) … … 1279 1279 1280 1280 if (edges[BSTop].shouldRender() && includesEdge(edgeSet, BSTop)) { 1281 IntRect sideRect = outerBorder.rect();1281 LayoutRect sideRect = outerBorder.rect(); 1282 1282 sideRect.setHeight(edges[BSTop].width); 1283 1283 … … 1287 1287 1288 1288 if (edges[BSBottom].shouldRender() && includesEdge(edgeSet, BSBottom)) { 1289 IntRect sideRect = outerBorder.rect();1289 LayoutRect sideRect = outerBorder.rect(); 1290 1290 sideRect.shiftYEdgeTo(sideRect.maxY() - edges[BSBottom].width); 1291 1291 … … 1295 1295 1296 1296 if (edges[BSLeft].shouldRender() && includesEdge(edgeSet, BSLeft)) { 1297 IntRect sideRect = outerBorder.rect();1297 LayoutRect sideRect = outerBorder.rect(); 1298 1298 sideRect.setWidth(edges[BSLeft].width); 1299 1299 … … 1303 1303 1304 1304 if (edges[BSRight].shouldRender() && includesEdge(edgeSet, BSRight)) { 1305 IntRect sideRect = outerBorder.rect();1305 LayoutRect sideRect = outerBorder.rect(); 1306 1306 sideRect.shiftXEdgeTo(sideRect.maxX() - edges[BSRight].width); 1307 1307 … … 1311 1311 } 1312 1312 1313 void RenderBoxModelObject::paintTranslucentBorderSides(GraphicsContext* graphicsContext, const RenderStyle* style, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,1313 void RenderBoxModelObject::paintTranslucentBorderSides(GraphicsContext* graphicsContext, const RenderStyle* style, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 1314 1314 const BorderEdge edges[], BackgroundBleedAvoidance bleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias) 1315 1315 { … … 1364 1364 getBorderEdgeInfo(edges, includeLogicalLeftEdge, includeLogicalRightEdge); 1365 1365 1366 Rounded IntRect outerBorder = style->getRoundedBorderFor(rect, includeLogicalLeftEdge, includeLogicalRightEdge);1367 Rounded IntRect innerBorder = style->getRoundedInnerBorderFor(rect, includeLogicalLeftEdge, includeLogicalRightEdge);1366 RoundedRect outerBorder = style->getRoundedBorderFor(rect, includeLogicalLeftEdge, includeLogicalRightEdge); 1367 RoundedRect innerBorder = style->getRoundedInnerBorderFor(rect, includeLogicalLeftEdge, includeLogicalRightEdge); 1368 1368 1369 1369 const AffineTransform& currentCTM = graphicsContext->getCTM(); … … 1517 1517 { 1518 1518 GraphicsContextStateSaver stateSaver(*graphicsContext); 1519 Rounded IntRect innerClip = style->getRoundedInnerBorderFor(borderRect,1519 RoundedRect innerClip = style->getRoundedInnerBorderFor(borderRect, 1520 1520 innerBorderTopWidth, innerBorderBottomWidth, innerBorderLeftWidth, innerBorderRightWidth, 1521 1521 includeLogicalLeftEdge, includeLogicalRightEdge); … … 1537 1537 } 1538 1538 1539 Rounded IntRect outerClip = style->getRoundedInnerBorderFor(outerRect,1539 RoundedRect outerClip = style->getRoundedInnerBorderFor(outerRect, 1540 1540 outerBorderTopWidth, outerBorderBottomWidth, outerBorderLeftWidth, outerBorderRightWidth, 1541 1541 includeLogicalLeftEdge, includeLogicalRightEdge); … … 1563 1563 // Paint inner only 1564 1564 GraphicsContextStateSaver stateSaver(*graphicsContext); 1565 int topWidth = edges[BSTop].usedWidth() / 2;1566 int bottomWidth = edges[BSBottom].usedWidth() / 2;1567 int leftWidth = edges[BSLeft].usedWidth() / 2;1568 int rightWidth = edges[BSRight].usedWidth() / 2;1569 1570 Rounded IntRect clipRect = style->getRoundedInnerBorderFor(borderRect,1565 LayoutUnit topWidth = edges[BSTop].usedWidth() / 2; 1566 LayoutUnit bottomWidth = edges[BSBottom].usedWidth() / 2; 1567 LayoutUnit leftWidth = edges[BSLeft].usedWidth() / 2; 1568 LayoutUnit rightWidth = edges[BSRight].usedWidth() / 2; 1569 1570 RoundedRect clipRect = style->getRoundedInnerBorderFor(borderRect, 1571 1571 topWidth, bottomWidth, leftWidth, rightWidth, 1572 1572 includeLogicalLeftEdge, includeLogicalRightEdge); … … 1623 1623 1624 1624 1625 Rounded IntRect border(rect);1625 RoundedRect border(rect); 1626 1626 1627 1627 GraphicsContextStateSaver stateSaver(*graphicsContext, false); … … 1927 1927 } 1928 1928 1929 void RenderBoxModelObject::clipBorderSidePolygon(GraphicsContext* graphicsContext, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,1929 void RenderBoxModelObject::clipBorderSidePolygon(GraphicsContext* graphicsContext, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 1930 1930 BoxSide side, bool firstEdgeMatches, bool secondEdgeMatches) 1931 1931 { … … 2098 2098 return; 2099 2099 2100 Rounded IntRect border = (shadowStyle == Inset) ? s->getRoundedInnerBorderFor(paintRect, includeLogicalLeftEdge, includeLogicalRightEdge)2100 RoundedRect border = (shadowStyle == Inset) ? s->getRoundedInnerBorderFor(paintRect, includeLogicalLeftEdge, includeLogicalRightEdge) 2101 2101 : s->getRoundedBorderFor(paintRect, includeLogicalLeftEdge, includeLogicalRightEdge); 2102 2102 … … 2119 2119 2120 2120 if (shadow->style() == Normal) { 2121 Rounded IntRect fillRect = border;2121 RoundedRect fillRect = border; 2122 2122 fillRect.inflate(shadowSpread); 2123 2123 if (fillRect.isEmpty()) … … 2143 2143 2144 2144 if (hasBorderRadius) { 2145 Rounded IntRect rectToClipOut = border;2145 RoundedRect rectToClipOut = border; 2146 2146 2147 2147 // If the box is opaque, it is unnecessary to clip it out. However, doing so saves time … … 2207 2207 2208 2208 LayoutRect outerRect = areaCastingShadowInHole(border.rect(), shadowBlur, shadowSpread, shadowOffset); 2209 Rounded IntRect roundedHole(holeRect, border.radii());2209 RoundedRect roundedHole(holeRect, border.radii()); 2210 2210 2211 2211 GraphicsContextStateSaver stateSaver(*context); -
trunk/Source/WebCore/rendering/RenderBoxModelObject.h
r90675 r90832 150 150 IntSize calculateFillTileSize(const FillLayer*, IntSize scaledSize) const; 151 151 152 Rounded IntRect getBackgroundRoundedRect(const IntRect&, InlineFlowBox*, int inlineBoxWidth, int inlineBoxHeight,152 RoundedRect getBackgroundRoundedRect(const LayoutRect&, InlineFlowBox*, LayoutUnit inlineBoxWidth, LayoutUnit inlineBoxHeight, 153 153 bool includeLogicalLeftEdge, bool includeLogicalRightEdge); 154 154 155 void clipBorderSidePolygon(GraphicsContext*, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,155 void clipBorderSidePolygon(GraphicsContext*, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 156 156 BoxSide, bool firstEdgeMatches, bool secondEdgeMatches); 157 void paintOneBorderSide(GraphicsContext*, const RenderStyle*, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,157 void paintOneBorderSide(GraphicsContext*, const RenderStyle*, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 158 158 const IntRect& sideRect, BoxSide, BoxSide adjacentSide1, BoxSide adjacentSide2, const class BorderEdge[], 159 159 const Path*, BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias, const Color* overrideColor = 0); 160 void paintTranslucentBorderSides(GraphicsContext*, const RenderStyle*, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,160 void paintTranslucentBorderSides(GraphicsContext*, const RenderStyle*, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 161 161 const class BorderEdge[], BackgroundBleedAvoidance, bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias = false); 162 void paintBorderSides(GraphicsContext*, const RenderStyle*, const Rounded IntRect& outerBorder, const RoundedIntRect& innerBorder,162 void paintBorderSides(GraphicsContext*, const RenderStyle*, const RoundedRect& outerBorder, const RoundedRect& innerBorder, 163 163 const class BorderEdge[], BorderEdgeFlags, BackgroundBleedAvoidance, 164 164 bool includeLogicalLeftEdge, bool includeLogicalRightEdge, bool antialias = false, const Color* overrideColor = 0); -
trunk/Source/WebCore/rendering/RenderThemeMac.mm
r90525 r90832 1025 1025 GraphicsContextStateSaver stateSaver(*paintInfo.context); 1026 1026 1027 Rounded IntRect border = o->style()->getRoundedBorderFor(r);1027 RoundedRect border = o->style()->getRoundedBorderFor(r); 1028 1028 int radius = border.radii().topLeft().width(); 1029 1029 … … 1059 1059 GraphicsContextStateSaver stateSaver(*paintInfo.context); 1060 1060 CGContextClipToRect(context, topGradient); 1061 paintInfo.context->addRoundedRectClip(Rounded IntRect(enclosingIntRect(topGradient), border.radii().topLeft(), border.radii().topRight(), IntSize(), IntSize()));1061 paintInfo.context->addRoundedRectClip(RoundedRect(enclosingLayoutRect(topGradient), border.radii().topLeft(), border.radii().topRight(), IntSize(), IntSize())); 1062 1062 context = cgContextContainer.context(); 1063 1063 CGContextDrawShading(context, topShading.get()); … … 1067 1067 GraphicsContextStateSaver stateSaver(*paintInfo.context); 1068 1068 CGContextClipToRect(context, bottomGradient); 1069 paintInfo.context->addRoundedRectClip(Rounded IntRect(enclosingIntRect(bottomGradient), IntSize(), IntSize(), border.radii().bottomLeft(), border.radii().bottomRight()));1069 paintInfo.context->addRoundedRectClip(RoundedRect(enclosingLayoutRect(bottomGradient), IntSize(), IntSize(), border.radii().bottomLeft(), border.radii().bottomRight())); 1070 1070 context = cgContextContainer.context(); 1071 1071 CGContextDrawShading(context, bottomShading.get()); … … 1293 1293 1294 1294 IntSize radius(trackRadius, trackRadius); 1295 paintInfo.context->addRoundedRectClip(Rounded IntRect(bounds, radius, radius, radius, radius));1295 paintInfo.context->addRoundedRectClip(RoundedRect(bounds, radius, radius, radius, radius)); 1296 1296 context = localContext.cgContext(); 1297 1297 CGContextDrawShading(context, mainShading.get()); -
trunk/Source/WebCore/rendering/RenderThemeSafari.cpp
r88415 r90832 754 754 paintInfo.context->save(); 755 755 756 Rounded IntRect bound = o->style()->getRoundedBorderFor(r);756 RoundedRect bound = o->style()->getRoundedBorderFor(r); 757 757 int radius = bound.radii().topLeft().width(); 758 758 … … 784 784 paintInfo.context->save(); 785 785 CGContextClipToRect(context, topGradient); 786 paintInfo.context->addRoundedRectClip(Rounded IntRect(enclosingIntRect(topGradient), bound.radii().topLeft(), bound.radii().topRight(), IntSize(), IntSize()));786 paintInfo.context->addRoundedRectClip(RoundedRect(enclosingIntRect(topGradient), bound.radii().topLeft(), bound.radii().topRight(), IntSize(), IntSize())); 787 787 CGContextDrawShading(context, topShading.get()); 788 788 paintInfo.context->restore(); … … 791 791 paintInfo.context->save(); 792 792 CGContextClipToRect(context, bottomGradient); 793 paintInfo.context->addRoundedRectClip(Rounded IntRect(enclosingIntRect(bottomGradient), IntSize(), IntSize(), bound.radii().bottomLeft(), bound.radii().bottomRight()));793 paintInfo.context->addRoundedRectClip(RoundedRect(enclosingIntRect(bottomGradient), IntSize(), IntSize(), bound.radii().bottomLeft(), bound.radii().bottomRight())); 794 794 CGContextDrawShading(context, bottomShading.get()); 795 795 paintInfo.context->restore(); … … 955 955 { 956 956 IntSize radius(trackRadius, trackRadius); 957 Rounded IntRect bounds(r, radius, radius, radius, radius);957 RoundedRect bounds(r, radius, radius, radius, radius); 958 958 959 959 if (o->style()->appearance() == SliderHorizontalPart) -
trunk/Source/WebCore/rendering/RenderThemeWinCE.cpp
r88405 r90832 379 379 IntRect cancelBounds(IntPoint(x, y), cancelSize); 380 380 paintInfo.context->save(); 381 paintInfo.context->addRoundedRectClip(Rounded IntRect(cancelBounds, cancelRadius, cancelRadius, cancelRadius, cancelRadius));381 paintInfo.context->addRoundedRectClip(RoundedRect(cancelBounds, cancelRadius, cancelRadius, cancelRadius, cancelRadius)); 382 382 paintInfo.context->fillRect(cancelBounds, buttonColor, ColorSpaceDeviceRGB); 383 383 -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r90642 r90832 775 775 } 776 776 777 static RoundedIntRect::Radii calcRadiiFor(const BorderData& border, int width, int height) 778 { 779 return RoundedIntRect::Radii(IntSize(border.topLeft().width().calcValue(width), 780 border.topLeft().height().calcValue(height)), 781 IntSize(border.topRight().width().calcValue(width), 782 border.topRight().height().calcValue(height)), 783 IntSize(border.bottomLeft().width().calcValue(width), 784 border.bottomLeft().height().calcValue(height)), 785 IntSize(border.bottomRight().width().calcValue(width), 786 border.bottomRight().height().calcValue(height))); 787 } 788 789 static float calcConstraintScaleFor(const IntRect& rect, const RoundedIntRect::Radii& radii) 777 static RoundedRect::Radii calcRadiiFor(const BorderData& border, int width, int height) 778 { 779 return RoundedRect::Radii( 780 LayoutSize(border.topLeft().width().calcValue(width), 781 border.topLeft().height().calcValue(height)), 782 LayoutSize(border.topRight().width().calcValue(width), 783 border.topRight().height().calcValue(height)), 784 LayoutSize(border.bottomLeft().width().calcValue(width), 785 border.bottomLeft().height().calcValue(height)), 786 LayoutSize(border.bottomRight().width().calcValue(width), 787 border.bottomRight().height().calcValue(height))); 788 } 789 790 static float calcConstraintScaleFor(const IntRect& rect, const RoundedRect::Radii& radii) 790 791 { 791 792 // Constrain corner radii using CSS3 rules: … … 819 820 } 820 821 821 Rounded IntRect RenderStyle::getRoundedBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const822 { 823 Rounded IntRect roundedRect(borderRect);822 RoundedRect RenderStyle::getRoundedBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const 823 { 824 RoundedRect roundedRect(borderRect); 824 825 if (hasBorderRadius()) { 825 Rounded IntRect::Radii radii = calcRadiiFor(surround->border, borderRect.width(), borderRect.height());826 RoundedRect::Radii radii = calcRadiiFor(surround->border, borderRect.width(), borderRect.height()); 826 827 radii.scale(calcConstraintScaleFor(borderRect, radii)); 827 828 roundedRect.includeLogicalEdges(radii, isHorizontalWritingMode(), includeLogicalLeftEdge, includeLogicalRightEdge); … … 830 831 } 831 832 832 Rounded IntRect RenderStyle::getRoundedInnerBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const833 RoundedRect RenderStyle::getRoundedInnerBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const 833 834 { 834 835 bool horizontal = isHorizontalWritingMode(); … … 842 843 } 843 844 844 Rounded IntRect RenderStyle::getRoundedInnerBorderFor(const IntRect& borderRect,845 RoundedRect RenderStyle::getRoundedInnerBorderFor(const IntRect& borderRect, 845 846 int topWidth, int bottomWidth, int leftWidth, int rightWidth, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const 846 847 { … … 850 851 borderRect.height() - topWidth - bottomWidth); 851 852 852 Rounded IntRect roundedRect(innerRect);853 RoundedRect roundedRect(innerRect); 853 854 854 855 if (hasBorderRadius()) { 855 Rounded IntRect::Radii radii = getRoundedBorderFor(borderRect).radii();856 RoundedRect::Radii radii = getRoundedBorderFor(borderRect).radii(); 856 857 radii.shrink(topWidth, bottomWidth, leftWidth, rightWidth); 857 858 roundedRect.includeLogicalEdges(radii, isHorizontalWritingMode(), includeLogicalLeftEdge, includeLogicalRightEdge); -
trunk/Source/WebCore/rendering/style/RenderStyle.h
r90642 r90832 45 45 #include "OutlineValue.h" 46 46 #include "RenderStyleConstants.h" 47 #include "Rounded IntRect.h"47 #include "RoundedRect.h" 48 48 #include "ShadowData.h" 49 49 #include "StyleBackgroundData.h" … … 872 872 } 873 873 874 Rounded IntRect getRoundedBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;875 Rounded IntRect getRoundedInnerBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;876 877 Rounded IntRect getRoundedInnerBorderFor(const IntRect& borderRect,874 RoundedRect getRoundedBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; 875 RoundedRect getRoundedInnerBorderFor(const IntRect& borderRect, bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const; 876 877 RoundedRect getRoundedInnerBorderFor(const IntRect& borderRect, 878 878 int topWidth, int bottomWidth, int leftWidth, int rightWidth, bool includeLogicalLeftEdge, bool includeLogicalRightEdge) const; 879 879
Note: See TracChangeset
for help on using the changeset viewer.