Changeset 273220 in webkit
- Timestamp:
- Feb 21, 2021 11:07:33 AM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r273219 r273220 1 2021-02-21 Noam Rosenthal <noam@webkit.org> 2 3 [Paint Timing] Return early from contentful paint check when no contentful pixels/characters at all 4 https://bugs.webkit.org/show_bug.cgi?id=222245 5 6 Reviewed by Simon Fraser. 7 8 Bail from recursive contenful-paint check if there are no pixels/text characters in the entire document. 9 10 Covered by existing tests, an optimization only. 11 12 * dom/Document.cpp: 13 (WebCore::Document::enqueuePaintTimingEntryIfNeeded): 14 * page/FrameView.cpp: 15 (WebCore::FrameView::hasContenfulDescendants const): 16 * page/FrameView.h: 17 1 18 2021-02-21 Martin Robinson <mrobinson@igalia.com> 2 19 -
trunk/Source/WebCore/dom/Document.cpp
r273203 r273220 3245 3245 return; 3246 3246 3247 if (!view()->hasContenfulDescendants()) 3248 return; 3249 3247 3250 if (!ContentfulPaintChecker::qualifiesForContentfulPaint(*view())) 3248 3251 return; -
trunk/Source/WebCore/page/FrameView.cpp
r272805 r273220 4617 4617 } 4618 4618 4619 bool FrameView::hasContenfulDescendants() const 4620 { 4621 return m_visuallyNonEmptyCharacterCount || m_visuallyNonEmptyPixelCount; 4622 } 4623 4619 4624 bool FrameView::isViewForDocumentInFrame() const 4620 4625 { -
trunk/Source/WebCore/page/FrameView.h
r271788 r273220 414 414 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 415 415 bool isVisuallyNonEmpty() const { return m_contentQualifiesAsVisuallyNonEmpty; } 416 bool hasContenfulDescendants() const; 416 417 void checkAndDispatchDidReachVisuallyNonEmptyState(); 417 418
Note: See TracChangeset
for help on using the changeset viewer.