[webkit-changes] [WebKit/WebKit] e6597f: m_styleScope should be a WeakPtr in InlineStyleShe...

Ryosuke Niwa noreply at github.com
Fri Mar 24 07:42:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: e6597f549cfd91df23cf7273a3eac8dd053a3887
      https://github.com/WebKit/WebKit/commit/e6597f549cfd91df23cf7273a3eac8dd053a3887
  Author: Ryosuke Niwa <rniwa at webkit.org>
  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




More information about the webkit-changes mailing list