Changeset 120602 in webkit
- Timestamp:
- Jun 18, 2012 9:40:07 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120601 r120602 1 2012-06-18 Takashi Sakamoto <tasak@google.com> 2 3 webkit fails IETC border-radius-clip-002 4 https://bugs.webkit.org/show_bug.cgi?id=83205 5 6 Reviewed by Simon Fraser. 7 8 * platform/chromium-linux/ietestcenter/css3/bordersbackgrounds/border-radius-clip-002-expected.png: 9 * platform/chromium-mac/ietestcenter/css3/bordersbackgrounds/border-radius-clip-002-expected.png: 10 * platform/chromium-mac-leopard/ietestcenter/css3/bordersbackgrounds/border-radius-clip-002-expected.png: Removed. 11 * platform/chromium-mac-snowleopard/ietestcenter/css3/bordersbackgrounds/border-radius-clip-002-expected.png: Removed. 12 * platform/chromium-win/ietestcenter/css3/bordersbackgrounds/border-radius-clip-002-expected.png: Removed. 13 1 14 2012-06-18 Iain Merrick <husky@google.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r120601 r120602 1 2012-06-18 Takashi Sakamoto <tasak@google.com> 2 3 webkit fails IETC border-radius-clip-002 4 https://bugs.webkit.org/show_bug.cgi?id=83205 5 6 Added addRoundedRectClip instead of just clip when clipToBorderRadius 7 is true and bgLayer->clip() == ContentFillBox. 8 9 Reviewed by Simon Fraser. 10 11 This change is covered by the existing test: ietestcenter/css3/bordersbackgrounds/border-radius-clip-002. 12 However expected images should be updated. I updated chromium-linux 13 and chromium-mac's expected images and removed chromium-win, 14 chromium-mac-leopard and chromium-mac-snowleopard's expected images. 15 16 * rendering/RenderBoxModelObject.cpp: 17 (WebCore::RenderBoxModelObject::paintFillLayerExtended): 18 As the code for "clipping to content boxes as necessary" doesn't 19 consider border-radius or not, added the code for checking 20 clipToBorderRadius or not, and if so, modified to use 21 getBackgroundRoundedRect for obtaining rounded rect and to use 22 addRoundedRectClip by using the obtained rounded rect. 23 1 24 2012-06-18 Iain Merrick <husky@google.com> 2 25 -
trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp
r120495 r120602 812 812 scrolledPaintRect.height() - borderTop() - borderBottom() - (includePadding ? paddingTop() + paddingBottom() : ZERO_LAYOUT_UNIT)); 813 813 backgroundClipStateSaver.save(); 814 context->clip(clipRect); 814 if (clipToBorderRadius && includePadding) { 815 RoundedRect rounded = getBackgroundRoundedRect(clipRect, box, boxSize.width(), boxSize.height(), includeLeftEdge, includeRightEdge); 816 context->addRoundedRectClip(rounded); 817 } else 818 context->clip(clipRect); 815 819 } else if (bgLayer->clip() == TextFillBox) { 816 820 // We have to draw our text into a mask that can then be used to clip background drawing.
Note: See TracChangeset
for help on using the changeset viewer.