Changeset 261669 in webkit
- Timestamp:
- May 13, 2020 7:34:39 PM (4 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r261666 r261669 1 2020-05-13 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: rename CSS.StyleSheetOrigin.Regular to CSS.StyleSheetOrigin.Author to match the spec 4 https://bugs.webkit.org/show_bug.cgi?id=211827 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/css/add-rule.html: 9 * inspector/css/add-rule-expected.txt: 10 * inspector/css/getMatchedStylesForNode-expected.txt: 11 1 12 2020-05-13 Jack Lee <shihchieh_lee@apple.com> 2 13 -
trunk/LayoutTests/inspector/css/add-rule-expected.txt
r249128 r261669 17 17 PASS: Rule selector should be "div" 18 18 PASS: Rule range should be [2:0,2:3] 19 PASS: Rule origin should be " regular"19 PASS: Rule origin should be "author" 20 20 21 21 -- Running test case: CSS.addRule.BadStyleSheetId -
trunk/LayoutTests/inspector/css/add-rule.html
r248774 r261669 96 96 InspectorTest.expectEqual(rulePayload.selectorList.text, "div", `Rule selector should be "div"`); 97 97 InspectorTest.expectEqual(stringify(rulePayload.selectorList.range), "2:0,2:3", `Rule range should be [2:0,2:3]`); 98 InspectorTest.expectEqual(rulePayload.origin, " regular", `Rule origin should be "regular"`);98 InspectorTest.expectEqual(rulePayload.origin, "author", `Rule origin should be "author"`); 99 99 100 100 resolve(); -
trunk/LayoutTests/inspector/css/getMatchedStylesForNode-expected.txt
r248943 r261669 25 25 }, 26 26 "sourceLine": "<filtered>", 27 "origin": " regular",27 "origin": "author", 28 28 "style": { 29 29 "cssProperties": [ … … 68 68 }, 69 69 "sourceLine": "<filtered>", 70 "origin": " regular",70 "origin": "author", 71 71 "style": { 72 72 "cssProperties": [ … … 111 111 }, 112 112 "sourceLine": "<filtered>", 113 "origin": " regular",113 "origin": "author", 114 114 "style": { 115 115 "cssProperties": [ … … 161 161 }, 162 162 "sourceLine": "<filtered>", 163 "origin": " regular",163 "origin": "author", 164 164 "style": { 165 165 "cssProperties": [ … … 209 209 }, 210 210 "sourceLine": "<filtered>", 211 "origin": " regular",211 "origin": "author", 212 212 "style": { 213 213 "cssProperties": [ … … 257 257 }, 258 258 "sourceLine": "<filtered>", 259 "origin": " regular",259 "origin": "author", 260 260 "style": { 261 261 "cssProperties": [ … … 305 305 }, 306 306 "sourceLine": "<filtered>", 307 "origin": " regular",307 "origin": "author", 308 308 "style": { 309 309 "cssProperties": [ … … 353 353 }, 354 354 "sourceLine": "<filtered>", 355 "origin": " regular",355 "origin": "author", 356 356 "style": { 357 357 "cssProperties": [ … … 401 401 }, 402 402 "sourceLine": "<filtered>", 403 "origin": " regular",403 "origin": "author", 404 404 "style": { 405 405 "cssProperties": [ … … 449 449 }, 450 450 "sourceLine": "<filtered>", 451 "origin": " regular",451 "origin": "author", 452 452 "style": { 453 453 "cssProperties": [ … … 497 497 }, 498 498 "sourceLine": "<filtered>", 499 "origin": " regular",499 "origin": "author", 500 500 "style": { 501 501 "cssProperties": [ … … 545 545 }, 546 546 "sourceLine": "<filtered>", 547 "origin": " regular",547 "origin": "author", 548 548 "style": { 549 549 "cssProperties": [ … … 593 593 }, 594 594 "sourceLine": "<filtered>", 595 "origin": " regular",595 "origin": "author", 596 596 "style": { 597 597 "cssProperties": [ … … 641 641 }, 642 642 "sourceLine": "<filtered>", 643 "origin": " regular",643 "origin": "author", 644 644 "style": { 645 645 "cssProperties": [ … … 689 689 }, 690 690 "sourceLine": "<filtered>", 691 "origin": " regular",691 "origin": "author", 692 692 "style": { 693 693 "cssProperties": [ … … 737 737 }, 738 738 "sourceLine": "<filtered>", 739 "origin": " regular",739 "origin": "author", 740 740 "style": { 741 741 "cssProperties": [ … … 788 788 }, 789 789 "sourceLine": "<filtered>", 790 "origin": " regular",790 "origin": "author", 791 791 "style": { 792 792 "cssProperties": [ … … 838 838 }, 839 839 "sourceLine": "<filtered>", 840 "origin": " regular",840 "origin": "author", 841 841 "style": { 842 842 "cssProperties": [ … … 881 881 }, 882 882 "sourceLine": "<filtered>", 883 "origin": " regular",883 "origin": "author", 884 884 "style": { 885 885 "cssProperties": [ … … 931 931 }, 932 932 "sourceLine": "<filtered>", 933 "origin": " regular",933 "origin": "author", 934 934 "style": { 935 935 "cssProperties": [ … … 986 986 }, 987 987 "sourceLine": "<filtered>", 988 "origin": " regular",988 "origin": "author", 989 989 "style": { 990 990 "cssProperties": [ … … 1036 1036 }, 1037 1037 "sourceLine": "<filtered>", 1038 "origin": " regular",1038 "origin": "author", 1039 1039 "style": { 1040 1040 "cssProperties": [ -
trunk/Source/JavaScriptCore/ChangeLog
r261668 r261669 1 2020-05-13 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: rename CSS.StyleSheetOrigin.Regular to CSS.StyleSheetOrigin.Author to match the spec 4 https://bugs.webkit.org/show_bug.cgi?id=211827 5 6 Reviewed by Timothy Hatcher. 7 8 * inspector/protocol/CSS.json: 9 1 10 2020-05-13 Yusuke Suzuki <ysuzuki@apple.com> 2 11 -
trunk/Source/JavaScriptCore/inspector/protocol/CSS.json
r253176 r261669 21 21 "id": "StyleSheetOrigin", 22 22 "type": "string", 23 "enum": ["user", "user-agent", " inspector", "regular"],23 "enum": ["user", "user-agent", "author", "inspector"], 24 24 "description": "Stylesheet type: \"user\" for user stylesheets, \"user-agent\" for user-agent stylesheets, \"inspector\" for stylesheets created by the inspector (i.e. those holding the \"via inspector\" rules), \"regular\" for regular stylesheets." 25 25 }, -
trunk/Source/WebCore/ChangeLog
r261668 r261669 1 2020-05-13 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: rename CSS.StyleSheetOrigin.Regular to CSS.StyleSheetOrigin.Author to match the spec 4 https://bugs.webkit.org/show_bug.cgi?id=211827 5 6 Reviewed by Timothy Hatcher. 7 8 Tests: inspector/css/add-rule.html 9 inspector/css/getMatchedStylesForNode.html 10 11 * inspector/agents/InspectorCSSAgent.cpp: 12 (WebCore::InspectorCSSAgent::asInspectorStyleSheet): 13 (WebCore::InspectorCSSAgent::detectOrigin): 14 * inspector/InspectorStyleSheet.cpp: 15 (WebCore::InspectorStyleSheet::buildObjectForRule): 16 1 17 2020-05-13 Yusuke Suzuki <ysuzuki@apple.com> 2 18 -
trunk/Source/WebCore/inspector/InspectorStyleSheet.cpp
r260709 r261669 1136 1136 .release(); 1137 1137 1138 if (m_origin == Inspector::Protocol::CSS::StyleSheetOrigin:: Regular || m_origin == Inspector::Protocol::CSS::StyleSheetOrigin::User)1138 if (m_origin == Inspector::Protocol::CSS::StyleSheetOrigin::Author || m_origin == Inspector::Protocol::CSS::StyleSheetOrigin::User) 1139 1139 result->setSourceURL(finalURL()); 1140 1140 -
trunk/Source/WebCore/inspector/agents/InspectorCSSAgent.cpp
r260491 r261669 871 871 return m_nodeToInspectorStyleSheet.ensure(&element, [this, &element] { 872 872 String newStyleSheetId = String::number(m_lastStyleSheetId++); 873 auto inspectorStyleSheet = InspectorStyleSheetForInlineStyle::create(m_instrumentingAgents.inspectorPageAgent(), newStyleSheetId, element, Inspector::Protocol::CSS::StyleSheetOrigin:: Regular, this);873 auto inspectorStyleSheet = InspectorStyleSheetForInlineStyle::create(m_instrumentingAgents.inspectorPageAgent(), newStyleSheetId, element, Inspector::Protocol::CSS::StyleSheetOrigin::Author, this); 874 874 m_idToInspectorStyleSheet.set(newStyleSheetId, inspectorStyleSheet.copyRef()); 875 875 return inspectorStyleSheet; … … 943 943 } 944 944 945 return Inspector::Protocol::CSS::StyleSheetOrigin:: Regular;945 return Inspector::Protocol::CSS::StyleSheetOrigin::Author; 946 946 } 947 947 -
trunk/Source/WebInspectorUI/ChangeLog
r261498 r261669 1 2020-05-13 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: rename CSS.StyleSheetOrigin.Regular to CSS.StyleSheetOrigin.Author to match the spec 4 https://bugs.webkit.org/show_bug.cgi?id=211827 5 6 Reviewed by Timothy Hatcher. 7 8 * UserInterface/Controllers/CSSManager.js: 9 (WI.CSSManager.protocolStyleSheetOriginToEnum): 10 1 11 2020-05-11 Devin Rousso <drousso@apple.com> 2 12 -
trunk/Source/WebInspectorUI/UserInterface/Controllers/CSSManager.js
r261109 r261669 64 64 { 65 65 switch (origin) { 66 case InspectorBackend.Enum.CSS.StyleSheetOrigin.Regular:67 return WI.CSSStyleSheet.Type.Author;68 66 case InspectorBackend.Enum.CSS.StyleSheetOrigin.User: 69 67 return WI.CSSStyleSheet.Type.User; 68 70 69 case InspectorBackend.Enum.CSS.StyleSheetOrigin.UserAgent: 71 70 return WI.CSSStyleSheet.Type.UserAgent; 71 72 72 case InspectorBackend.Enum.CSS.StyleSheetOrigin.Inspector: 73 73 return WI.CSSStyleSheet.Type.Inspector; 74 default: 75 console.assert(false, "Unknown CSS.StyleSheetOrigin", origin); 76 return InspectorBackend.Enum.CSS.StyleSheetOrigin.Regular; 77 } 74 } 75 76 // COMPATIBILITY (iOS 14): CSS.StyleSheetOrigin.Regular was replaced with CSS.StyleSheetOrigin.Author. 77 console.assert(!InspectorBackend.Enum.CSS.StyleSheetOrigin.Author || origin === InspectorBackend.Enum.CSS.StyleSheetOrigin.Author); 78 console.assert(!InspectorBackend.Enum.CSS.StyleSheetOrigin.Regular || origin === InspectorBackend.Enum.CSS.StyleSheetOrigin.Regular); 79 return WI.CSSStyleSheet.Type.Author; 78 80 } 79 81
Note: See TracChangeset
for help on using the changeset viewer.