[squeak-dev] The Trunk: Morphic-mt.1125.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Apr 30 11:26:33 UTC 2016


Marcel Taeumel uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-mt.1125.mcz

==================== Summary ====================

Name: Morphic-mt.1125
Author: mt
Time: 30 April 2016, 1:25:26.55802 pm
UUID: a37cda7d-4db4-b844-a7d1-5efc7a252908
Ancestors: Morphic-mt.1124

We can directly return at:put: because it returns the stored value. No additional lookup necessary.

=============== Diff against Morphic-mt.1124 ===============

Item was changed:
  ----- Method: IndentingListItemMorph>>widthOfColumn: (in category 'accessing - columns') -----
  widthOfColumn: columnIndex 
  	| widthOrSpec |
  	container columns ifNil: [ ^ self width ].
  	(container columnsCache at: columnIndex)
  		ifNotNil: [ :cachedWidth | ^ cachedWidth ].
  	widthOrSpec := container columns at: columnIndex.
+ 	^ container columnsCache at: columnIndex put: (widthOrSpec isNumber
- 	container columnsCache at: columnIndex put: (widthOrSpec isNumber
  		ifTrue: [ widthOrSpec ]
  		ifFalse:
  			[ widthOrSpec isBlock
  				ifTrue:
  					[ widthOrSpec
  						cull: container
  						cull: self ]
  				ifFalse:
  					[ widthOrSpec
  						ifNil: [ self width ]
  						ifNotNil: [ "Fall back"
+ 							50 ] ] ])!
- 							50 ] ] ]).
- 	^ container columnsCache at: columnIndex!



More information about the Squeak-dev mailing list