Changeset 244157 in webkit
- Timestamp:
- Apr 10, 2019, 3:47:26 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Views/AuditTestContentView.js (modified) (1 diff)
-
UserInterface/Views/View.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r244156 r244157 1 2019-04-10 Devin Rousso <drousso@apple.com> 2 3 Web Inspector: REGRESSION: Audit: result UI shown on first open if an audit was previously selected 4 https://bugs.webkit.org/show_bug.cgi?id=196723 5 <rdar://problem/49722252> 6 7 Reviewed by Timothy Hatcher. 8 9 When opening Web Inspector for the first time, we will trigger resize `layout`s on the main 10 content area as Web Inspector is resized to it's old window size. 11 12 Rather than treating this layout as a `View.LayoutReason.Resize`, we should treat the 13 first `layout` (e.g. `initialLayout`) as a `View.LayoutReason.Dirty` instead, as there was 14 previously no content. 15 16 * UserInterface/Views/View.js: 17 (WI.View.prototype._layoutSubtree): 18 (WI.View.prototype._setLayoutReason): 19 20 * UserInterface/Views/AuditTestContentView.js: 21 (WI.AuditTestContentView): 22 Drive-by: ensure that this class is not instantiated directly. 23 1 24 2019-04-10 Devin Rousso <drousso@apple.com> 2 25 -
trunk/Source/WebInspectorUI/UserInterface/Views/AuditTestContentView.js
r241227 r244157 32 32 super(representedObject); 33 33 34 // This class should not be instantiated directly. Create a concrete subclass instead. 35 console.assert(this.constructor !== WI.AuditTestContentView && this instanceof WI.AuditTestContentView); 36 34 37 this.element.classList.add("audit-test"); 35 38 -
trunk/Source/WebInspectorUI/UserInterface/Views/View.js
r242241 r244157 277 277 let isInitialLayout = !this._didInitialLayout; 278 278 279 if (!this._didInitialLayout) { 279 if (isInitialLayout) { 280 // The initial layout should always be treated as dirty. 281 this._setLayoutReason(); 282 280 283 this.initialLayout(); 281 284 this._didInitialLayout = true; … … 302 305 _setLayoutReason(layoutReason) 303 306 { 304 if (this._layoutReason === WI.View.LayoutReason.Resize)305 return;306 307 307 this._layoutReason = layoutReason || WI.View.LayoutReason.Dirty; 308 308 }
Note:
See TracChangeset
for help on using the changeset viewer.