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

Changeset 287828 in webkit


Ignore:
Timestamp:
Jan 9, 2022, 1:38:56 PM (5 years ago)
Author:
graouts@webkit.org
Message:

Style::Resolver::keyframeRulesForName() signature should be improved
https://bugs.webkit.org/show_bug.cgi?id=235021

Reviewed by Darin Adler.

Darin pointed out during the review for bug 235008 that the method itself
should be const, not its return value.

  • style/StyleResolver.cpp:

(WebCore::Style::Resolver::keyframeRulesForName const):
(WebCore::Style::Resolver::keyframeRulesForName): Deleted.

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

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r287827 r287828  
     12022-01-09  Antoine Quint  <graouts@webkit.org>
     2
     3        Style::Resolver::keyframeRulesForName() signature should be improved
     4        https://bugs.webkit.org/show_bug.cgi?id=235021
     5
     6        Reviewed by Darin Adler.
     7
     8        Darin pointed out during the review for bug 235008 that the method itself
     9        should be const, not its return value.
     10
     11        * style/StyleResolver.cpp:
     12        (WebCore::Style::Resolver::keyframeRulesForName const):
     13        (WebCore::Style::Resolver::keyframeRulesForName): Deleted.
     14        * style/StyleResolver.h:
     15
    1162022-01-09  Antoine Quint  <graouts@webkit.org>
    217
  • trunk/Source/WebCore/style/StyleResolver.cpp

    r287827 r287828  
    308308}
    309309
    310 const Vector<Ref<StyleRuleKeyframe>> Resolver::keyframeRulesForName(const AtomString& animationName)
     310Vector<Ref<StyleRuleKeyframe>> Resolver::keyframeRulesForName(const AtomString& animationName) const
    311311{
    312312    if (animationName.isEmpty())
  • trunk/Source/WebCore/style/StyleResolver.h

    r287820 r287828  
    140140
    141141    void addKeyframeStyle(Ref<StyleRuleKeyframes>&&);
    142     const Vector<Ref<StyleRuleKeyframe>> keyframeRulesForName(const AtomString&);
     142    Vector<Ref<StyleRuleKeyframe>> keyframeRulesForName(const AtomString&) const;
    143143
    144144    bool usesFirstLineRules() const { return m_ruleSets.features().usesFirstLineRules; }
Note: See TracChangeset for help on using the changeset viewer.