Re: [PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-19 Thread Scott Kostyshak
On Mon, Oct 19, 2015 at 12:16:58PM +0200, Jean-Marc Lasgouttes wrote: > Le 15/10/15 18:07, Richard Heck a écrit : > >>The only changed behavior is that the CoordCache asserts when > >>requiring a non existing cache entry, where insetDimension would > >>return a dummy value. This can lead to some cr

Re: [PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-19 Thread Jean-Marc Lasgouttes
Le 16/10/15 02:21, Scott Kostyshak a écrit : On Thu, Oct 15, 2015 at 03:30:21PM +0200, Jean-Marc Lasgouttes wrote: Scott, OK? Yes. It is in now. JMarc

Re: [PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-19 Thread Jean-Marc Lasgouttes
Le 15/10/15 18:07, Richard Heck a écrit : The only changed behavior is that the CoordCache asserts when requiring a non existing cache entry, where insetDimension would return a dummy value. This can lead to some crashes, but I would say that these are welcome in some cases. Is there something

Re: [PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-19 Thread Jean-Marc Lasgouttes
Le 16/10/15 02:21, Scott Kostyshak a écrit : // FIXME (Abdel 23/09/2007): this is a bit messy because of the // elimination of Inset::dim_ cache. This coordOffset() method needs // to be rewritten in light of the new design

Re: [PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-15 Thread Scott Kostyshak
On Thu, Oct 15, 2015 at 03:30:21PM +0200, Jean-Marc Lasgouttes wrote: > Scott, OK? Yes. > // FIXME (Abdel 23/09/2007): this is a bit messy > because of the > // elimination of Inset::dim_ cache. This coordOffset() > method needs >

Re: [PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-15 Thread Richard Heck
On 10/15/2015 09:30 AM, Jean-Marc Lasgouttes wrote: The following patch is a simple cleanup that was written before the acceptation of the role of release master by Scott. It removes the cache ParagraphMetrics:insetDimension, and relies on the already existing BufferView::coordCache instead.

[PATCH] Get rid of ParagraphMetrics::insetDimension

2015-10-15 Thread Jean-Marc Lasgouttes
15 16:11:58 +0200 Subject: [PATCH] Get rid of ParagraphMetrics::insetDimension We already have a CoordCache of insets dimensions. It is not necessary to store the same information in two places. Give a name to CoordCache tables types to improve code readability. Remove ParagraphMetrics::sin