⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 284672 in webkit


Ignore:
Timestamp:
Oct 22, 2021, 1:19:07 AM (5 years ago)
Author:
Antti Koivisto
Message:

Remove Style::Resolver::m_isDeleted
https://bugs.webkit.org/show_bug.cgi?id=232089

Reviewed by Kimmo Kinnunen.

Not useful anymore.

  • style/StyleResolver.cpp:

(WebCore::Style::Resolver::~Resolver):
(WebCore::Style::Resolver::styleForElement):
(WebCore::Style::Resolver::styleForKeyframe):
(WebCore::Style::Resolver::styleForPage):

  • style/StyleResolver.h:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r284670 r284672  
     12021-10-22  Antti Koivisto  <antti@apple.com>
     2
     3        Remove Style::Resolver::m_isDeleted
     4        https://bugs.webkit.org/show_bug.cgi?id=232089
     5
     6        Reviewed by Kimmo Kinnunen.
     7
     8        Not useful anymore.
     9
     10        * style/StyleResolver.cpp:
     11        (WebCore::Style::Resolver::~Resolver):
     12        (WebCore::Style::Resolver::styleForElement):
     13        (WebCore::Style::Resolver::styleForKeyframe):
     14        (WebCore::Style::Resolver::styleForPage):
     15        * style/StyleResolver.h:
     16
    1172021-10-22  Patrick Griffis  <pgriffis@igalia.com>
    218
  • trunk/Source/WebCore/style/StyleResolver.cpp

    r284604 r284672  
    202202{
    203203    RELEASE_ASSERT(!m_document.isResolvingTreeStyle());
    204     RELEASE_ASSERT(!m_isDeleted);
    205     m_isDeleted = true;
    206204}
    207205
     
    223221ElementStyle Resolver::styleForElement(const Element& element, const RenderStyle* parentStyle, const RenderStyle* parentBoxStyle, RuleMatchingBehavior matchingBehavior, const SelectorFilter* selectorFilter)
    224222{
    225     RELEASE_ASSERT(!m_isDeleted);
    226 
    227223    auto state = State(element, parentStyle, m_overrideDocumentElementStyle);
    228224
     
    280276std::unique_ptr<RenderStyle> Resolver::styleForKeyframe(const Element& element, const RenderStyle* elementStyle, const RenderStyle* parentElementStyle, const StyleRuleKeyframe* keyframe, KeyframeValue& keyframeValue)
    281277{
    282     RELEASE_ASSERT(!m_isDeleted);
    283 
    284278    MatchResult result;
    285279    result.authorDeclarations.append({ &keyframe->properties(), SelectorChecker::MatchAll, propertyAllowlistForPseudoId(elementStyle->styleType()) });
     
    429423std::unique_ptr<RenderStyle> Resolver::styleForPage(int pageIndex)
    430424{
    431     RELEASE_ASSERT(!m_isDeleted);
    432 
    433425    auto* documentElement = m_document.documentElement();
    434426    if (!documentElement)
  • trunk/Source/WebCore/style/StyleResolver.h

    r284604 r284672  
    173173    bool m_matchAuthorAndUserStyles { true };
    174174    bool m_isSharedBetweenShadowTrees { false };
    175 
    176     // See if we still have crashes where Resolver gets deleted early.
    177     bool m_isDeleted { false };
    178175};
    179176
Note: See TracChangeset for help on using the changeset viewer.