Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 54fe1539718eef2f24d813019949ca8cd4b9e89e
      
https://github.com/WebKit/WebKit/commit/54fe1539718eef2f24d813019949ca8cd4b9e89e
  Author: Sam Weinig <[email protected]>
  Date:   2026-10-01 (Thu, 01 Oct 2026)

  Changed paths:
    M Source/WebCore/Sources.txt
    M Source/WebCore/WebCore.xcodeproj/project.pbxproj
    M Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp
    M Source/WebCore/platform/graphics/BifurcatedGraphicsContext.h
    M Source/WebCore/platform/graphics/GraphicsContext.cpp
    M Source/WebCore/platform/graphics/GraphicsContext.h
    M Source/WebCore/platform/graphics/Image.cpp
    M Source/WebCore/platform/graphics/Image.h
    M Source/WebCore/platform/graphics/NullGraphicsContext.h
    M Source/WebCore/rendering/BackgroundPainter.cpp
    M Source/WebCore/rendering/NinePieceImagePainter.cpp
    A Source/WebCore/style/values/images/kinds/StyleImage.cpp
    M Source/WebCore/style/values/images/kinds/StyleImage.h
    M 
Tools/TestWebKitAPI/Tests/WebCore/cocoa/BifurcatedGraphicsContextTestsCG.cpp

  Log Message:
  -----------
  [Image Redux] Move tiled image drawing to Style::Image
https://bugs.webkit.org/show_bug.cgi?id=325967

Reviewed by Alan Baradlay.

Moves both tiled image drawing functions, the one used for backgrounds and the 
one used
for border-image, from GraphicsContext and WebCore::Image to Style::Image.

This is the first step toward making drawing Style::Images the responsibility 
of the
Style::Image itself.

This also fixes a conceptual layering issue due to the tiled image drawing in 
WebCore::Image
implementing CSS specific drawing rules.

* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
* Source/WebCore/platform/graphics/BifurcatedGraphicsContext.cpp:
* Source/WebCore/platform/graphics/BifurcatedGraphicsContext.h:
* Source/WebCore/platform/graphics/GraphicsContext.cpp:
* Source/WebCore/platform/graphics/GraphicsContext.h:
* Source/WebCore/platform/graphics/Image.cpp:
* Source/WebCore/platform/graphics/Image.h:
* Source/WebCore/platform/graphics/NullGraphicsContext.h:
* Source/WebCore/rendering/BackgroundPainter.cpp:
* Source/WebCore/rendering/NinePieceImagePainter.cpp:
* Source/WebCore/style/values/images/kinds/StyleImage.cpp: Added.
* Source/WebCore/style/values/images/kinds/StyleImage.h:
* Tools/TestWebKitAPI/Tests/WebCore/cocoa/BifurcatedGraphicsContextTestsCG.cpp:

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



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

Reply via email to