Changeset 246621 in webkit
- Timestamp:
- Jun 19, 2019, 5:40:27 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/inspector/css/modify-css-property.html (modified) (1 diff)
-
LayoutTests/inspector/css/pseudo-element-matches-for-pseudo-element-node.html (modified) (1 diff)
-
Source/WebInspectorUI/ChangeLog (modified) (1 diff)
-
Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r246619 r246621 1 2019-06-19 Nikita Vasilyev <nvasilyev@apple.com> 2 3 REGRESSION(r240946): Web Inspector: Styles: Pasting multiple properties has issues 4 https://bugs.webkit.org/show_bug.cgi?id=198505 5 <rdar://problem/51374780> 6 7 Reviewed by Matt Baker. 8 9 * inspector/css/modify-css-property.html: 10 Listen for PropertiesChanged on the specific inline style declaration. 11 In Debug, PropertiesChanged may fire on a computed style declaration first, 12 causing the test to fail. 13 14 * inspector/css/pseudo-element-matches-for-pseudo-element-node.html: 15 Drive-by: fix trailing white space. 16 1 17 2019-06-19 Ryan Haddad <ryanhaddad@apple.com> 2 18 -
trunk/LayoutTests/inspector/css/modify-css-property.html
r241011 r246621 118 118 let styleDeclaration = getInlineStyleDeclaration(); 119 119 120 WI.CSSStyleDeclaration.awaitEvent(WI.CSSStyleDeclaration.Event.PropertiesChanged).then((event) => {120 styleDeclaration.awaitEvent(WI.CSSStyleDeclaration.Event.PropertiesChanged).then((event) => { 121 121 InspectorTest.expectThat(!styleDeclaration.locked, `Style declaration is unlocked.`); 122 122 InspectorTest.expectEqual(getProperty("width").rawValue, "200px", `"width" property value should update to "200px".`); -
trunk/LayoutTests/inspector/css/pseudo-element-matches-for-pseudo-element-node.html
r236766 r246621 35 35 } 36 36 37 InspectorTest.completeTest(); 37 InspectorTest.completeTest(); 38 38 } 39 39 -
trunk/Source/WebInspectorUI/ChangeLog
r246618 r246621 1 2019-06-19 Nikita Vasilyev <nvasilyev@apple.com> 2 3 REGRESSION(r240946): Web Inspector: Styles: Pasting multiple properties has issues 4 https://bugs.webkit.org/show_bug.cgi?id=198505 5 <rdar://problem/51374780> 6 7 Reviewed by Matt Baker. 8 9 Since r240946, setting WI.CSSStyleDeclaration.prototype.text updates the text immediately. 10 When WI.CSSStyleDeclaration.prototype.update gets called after setting text, it exits early 11 without firing WI.CSSStyleDeclaration.Event.PropertiesChanged. 12 13 * UserInterface/Models/CSSStyleDeclaration.js: 14 (WI.CSSStyleDeclaration): 15 (WI.CSSStyleDeclaration.prototype.set text): 16 1 17 2019-06-19 Matt Baker <mattbaker@apple.com> 2 18 -
trunk/Source/WebInspectorUI/UserInterface/Models/CSSStyleDeclaration.js
r245991 r246621 43 43 this._initialState = null; 44 44 this._updatesInProgressCount = 0; 45 this._pendingPropertiesChanged = false; 45 46 this._locked = false; 46 47 this._pendingProperties = []; … … 184 185 // Don't fire the event if text hasn't changed. However, it should still fire for Computed style declarations 185 186 // because it never has text. 186 if (oldText === this._text && this._type !== WI.CSSStyleDeclaration.Type.Computed) 187 return; 187 if (oldText === this._text && !this._pendingPropertiesChanged && this._type !== WI.CSSStyleDeclaration.Type.Computed) 188 return; 189 190 this._pendingPropertiesChanged = false; 188 191 189 192 function delayed() … … 238 241 timeoutId = null; 239 242 this._updatesInProgressCount = Math.max(0, this._updatesInProgressCount - 1); 243 this._pendingPropertiesChanged = true; 240 244 }; 241 245
Note:
See TracChangeset
for help on using the changeset viewer.