Changeset 219972 in webkit
- Timestamp:
- Jul 26, 2017, 5:13:20 PM (8 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r219964 r219972 1 2017-07-26 Devin Rousso <drousso@apple.com> 2 3 Uncaught Exception: undefined is not an object (evaluating 'this._memoryRow.value = Number.bytesToString(this._canvas.memoryCost)') 4 https://bugs.webkit.org/show_bug.cgi?id=174823 5 6 Reviewed by Joseph Pecoraro. 7 8 * UserInterface/Views/CanvasDetailsSidebarPanel.js: 9 (WebInspector.CanvasDetailsSidebarPanel.prototype._refreshIdentitySection): 10 (WebInspector.CanvasDetailsSidebarPanel.prototype._refreshSourceSection): 11 (WebInspector.CanvasDetailsSidebarPanel.prototype._refreshAttributesSection): 12 (WebInspector.CanvasDetailsSidebarPanel.prototype._refreshCSSCanvasSection): 13 (WebInspector.CanvasDetailsSidebarPanel.prototype._formatMemoryRow): 14 Early return if the view has not called initialLayout, as the rows might not have been 15 constructed yet. 16 17 * UserInterface/Views/View.js: 18 (WebInspector.View.prototype.get didInitialLayout): Added. 19 1 20 2017-07-26 Devin Rousso <drousso@apple.com> 2 21 -
trunk/Source/WebInspectorUI/UserInterface/Views/CanvasDetailsSidebarPanel.js
r219268 r219972 144 144 _refreshIdentitySection() 145 145 { 146 if (!this._canvas)147 return;148 149 146 this._nameRow.value = this._canvas.displayName; 150 147 this._typeRow.value = WebInspector.Canvas.displayNameForContextType(this._canvas.contextType); … … 154 151 _refreshSourceSection() 155 152 { 156 if (!this. _canvas)153 if (!this.didInitialLayout) 157 154 return; 158 155 … … 225 222 _refreshAttributesSection() 226 223 { 227 if (!this._canvas)228 return;229 230 224 if (isEmptyObject(this._canvas.contextAttributes)) { 231 225 // Remove the DataGrid to show the placeholder text. … … 255 249 _refreshCSSCanvasSection() 256 250 { 257 if (!this. _canvas)251 if (!this.didInitialLayout) 258 252 return; 259 253 … … 280 274 _formatMemoryRow() 281 275 { 276 if (!this.didInitialLayout) 277 return; 278 282 279 if (!this._canvas.memoryCost || isNaN(this._canvas.memoryCost)) { 283 280 this._memoryRow.value = emDash; -
trunk/Source/WebInspectorUI/UserInterface/Views/View.js
r214439 r219972 174 174 175 175 get layoutReason() { return this._layoutReason; } 176 get didInitialLayout() { return this._didInitialLayout; } 176 177 177 178 didMoveToWindow(isAttachedToRoot)
Note:
See TracChangeset
for help on using the changeset viewer.