Bug 191754 - Add DidFirstMeaningfulPaint milestone.
Summary: Add DidFirstMeaningfulPaint milestone.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: zalan
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-11-16 10:21 PST by zalan
Modified: 2018-11-16 16:45 PST (History)
7 users (show)

See Also:


Attachments
Patch (24.84 KB, patch)
2018-11-16 12:14 PST, zalan
no flags Details | Formatted Diff | Diff
Patch (27.22 KB, patch)
2018-11-16 13:20 PST, zalan
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description zalan 2018-11-16 10:21:17 PST
This milestone fires when we finished the very first paint triggered by the first visually non-empty layout.
Comment 1 zalan 2018-11-16 12:14:03 PST
Created attachment 355096 [details]
Patch
Comment 2 Saam Barati 2018-11-16 12:25:55 PST
Comment on attachment 355096 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=355096&action=review

LGTM but I'll let someone with more domain knowledge give the r+

> Source/WebCore/ChangeLog:8
> +        This milestone fires soone after the paint, triggered by the visually non-empty layout is finished.

soone => soon

> Tools/TestWebKitAPI/Tests/WebKit/FirstMeaningfulPaintMilestone_Bundle.cpp:2
> + * Copyright (C) 2012 Apple Inc. All rights reserved.

2018

> Tools/TestWebKitAPI/Tests/WebKit/FirstMeaningfulPaintMilestone_Bundle.cpp:52
> +static InjectedBundleTest::Register<FirstMeaningfulPaintMilestoneTest> registrar("FirstMeaningfulPaintMilestoneTest");

Maybe I'm missing something but what is this testing?
Comment 3 Wenson Hsieh 2018-11-16 12:30:35 PST
Comment on attachment 355096 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=355096&action=review

> Source/WebKit/UIProcess/API/C/WKPageRenderingProgressEvents.h:42
> +    WKPageRenderingProgressEventFirstMeaningfulPaint = 1 << 8

Hm...why legacy C API instead of modern ObjC API? (see _WKRenderingProgressEvents.h)

> Tools/TestWebKitAPI/CMakeLists.txt:234
> +        ${TESTWEBKITAPI_DIR}/Tests/WebKit/FirstMeaningfulPaintMileston_Bundle.cpp

FirstMeaningfulPaintMileston_Bundle => FirstMeaningfulPaintMilestone_Bundle
Comment 4 Simon Fraser (smfr) 2018-11-16 12:59:15 PST
Comment on attachment 355096 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=355096&action=review

>> Source/WebCore/ChangeLog:8
>> +        This milestone fires soone after the paint, triggered by the visually non-empty layout is finished.
> 
> soone => soon

"triggered by the visually non-empty layout is finished" doesn't parse.

"triggered by the first visually non-empty layout"?
Comment 5 zalan 2018-11-16 13:20:11 PST
Created attachment 355107 [details]
Patch
Comment 6 WebKit Commit Bot 2018-11-16 14:54:29 PST
Comment on attachment 355107 [details]
Patch

Clearing flags on attachment: 355107

Committed r238306: <https://trac.webkit.org/changeset/238306>
Comment 7 WebKit Commit Bot 2018-11-16 14:54:30 PST
All reviewed patches have been landed.  Closing bug.
Comment 8 Radar WebKit Bug Importer 2018-11-16 14:55:30 PST
<rdar://problem/46140654>
Comment 9 Saam Barati 2018-11-16 15:00:41 PST
Comment on attachment 355107 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=355107&action=review

> Source/WebKit/UIProcess/API/C/WKPageRenderingProgressEvents.h:42
> +    WKPageRenderingProgressEventFirstMeaningfulPaint = 1 << 8

Should this be << 6?
Comment 10 zalan 2018-11-16 16:45:11 PST
Comment on attachment 355107 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=355107&action=review

>> Source/WebKit/UIProcess/API/C/WKPageRenderingProgressEvents.h:42
>> +    WKPageRenderingProgressEventFirstMeaningfulPaint = 1 << 8
> 
> Should this be << 6?

No, it needs to value match the other defines.