Changeset 280700 in webkit
- Timestamp:
- Aug 5, 2021, 11:03:13 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
dom/Document.cpp (modified) (1 diff)
-
dom/Document.h (modified) (1 diff)
-
html/parser/HTMLParserScheduler.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r280697 r280700 1 2021-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 1 17 2021-08-05 Michael Catanzaro <mcatanzaro@gnome.org> 2 18 -
trunk/Source/WebCore/dom/Document.cpp
r280504 r280700 3247 3247 } 3248 3248 3249 bool Document::isLayout TimerActive() const3249 bool Document::isLayoutPending() const 3250 3250 { 3251 3251 return view() && view()->layoutContext().isLayoutPending(); -
trunk/Source/WebCore/dom/Document.h
r280504 r280700 736 736 737 737 bool shouldScheduleLayout() const; 738 bool isLayout TimerActive() const;738 bool isLayoutPending() const; 739 739 #if !LOG_DISABLED 740 740 Seconds timeSinceDocumentCreation() const { return MonotonicTime::now() - m_documentCreationTime; }; -
trunk/Source/WebCore/html/parser/HTMLParserScheduler.cpp
r277818 r280700 92 92 // FIXME: The timer class should handle timer priorities instead of this code. 93 93 // If a layout is scheduled, wait again to let the layout timer run first. 94 if (m_parser.document()->isLayout TimerActive()) {94 if (m_parser.document()->isLayoutPending()) { 95 95 m_continueNextChunkTimer.startOneShot(0_s); 96 96 return;
Note:
See TracChangeset
for help on using the changeset viewer.