Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6597f549cfd91df23cf7273a3eac8dd053a3887
      
https://github.com/WebKit/WebKit/commit/e6597f549cfd91df23cf7273a3eac8dd053a3887
  Author: Ryosuke Niwa <[email protected]>
  Date:   2023-03-24 (Fri, 24 Mar 2023)

  Changed paths:
    M Source/WebCore/dom/InlineStyleSheetOwner.cpp
    M Source/WebCore/dom/InlineStyleSheetOwner.h

  Log Message:
  -----------
  m_styleScope should be a WeakPtr in InlineStyleSheetOwner
https://bugs.webkit.org/show_bug.cgi?id=254397

Reviewed by Chris Dumez.

Use WeakPtr instead of a raw pointer in InlineStyleSheetOwner for Style::Scope.

* Source/WebCore/dom/InlineStyleSheetOwner.cpp:
(WebCore::InlineStyleSheetOwner::insertedIntoDocument):
(WebCore::InlineStyleSheetOwner::removedFromDocument):
(WebCore::InlineStyleSheetOwner::clearDocumentData):
(WebCore::InlineStyleSheetOwner::createSheet):
(WebCore::InlineStyleSheetOwner::sheetLoaded):
(WebCore::InlineStyleSheetOwner::startLoadingDynamicSheet):
* Source/WebCore/dom/InlineStyleSheetOwner.h:
(WebCore::InlineStyleSheetOwner::styleScope):

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


_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to