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

Changeset 280700 in webkit


Ignore:
Timestamp:
Aug 5, 2021, 11:03:13 AM (5 years ago)
Author:
Alan Bujtas
Message:

Document::isLayoutTimerActive should read isLayoutPending
https://bugs.webkit.org/show_bug.cgi?id=228835

Reviewed by Antti Koivisto.

Callers of this function curious about whether there's a layout scheduled.

  • dom/Document.cpp:

(WebCore::Document::isLayoutPending const):
(WebCore::Document::isLayoutTimerActive const): Deleted.

  • dom/Document.h:
  • html/parser/HTMLParserScheduler.cpp:

(WebCore::HTMLParserScheduler::continueNextChunkTimerFired):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r280697 r280700  
     12021-08-05  Alan Bujtas  <zalan@apple.com>
     2
     3        Document::isLayoutTimerActive should read isLayoutPending
     4        https://bugs.webkit.org/show_bug.cgi?id=228835
     5
     6        Reviewed by Antti Koivisto.
     7
     8        Callers of this function curious about whether there's a layout scheduled.
     9
     10        * dom/Document.cpp:
     11        (WebCore::Document::isLayoutPending const):
     12        (WebCore::Document::isLayoutTimerActive const): Deleted.
     13        * dom/Document.h:
     14        * html/parser/HTMLParserScheduler.cpp:
     15        (WebCore::HTMLParserScheduler::continueNextChunkTimerFired):
     16
    1172021-08-05  Michael Catanzaro  <mcatanzaro@gnome.org>
    218
  • trunk/Source/WebCore/dom/Document.cpp

    r280504 r280700  
    32473247}
    32483248   
    3249 bool Document::isLayoutTimerActive() const
     3249bool Document::isLayoutPending() const
    32503250{
    32513251    return view() && view()->layoutContext().isLayoutPending();
  • trunk/Source/WebCore/dom/Document.h

    r280504 r280700  
    736736
    737737    bool shouldScheduleLayout() const;
    738     bool isLayoutTimerActive() const;
     738    bool isLayoutPending() const;
    739739#if !LOG_DISABLED
    740740    Seconds timeSinceDocumentCreation() const { return MonotonicTime::now() - m_documentCreationTime; };
  • trunk/Source/WebCore/html/parser/HTMLParserScheduler.cpp

    r277818 r280700  
    9292    // FIXME: The timer class should handle timer priorities instead of this code.
    9393    // If a layout is scheduled, wait again to let the layout timer run first.
    94     if (m_parser.document()->isLayoutTimerActive()) {
     94    if (m_parser.document()->isLayoutPending()) {
    9595        m_continueNextChunkTimer.startOneShot(0_s);
    9696        return;
Note: See TracChangeset for help on using the changeset viewer.