Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 59db0b326f9b7609bd4b9f6fb40bad648b16b733
      
https://github.com/WebKit/WebKit/commit/59db0b326f9b7609bd4b9f6fb40bad648b16b733
  Author: lilly <[email protected]>
  Date:   2026-06-17 (Wed, 17 Jun 2026)

  Changed paths:
    M Source/WebCore/platform/graphics/FloatRoundedRect.cpp
    M Source/WebCore/platform/graphics/FloatRoundedRect.h
    M Source/WebCore/platform/graphics/GraphicsContext.cpp
    M Source/WebCore/platform/graphics/LayoutRoundedRect.h
    M Source/WebCore/platform/graphics/Path.cpp
    M Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
    M Source/WebCore/platform/graphics/cairo/CairoOperationRecorder.cpp
    M Source/WebCore/platform/graphics/skia/FloatRoundedRectSkia.cpp
    M Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapper.cpp
    M Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp
    M Source/WebCore/rendering/BorderPainter.cpp
    M Source/WebCore/rendering/BorderShape.cpp
    M Source/WebCore/rendering/BorderShape.h
    M Source/WebCore/rendering/RenderLayerBacking.cpp
    M Source/WebCore/rendering/shapes/BoxLayoutShape.cpp

  Log Message:
  -----------
  Rename FloatRoundedRect::isRounded() and LayoutRoundedRect::isRounded() to 
hasNonZeroRadii()
https://bugs.webkit.org/show_bug.cgi?id=317243
rdar://179862975

Reviewed by Simon Fraser.

Changed for corner-shape implementation where a rect can have non-zero radii 
but a non-round shape

Changes pass existing tests

* Source/WebCore/platform/graphics/FloatRoundedRect.cpp:
(WebCore::FloatRoundedRect::xInterceptsAtY const):
(WebCore::approximateAsRegion):
* Source/WebCore/platform/graphics/FloatRoundedRect.h:
(WebCore::FloatRoundedRect::hasNonZeroRadii const):
(WebCore::FloatRoundedRect::isRounded const): Deleted.
* Source/WebCore/platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::clipOutRoundedRect):
(WebCore::GraphicsContext::fillRoundedRect):
* Source/WebCore/platform/graphics/LayoutRoundedRect.h:
(WebCore::LayoutRoundedRect::hasNonZeroRadii const):
(WebCore::LayoutRoundedRect::isRounded const): Deleted.
* Source/WebCore/platform/graphics/Path.cpp:
(WebCore::Path::addRoundedRect):
* Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::ensureStructuralLayer):
* Source/WebCore/platform/graphics/cairo/CairoOperationRecorder.cpp:
(WebCore::Cairo::OperationRecorder::fillRoundedRect):
* Source/WebCore/platform/graphics/skia/FloatRoundedRectSkia.cpp:
(WebCore::FloatRoundedRect::operator SkRRect const):
* Source/WebCore/platform/graphics/skia/SkiaCompositingLayer.cpp:
(WebCore::SkiaCompositingLayer::clipRect):
(WebCore::SkiaCompositingLayer::paintContents):
(WebCore::SkiaCompositingLayer::paintSelfAndChildren):
* Source/WebCore/platform/graphics/texmap/TextureMapper.cpp:
(WebCore::TextureMapper::beginRoundedRectClip):
* Source/WebCore/platform/graphics/texmap/TextureMapperLayer.cpp:
(WebCore::TextureMapperLayer::paintSelf):
* Source/WebCore/rendering/BorderPainter.cpp:
(WebCore::BorderPainter::paintBorder const):
* Source/WebCore/rendering/BorderShape.cpp:
(WebCore::BorderShape::allCornersClippedOut const):
(WebCore::BorderShape::outerShapeIsRectangular const):
(WebCore::BorderShape::innerShapeIsRectangular const):
(WebCore::addRoundedRectToPath):
(WebCore::BorderShape::clipToOuterShape const):
(WebCore::BorderShape::clipToInnerShape const):
(WebCore::BorderShape::clipOutOuterShape const):
(WebCore::BorderShape::clipOutInnerShape const):
(WebCore::BorderShape::fillOuterShape const):
(WebCore::BorderShape::fillInnerShape const):
(WebCore::BorderShape::computeInnerEdgeRoundedRect):
* Source/WebCore/rendering/BorderShape.h:
(WebCore::BorderShape::hasNonZeroRadii const):
(WebCore::BorderShape::isRounded const): Deleted.
* Source/WebCore/rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::updateConfiguration):
* Source/WebCore/rendering/shapes/BoxLayoutShape.cpp:
(WebCore::BoxLayoutShape::getExcludedInterval const):

Canonical link: https://commits.webkit.org/315380@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to