Commit Graph

32 Commits

Author SHA1 Message Date
Joel Maher
54d973cc7b Bug 834737 - 2 text reftests fail while running unitests on ubuntu 12.04 on ec2 VMs. r=bz 2013-02-05 08:57:40 -05:00
Andrew Halberstadt
4a18b30019 Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
Boris Zbarsky
b5a77a4846 Bug 786946. Don't propagate text-decoration to <select> by default. r=dbaron
--HG--
rename : layout/reftests/text-decoration/underline-button-1-ref.html => layout/reftests/text-decoration/underline-select-1-ref.html
rename : layout/reftests/text-decoration/underline-button-1.html => layout/reftests/text-decoration/underline-select-1.html
rename : layout/reftests/text-decoration/underline-button-1-ref.html => layout/reftests/text-decoration/underline-select-2-ref.html
rename : layout/reftests/text-decoration/underline-button-1.html => layout/reftests/text-decoration/underline-select-2.html
2012-09-07 10:51:34 -04:00
Boris Zbarsky
a3c0607d95 Back out bug 786946 because it fails <select> font-inflation tests. r=bustage 2012-09-07 12:18:48 -04:00
Boris Zbarsky
019411646c Bug 786946. Don't propagate text-decoration to <select> by default. r=dbaron
--HG--
rename : layout/reftests/text-decoration/underline-button-1-ref.html => layout/reftests/text-decoration/underline-select-1-ref.html
rename : layout/reftests/text-decoration/underline-button-1.html => layout/reftests/text-decoration/underline-select-1.html
rename : layout/reftests/text-decoration/underline-button-1-ref.html => layout/reftests/text-decoration/underline-select-2-ref.html
rename : layout/reftests/text-decoration/underline-button-1.html => layout/reftests/text-decoration/underline-select-2.html
2012-09-07 10:51:34 -04:00
Masayuki Nakano
3e4e3d252b Bug 537230 part.1 Paint connection of complex style decoration lines smoothly r=roc 2012-07-04 14:59:50 +09:00
Boris Zbarsky
4057bff59a Disable the test on Windows, since it just can't pass there. Followup for bug 731447. 2012-06-01 15:24:44 -04:00
Boris Zbarsky
10521aa8fb Attempt to fix reftest failure on android XUL, where buttons seem to use a non-block color for some reason. Followup for bug 731447 2012-06-01 13:32:09 -04:00
Boris Zbarsky
f13a1c00de Bug 731447. Make buttons display:inline-block by default so that underlines don't reach into them. r=dbaron 2012-06-01 11:45:37 -04:00
L. David Baron
f9670976cb Make tests for bug 403524 use local images rather than http: ones. 2011-08-20 21:35:56 -04:00
L. David Baron
b646a65f01 Add reftest for bug 676538 (text-decoration offsets on block, child inline, and grandchild inline). 2011-08-10 12:44:17 -07:00
L. David Baron
7a118daf14 Followup to changeset c9dff8b867f0d74ef23396bcb896696cf9436b08 (bug 403524): test passes on Android now as well (bug 585684 / bug 586748). 2011-08-03 12:48:04 -07:00
Vitor Menezes
1eb945fbb6 Bug 223764: Inlines inside inlines that draw text-decorations shouldn't alter the baseline. (r=dbaron)
We add a baseline field to nsInlineFrame and modify
nsLineLayout::BeginSpan to take a pointer to a baseline to update. This
also means that nsFirstLetterFrame no longer needs to update its own
baseline, and instead should just pass its own field along.
2011-08-03 11:30:58 -07:00
Vitor Menezes
fec17839e4 Bug 403524: Make textarea not inherit text decorations and correct the failing reftest (r=dbaron)
Originally, this reftest only failed on Windows (see bug 585684).
However, upon making standards mode compliant with CSS2.1, the bug
described in 585684 spread to all platforms, indicating it was actually
a layout bug and not d2d per se.  This patch makes the anonymous div
inside textareas and text inputs inline-blocks so that they ignore
decorations defined on ancestors.
2011-08-03 11:30:58 -07:00
Vitor Menezes
cf291058cb Bug 403524: Remove the standards-mode text-decoration code and use the quirks-mode code in all modes. r=dbaron 2011-08-03 11:30:58 -07:00
Vitor Menezes
1be3da1279 Bug 403524: Make quirks-mode text draw order comply with CSS 2.1
Quirks-mode code draws text, and then all decorations. We need to instead draw
underlines, then overlines, -then- text, then line-throughs, as per CSS 2.1.

