Commit Graph

56 Commits

Author SHA1 Message Date
L. David Baron
a2d040e71b Make effect of form controls on font size inflation text threshold not depend on user changes to their value. (Bug 747857) r=roc 2012-05-05 15:24:45 +02:00
Ed Morley
efd3f91358 Backout f8125b89352d (bug 747857) for frequent test failures 2012-05-04 15:24:42 +01:00
L. David Baron
9b755e8796 Add missing GetFirstInFlow() call that was causing a crash in ComputeDescendantWidth when printing with font inflation enabled (or a debug build). (Bug 751797) r=roc 2012-05-03 22:55:33 -04:00
L. David Baron
7d53f5fe9b Make effect of form controls on font size inflation text threshold not depend on user changes to their value. (Bug 747857) r=roc 2012-05-03 20:04:30 -04:00
L. David Baron
dea3236515 Build font data structure by walking the necessary text. (Bug 706193, patch 3) r=roc
Compute the amount of text in the scope of an nsFontInflationData
object.  This walks the text that's inside of the block formatting
context at which this object is rooted, excluding the text that's inside
any nested BFC.  Using the amount of text, the font sizes of the text,
and the line threshold preference, we compute whether to enable font
size inflation within that block formatting context.
2012-04-16 15:32:12 -07:00
L. David Baron
464614b05f Add a font inflation data structure per block formatting context. (Bug 706193, patch 2) r=roc
This structure is per block formatting context because we have to make a
single inflation decision for things like consecutive runs of paragraphs
of text.  Inflating some paragraphs and not others (within the same
sequence of adjacent paragraphs) based on the amount of text in each one
would be disastrous.  Otherwise it's ideal for the units to be as small
as possible as long as they merge such sequences; therefore this uses a
definition corresponding to CSS's idea of elements that establish new
block formatting contexts.
2012-04-16 15:32:12 -07:00