gecko/layout/reftests/text-overflow
Robert O'Callahan d0dd680745 Bug 733607. Restructure logic to compute snapped bounds of display items in layer coordinates. Moves responsibility for computing snapped bounds from within the display items to callers of GetBounds/GetOpaqueRegion. r=tnikkel
Previously we snapped the results of nsDisplayItem::GetBounds and
nsDisplayItem::GetOpaqueRegion internally. By tracking which display items were
inside transforms, we disabled snapping quite conservatively whenever an ancestor
had a transform, which is undesirable.

With this patch, we don't snap inside GetBounds or GetOpaqueRegion, but just return
a boolean flag indicating whether the item will draw with snapping or not. This flag
is conservative so that "true" means we will snap (if the graphics context has a transform
that allows snapping), but "false" means we might or might not snap (so it's always safe
to return false).

FrameLayerBuilder takes over responsibility for snapping item bounds. When it converts
display item bounds to layer pixel coordinates, it checks the snap flag returned from
the display item and checks whether the transform when we draw into the layer will be
a known scale (the ContainerParameters scale factors) plus integer translation. If both
are true, we snap the item bounds when converting to layer pixel coordinates. With
this approach, we can snap item bounds even when the items have ancestors with active
transforms.
2012-04-10 23:24:18 +12:00
..
aligned-baseline-ref.html Bug 668919 - The ellipsis with text-overflow: ellipsis is sometimes one pixel too low. r=roc 2011-07-04 07:47:59 +02:00
aligned-baseline.html Bug 668919 - The ellipsis with text-overflow: ellipsis is sometimes one pixel too low. r=roc 2011-07-04 07:47:59 +02:00
anonymous-block-ref.html
anonymous-block.html
atomic-under-marker-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
atomic-under-marker.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
bidi-simple-ref.html
bidi-simple-scrolled-ref.html
bidi-simple-scrolled.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
bidi-simple.html
block-padding-ref.html
block-padding.html
clipped-elements-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
clipped-elements.html Bug 667010 - "ASSERTION: unexpected block frame" with text-overflow: ellipsis, <fieldset>. r=roc 2011-07-04 07:47:59 +02:00
ellipsis-font-fallback-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
ellipsis-font-fallback.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
false-marker-overlap-ref.html
false-marker-overlap.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
marker-basic-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
marker-basic.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
marker-shadow-ref.html New, better reftest for bug 666689 r=roc 2011-07-04 14:59:19 +10:00
marker-shadow.html New, better reftest for bug 666689 r=roc 2011-07-04 14:59:19 +10:00
marker-string-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
marker-string.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
quirks-decorations-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
quirks-decorations.html
quirks-line-height-ref.html
quirks-line-height.html
reftest.list Bug 733607. Restructure logic to compute snapped bounds of display items in layer coordinates. Moves responsibility for computing snapped bounds from within the display items to callers of GetBounds/GetOpaqueRegion. r=tnikkel 2012-04-10 23:24:18 +12:00
scroll-rounding-ref.html
scroll-rounding.html
selection-ref.html Bug 668849 - Sporadic TEST-UNEXPECTED-FAIL | reftests/text-overflow/selection.html. r=test-only 2011-07-02 23:50:02 +02:00
selection.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
single-value-ref.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
single-value.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
standards-decorations-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
standards-decorations.html
standards-line-height-ref.html
standards-line-height.html
table-cell-ref.html Test text-overflow:ellipsis on table-cell. b=nobug r=test-only 2011-07-26 19:22:47 +02:00
table-cell.html Test text-overflow:ellipsis on table-cell. b=nobug r=test-only 2011-07-26 19:22:47 +02:00
TestEllipsisFallback.woff
theme-overflow-ref.html Bug 690187 - Clip or suppress a marker if it makes the line empty. r=roc 2011-12-19 15:48:31 +01:00
theme-overflow.html Bug 684266 - Do ellipsing on the end-edge only when a single value was specified for text-overflow. r=bzbarsky r=roc 2011-10-12 18:20:46 +02:00
two-value-syntax-ref.html Bug 677582 - Tests for CSS3 text-overflow: <left> <right>. r=roc 2011-08-20 22:41:39 +02:00
two-value-syntax.html Bug 677582 - Tests for CSS3 text-overflow: <left> <right>. r=roc 2011-08-20 22:41:39 +02:00
visibility-hidden-ref.html
visibility-hidden.html
xulscroll-ref.html Bug 672944 - Test -moz-box text-overflow. r=roc 2012-01-28 04:35:59 +01:00
xulscroll.html Bug 672944 - Test -moz-box text-overflow. r=roc 2012-01-28 04:35:59 +01:00