From 5f9acfaccbacf3fbfc60b55068ee2823c3fc6021 Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 19 Feb 2021 13:47:47 -0800 Subject: [PATCH] feat(webkit): bump to 1436 (#5513) --- browsers.json | 2 +- src/server/webkit/protocol.ts | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/browsers.json b/browsers.json index beeb983750..a2ff861a08 100644 --- a/browsers.json +++ b/browsers.json @@ -13,7 +13,7 @@ }, { "name": "webkit", - "revision": "1432", + "revision": "1436", "download": true }, { diff --git a/src/server/webkit/protocol.ts b/src/server/webkit/protocol.ts index 8d34bcd74c..093fae50f5 100644 --- a/src/server/webkit/protocol.ts +++ b/src/server/webkit/protocol.ts @@ -903,6 +903,10 @@ export module Protocol { */ defaultValue: number; } + /** + * The layout context type of a node. + */ + export type LayoutContextType = "grid"; /** * Fires whenever a MediaQuery result changes (for example, after a browser window has been resized.) The current implementation considers only viewport-dependent media features. @@ -932,6 +936,19 @@ export module Protocol { */ styleSheetId: StyleSheetId; } + /** + * Called when a node's layout context type has changed. + */ + export type nodeLayoutContextTypeChangedPayload = { + /** + * Identifier of the node whose layout context type changed. + */ + nodeId: DOM.NodeId; + /** + * The new layout context type of the node. When not provided, the LayoutContextType of the node is not a context for which Web Inspector has specific functionality. + */ + layoutContextType?: LayoutContextType; + } /** * Enables the CSS agent for the given page. Clients should not assume that the CSS agent has been enabled until the result of this command is received. @@ -1781,6 +1798,10 @@ export module Protocol { * Computed SHA-256 Content Security Policy hash source for given element. */ contentSecurityPolicyHash?: string; + /** + * The layout context type of the node. When not provided, the LayoutContextType of the node is not a context for which Web Inspector has specific functionality. + */ + layoutContextType?: CSS.LayoutContextType; } /** * Relationship between data that is associated with a node and the node itself. @@ -8458,6 +8479,7 @@ the top of the viewport and Y increases as it proceeds towards the bottom of the "CSS.styleSheetChanged": CSS.styleSheetChangedPayload; "CSS.styleSheetAdded": CSS.styleSheetAddedPayload; "CSS.styleSheetRemoved": CSS.styleSheetRemovedPayload; + "CSS.nodeLayoutContextTypeChanged": CSS.nodeLayoutContextTypeChangedPayload; "Canvas.canvasAdded": Canvas.canvasAddedPayload; "Canvas.canvasRemoved": Canvas.canvasRemovedPayload; "Canvas.canvasMemoryChanged": Canvas.canvasMemoryChangedPayload;