[webkit-changes] [WebKit/WebKit] c72276: Serialize content of linked style sheets with URL ...

Sihui noreply at github.com
Tue Nov 7 09:23:16 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: c72276aee6201a3ed519b5031f195acab04479a7
      https://github.com/WebKit/WebKit/commit/c72276aee6201a3ed519b5031f195acab04479a7
  Author: Sihui Liu <sihui_liu at apple.com>
  Date:   2023-11-07 (Tue, 07 Nov 2023)

  Changed paths:
    M Source/WebCore/css/CSSStyleSheet.cpp
    M Source/WebCore/css/CSSStyleSheet.h
    M Source/WebCore/html/HTMLLinkElement.cpp
    M Source/WebCore/html/HTMLLinkElement.h
    M Source/WebCore/html/HTMLStyleElement.cpp
    M Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
    M Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm

  Log Message:
  -----------
  Serialize content of linked style sheets with URL replacement
https://bugs.webkit.org/show_bug.cgi?id=264308
rdar://118029249

Reviewed by Ryosuke Niwa.

We need to replace URLs in external style sheets when saving them to disk.

API test: WebArchive.SaveResourcesLink

* Source/WebCore/css/CSSStyleSheet.cpp:
(WebCore::CSSStyleSheet::cssTextWithReplacementURLs):
* Source/WebCore/css/CSSStyleSheet.h:
* Source/WebCore/html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::styleSheetContentWithReplacementURLs const):
* Source/WebCore/html/HTMLLinkElement.h:
* Source/WebCore/html/HTMLStyleElement.cpp:
(WebCore::HTMLStyleElement::textContentWithReplacementURLs const):
* Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp:
(WebCore::LegacyWebArchive::create):
* Tools/TestWebKitAPI/Tests/WebKitCocoa/CreateWebArchive.mm:

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




More information about the webkit-changes mailing list