Changeset 285839 in webkit
- Timestamp:
- Nov 15, 2021 4:07:03 PM (8 months ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Models/Layer.js (modified) (1 diff)
-
UserInterface/Views/Layers3DContentView.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r285711 r285839 1 2021-11-15 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Web Inspector: Layers Tab: the position of composited layer with box-shadow is wrong 4 https://bugs.webkit.org/show_bug.cgi?id=233026 5 6 Reviewed by Devin Rousso. 7 8 If an element has box-shadow, Layers Tab showed the composited 9 layer positioned wrongly. It assumed the composited layer position 10 was same with its element position. This isn't true. If an element 11 has box-shadow, its composited layer includes the surrounding 12 box-shadow. 13 14 * UserInterface/Models/Layer.js: 15 (WI.Layer): 16 * UserInterface/Views/Layers3DContentView.js: 17 (WI.Layers3DContentView.prototype._updateLayers): 18 (WI.Layers3DContentView.prototype._createLayerMesh): 19 1 20 2021-11-12 Razvan Caliman <rcaliman@apple.com> 2 21 -
trunk/Source/WebInspectorUI/UserInterface/Models/Layer.js
r222342 r285839 42 42 this._pseudoElement = pseudoElement; 43 43 44 // FIXME: This should probably be moved to the backend.45 this._compositedBounds.x = this._bounds.x;46 this._compositedBounds.y = this._bounds.y;44 // Transform compositedBounds to the global position 45 this._compositedBounds.x += this._bounds.x; 46 this._compositedBounds.y += this._bounds.y; 47 47 } 48 48 -
trunk/Source/WebInspectorUI/UserInterface/Views/Layers3DContentView.js
r274033 r285839 270 270 newLayers.forEach((layer, index) => { 271 271 let layerGroup = this._layerGroupsById.get(layer.layerId); 272 layerGroup.position.set( layer.bounds.x, -layer.bounds.y, index * zInterval);272 layerGroup.position.set(0, 0, index * zInterval); 273 273 }); 274 274 … … 287 287 } 288 288 289 _createLayerMesh({ width, height}, isOutline = false)289 _createLayerMesh({x, y, width, height}, isOutline = false) 290 290 { 291 291 let geometry = new THREE.Geometry; 292 292 geometry.vertices.push( 293 new THREE.Vector3( 0, 0,0),294 new THREE.Vector3( 0, -height, 0),295 new THREE.Vector3( width, -height, 0),296 new THREE.Vector3( width, 0,0),293 new THREE.Vector3(x, -y, 0), 294 new THREE.Vector3(x, -y - height, 0), 295 new THREE.Vector3(x + width, -y - height, 0), 296 new THREE.Vector3(x + width, -y, 0), 297 297 ); 298 298
Note: See TracChangeset
for help on using the changeset viewer.