Changeset 284672 in webkit
- Timestamp:
- Oct 22, 2021, 1:19:07 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
style/StyleResolver.cpp (modified) (4 diffs)
-
style/StyleResolver.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r284670 r284672 1 2021-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 1 17 2021-10-22 Patrick Griffis <pgriffis@igalia.com> 2 18 -
trunk/Source/WebCore/style/StyleResolver.cpp
r284604 r284672 202 202 { 203 203 RELEASE_ASSERT(!m_document.isResolvingTreeStyle()); 204 RELEASE_ASSERT(!m_isDeleted);205 m_isDeleted = true;206 204 } 207 205 … … 223 221 ElementStyle Resolver::styleForElement(const Element& element, const RenderStyle* parentStyle, const RenderStyle* parentBoxStyle, RuleMatchingBehavior matchingBehavior, const SelectorFilter* selectorFilter) 224 222 { 225 RELEASE_ASSERT(!m_isDeleted);226 227 223 auto state = State(element, parentStyle, m_overrideDocumentElementStyle); 228 224 … … 280 276 std::unique_ptr<RenderStyle> Resolver::styleForKeyframe(const Element& element, const RenderStyle* elementStyle, const RenderStyle* parentElementStyle, const StyleRuleKeyframe* keyframe, KeyframeValue& keyframeValue) 281 277 { 282 RELEASE_ASSERT(!m_isDeleted);283 284 278 MatchResult result; 285 279 result.authorDeclarations.append({ &keyframe->properties(), SelectorChecker::MatchAll, propertyAllowlistForPseudoId(elementStyle->styleType()) }); … … 429 423 std::unique_ptr<RenderStyle> Resolver::styleForPage(int pageIndex) 430 424 { 431 RELEASE_ASSERT(!m_isDeleted);432 433 425 auto* documentElement = m_document.documentElement(); 434 426 if (!documentElement) -
trunk/Source/WebCore/style/StyleResolver.h
r284604 r284672 173 173 bool m_matchAuthorAndUserStyles { true }; 174 174 bool m_isSharedBetweenShadowTrees { false }; 175 176 // See if we still have crashes where Resolver gets deleted early.177 bool m_isDeleted { false };178 175 }; 179 176
Note:
See TracChangeset
for help on using the changeset viewer.