[webkit-reviews] review granted: [Bug 174967] Web Inspector: Preview Canvas path when viewing a recording : [Attachment 317215] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Aug 4 09:55:03 PDT 2017
Brian Burg <bburg at apple.com> has granted Devin Rousso <drousso at apple.com>'s
request for review:
Bug 174967: Web Inspector: Preview Canvas path when viewing a recording
https://bugs.webkit.org/show_bug.cgi?id=174967
Attachment 317215: Patch
https://bugs.webkit.org/attachment.cgi?id=317215&action=review
--- Comment #22 from Brian Burg <bburg at apple.com> ---
Comment on attachment 317215
--> https://bugs.webkit.org/attachment.cgi?id=317215
Patch
View in context: https://bugs.webkit.org/attachment.cgi?id=317215&action=review
r=me but let Joe and a rendering person take a final glance.
> Source/WebCore/page/RuntimeEnabledFeatures.h:213
> + void setInspectorAdditionsEnabled(bool isEnabled) {
m_inspectorAdditionsEnabled = isEnabled; }
You'll need to rebase this as I just removed ENABLE(WEB_SOCKETS) above.
> Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js:134
> + let indexStartVisualizingPath = Infinity;
Nit: weird variable name
> Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js:160
> + let drawCanvasPath = showCanvasPath && indexStartVisualizingPath
<= to;
Nit: shouldDrawCanvasPath
> Source/WebInspectorUI/UserInterface/Views/RecordingContentView.js:350
> + _actionModifiesPath(recordingAction)
This could be static.
> Source/WebKit/Shared/WebPreferencesDefinitions.h:294
> + macro(InspectorAdditionsEnabled, inspectorAdditionsEnabled, Bool, bool,
false, "Inspector Additions", "Enable additional page APIs used by the Web
Inspector frontend page") \
Nit: "Web Inspector Additions"
> Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h:514
> +WK_EXPORT bool WKPreferencesGetInspectorAdditionsEnabled(WKPreferencesRef);
I don't think there is any point exposing this through the WK2 C API. We don't
expect it to be used this way, as the RuntimeEnabledFeature is turned on using
the internal methods rather than public SPI/API.
EDIT: ah I guess this is needed for WKTR? Gross.
> Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h:586
> + at property (nonatomic) BOOL inspectorAdditionsEnabled;
I don't think there is any point exposing this preference for WebKit1.
EDIT: ah I guess this is needed for DRT?
> Source/WebKitLegacy/mac/WebView/WebView.mm:3042
> +
RuntimeEnabledFeatures::sharedFeatures().setInspectorAdditionsEnabled(preferenc
es.inspectorAdditionsEnabled);
Ditto.
> LayoutTests/fast/canvas/2d.currentPoint.html:12
> +function shouldHaveCurrentPointEquality(x, y) {
Nit: shouldHaveCurrentPointEqualTo(x,y)
More information about the webkit-reviews
mailing list