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

commits at source.squeak.org commits at source.squeak.org
Mon Feb 21 14:47:19 UTC 2022

Marcel Taeumel uploaded a new version of Morphic to project The Trunk:

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

Name: Morphic-mt.1903
Author: mt
Time: 21 February 2022, 3:47:13.652099 pm
UUID: 3bdc0c37-abfd-ae40-9040-42769b8b3683
Ancestors: Morphic-mt.1902

It is not necessary to copy a text style during text composition. The text style will not be modified during composition. It must be a copy already when the surrounding text morph was configured.

=============== Diff against Morphic-mt.1902 ===============

Item was changed:
  ----- Method: TextMorph>>createParagraph (in category 'private') -----
  	self setProperty: #CreatingParagraph toValue: true.
  		self setDefaultContentsIfNil.
  		"...Code here to recreate the paragraph..."
  		paragraph := (self paragraphClass new textOwner: self owner).
  		paragraph wantsColumnBreaks: successor notNil.
  			compose: text
+ 			style: textStyle
- 			style: textStyle copy
  			from: self startingIndex
  			in: self container.
  		wrapFlag ifFalse:
  			["Was given huge container at first... now adjust"
  			paragraph adjustRightX].
  		paragraph focused: (self currentHand keyboardFocus == self).
  			caretColor: self caretColor;
  			selectionColor: self selectionColor;
  			unfocusedSelectionColor: self unfocusedSelectionColor.
  		self fit.
  	] ensure: [self removeProperty: #CreatingParagraph].
  	^ paragraph!

More information about the Squeak-dev mailing list