Changeset 273502 in webkit


Ignore:
Timestamp:
Feb 25, 2021 12:31:01 PM (17 months ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: List of grid nodes is incomplete in Layout sidebar panel
https://bugs.webkit.org/show_bug.cgi?id=222364
<rdar://problem/74700960>

Patch by Razvan Caliman <Razvan Caliman> on 2021-02-25
Reviewed by Devin Rousso.

Source/JavaScriptCore:

Update inspector protocol description for CSS domain to mention default value for
layoutContextTypeChangedMode ("observed") and clarify behavior of "all" value.

  • inspector/protocol/CSS.json:

Source/WebCore:

Ensure default value of layoutContextTypeChangedMode is set for InspectorCSSAgent
to recognize the mode change when switching monitor layout contexts of all nodes.

  • inspector/agents/InspectorCSSAgent.cpp:

(WebCore::InspectorCSSAgent::reset):

Location:
trunk/Source
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r273484 r273502  
     12021-02-25  Razvan Caliman  <rcaliman@apple.com>
     2
     3        Web Inspector: List of grid nodes is incomplete in Layout sidebar panel
     4        https://bugs.webkit.org/show_bug.cgi?id=222364
     5        <rdar://problem/74700960>
     6
     7        Reviewed by Devin Rousso.
     8
     9        Update inspector protocol description for CSS domain to mention default value for
     10        `layoutContextTypeChangedMode` ("observed") and clarify behavior of "all" value.
     11
     12        * inspector/protocol/CSS.json:
     13
    1142021-02-25  Commit Queue  <commit-queue@webkit.org>
    215
  • trunk/Source/JavaScriptCore/inspector/protocol/CSS.json

    r272566 r273502  
    264264            "type": "string",
    265265            "enum": ["observed", "all"],
    266             "description": "The mode for how layout context type changes are handled. <code>Observed</code> limits handling to those nodes already known to the frontend by other means (generally, this means the node is a visible item in the Elements tab). <code>All</code> informs the frontend of all layout context type changes and."
     266            "description": "The mode for how layout context type changes are handled (default: <code>Observed</code>). <code>Observed</code> limits handling to those nodes already known to the frontend by other means (generally, this means the node is a visible item in the Elements tab). <code>All</code> informs the frontend of all layout context type changes and all nodes with a known layout context are sent to the frontend."
    267267        }
    268268    ],
  • trunk/Source/WebCore/ChangeLog

    r273501 r273502  
     12021-02-25  Razvan Caliman  <rcaliman@apple.com>
     2
     3        Web Inspector: List of grid nodes is incomplete in Layout sidebar panel
     4        https://bugs.webkit.org/show_bug.cgi?id=222364
     5        <rdar://problem/74700960>
     6
     7        Reviewed by Devin Rousso.
     8
     9        Ensure default value of `layoutContextTypeChangedMode` is set for InspectorCSSAgent
     10        to recognize the mode change when switching monitor layout contexts of all nodes.
     11
     12        * inspector/agents/InspectorCSSAgent.cpp:
     13        (WebCore::InspectorCSSAgent::reset):
     14
    1152021-02-25  Jer Noble  <jer.noble@apple.com>
    216
  • trunk/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp

    r272566 r273502  
    327327    m_documentToInspectorStyleSheet.clear();
    328328    m_documentToKnownCSSStyleSheets.clear();
     329    m_layoutContextTypeChangedMode = Protocol::CSS::LayoutContextTypeChangedMode::Observed;
    329330    resetPseudoStates();
    330331}
Note: See TracChangeset for help on using the changeset viewer.