This involves refactoring nsTextFrame::PaintTextDecorations and
nsTextFrame::DrawText by merging them together, and also updating some
of their callers.
2011-08-03 11:30:58 -07:00
Vitor Menezes
776c5bc61f Only override font properties when in quirks mode. (Bug 403524) r=dbaron
Font tags cause NS_STYLE_TEXT_DECORATION_LINE_OVERRIDE_ALL in quirks
mode only, so that standards mode (in which font tags don't cause the
override) can use the same codepath in the near future.
2011-08-03 11:30:58 -07:00
Vitor Menezes
e28c55c2e9 Fix text-decoration positioning in quirks mode and set overflow areas to match. (Bug 403524) r=dbaron
Change the quirks mode text-decoration code (soon to be used for all
modes) to follow CSS 2.1's rules for positioning of decoration lines.
Decorations are now drawn at a constant vertical position established by
the element creating the decoration, and more than one of the same type
(underline, overline, line-through) of decoration are supported on the
same piece of text.

This means that text-decorations can now significantly overflow a text
frame, since the vertical-alignment of the element with text-decoration
may be substantially different from the vertical alignment of the text.
Set overflow areas for text frames with text decorations in
nsLineLayout::RelativePositionFrames since it must happen *after*
vertical alignment is done, and when relative positioning data are
consistent (nsIFrame::GetRelativeOffset matches the offset that has been
applied).
2011-08-03 11:30:58 -07:00
Simon Montagu
61f8f2bd0a Reftest for bug 641444. r=dbaron 2011-05-31 11:04:33 +03:00
Masayuki Nakano
cc0623b6e3 Bug 647421 -moz-text-decoration-color and -moz-text-decoration-style should be reset by text-decoration r=dbaron, sr=bzbarsky 2011-04-23 14:16:41 +09:00
Masayuki Nakano
2bb6c01918 Bug 648299 -moz-text-decoration-style: -moz-none doesn't work r=dbaron 2011-04-23 14:13:09 +09:00
Masayuki Nakano
5a1919d8f0 Bug 59109 part 4: reftests for text-decoration-color and text-decoration-style r=dbaron 2011-03-31 21:27:12 +09:00
Joel Maher
a2a84ed8a8 Bug 636753 - annotate reftest manifests to note tests that fail on Android (1 of 2). r=dbaron a=test-only 2011-03-18 11:54:13 -04:00
L. David Baron
22c836286a Don't propagate text-decoration in quirks-mode across inline-block, inline-table, and HTML table elements. Also, prepare quirks-mode text-decoration propagation code for use in standards mode (for bug 403524). (Bug 572713) r=roc a2.0=blocking 2010-11-21 15:50:28 -08:00
Jeff Muizelaar
932d88e8c5 Bug 586835. Disable the d2d reftests that fail but are still sane. r=joe
This is in preparation for enabling d2d by default. A bunch of these will be
changed from random-if to fuzzy-if when bug 580786 lands. Some of them should
also be fixed or investigated more thoroughly before final.
2010-08-13 11:44:24 -04:00
Zack Weinberg
413f17a4cf Bug 558981: Make reftests/text-decoration/underline-block-propagation-2-standards not dependent on system widget themes. r=dbaron 2010-04-29 08:43:41 -07:00
Zack Weinberg
2621981f69 Bug 403526: Do not propagate text-decoration to floats. r=dbaron 2010-03-17 11:18:06 -07:00
L. David Baron
b985a9084a Add some reftests for z-ordering of text-decorations. 2008-06-11 21:54:13 -07:00
reed@reedloden.com
325e468d20 Bug 427845 - "reftests/text-decoration/underline-block-propagation-*.html are buggy" [p=zweinberg@mozilla.com (Zack Weinberg) r=dbaron] 2008-04-08 23:38:45 -07:00
dbaron@dbaron.org
7bc072d5c6 Add bug number. 2007-11-12 12:12:10 -08:00
dbaron@dbaron.org
691f9109fc Add bug number. 2007-11-12 12:08:29 -08:00
dbaron@dbaron.org
9ce1bd86be Make inline-block and table-caption elements not ignore text-decoration. b=371249 r+sr=roc a=dsicore 2007-11-12 11:12:24 -08:00