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

Changeset 273797 in webkit


Ignore:
Timestamp:
Mar 2, 2021, 7:08:58 PM (6 years ago)
Author:
Alan Coon
Message:

Cherry-pick r273499. rdar://problem/74952752

Avoid setting page muted state if unchanged
​https://bugs.webkit.org/show_bug.cgi?id=222395

Reviewed by Brent Fulgham.

Return early in Page::setMuted if muted state did not change.

No new tests, covered by existing tests.

  • page/Page.cpp: (WebCore::Page::setMuted):

git-svn-id: ​https://svn.webkit.org/repository/webkit/trunk@273499 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Location:
branches/safari-612.1.5-branch/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-612.1.5-branch/Source/WebCore/ChangeLog

    r273796 r273797  
     12021-03-02  Alan Coon  <alancoon@apple.com>
     2
     3        Cherry-pick r273499. rdar://problem/74952752
     4
     5    Avoid setting page muted state if unchanged
     6    https://bugs.webkit.org/show_bug.cgi?id=222395
     7   
     8    Reviewed by Brent Fulgham.
     9   
     10    Return early in Page::setMuted if muted state did not change.
     11   
     12    No new tests, covered by existing tests.
     13   
     14    * page/Page.cpp:
     15    (WebCore::Page::setMuted):
     16   
     17   
     18    git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273499 268f45cc-cd09-0410-ab3c-d52691b4dbfc
     19
     20    2021-02-25  Per Arne Vollan  <pvollan@apple.com>
     21
     22            Avoid setting page muted state if unchanged
     23            https://bugs.webkit.org/show_bug.cgi?id=222395
     24
     25            Reviewed by Brent Fulgham.
     26
     27            Return early in Page::setMuted if muted state did not change.
     28
     29            No new tests, covered by existing tests.
     30
     31            * page/Page.cpp:
     32            (WebCore::Page::setMuted):
     33
    1342021-03-02  Alan Coon  <alancoon@apple.com>
    235
  • branches/safari-612.1.5-branch/Source/WebCore/page/Page.cpp

    r273067 r273797  
    21082108void Page::setMuted(MediaProducer::MutedStateFlags muted)
    21092109{
     2110    if (m_mutedState == muted)
     2111        return;
     2112
    21102113    m_mutedState = muted;
    21112114
Note: See TracChangeset for help on using the changeset viewer.