Граф коммитов

50 Коммитов

Автор SHA1 Сообщение Дата
Xidorn Quan 4cc83dede7 Bug 1229278 - Fix dynamic changes to text-emphasis-style. r=dbaron
--HG--
extra : source : 07a894d90fe2fc1bc5d44ffe07cc6ce58a13c706
2015-12-08 12:55:01 -05:00
Xidorn Quan 1ed71b2fe7 Backed out 8 changesets (bug 1225018, bug 1229278, bug 1224013) for reftest failures on CLOSED TREE
--HG--
extra : amend_source : ee1d38ab6715e193cb1462614b3395c96ca06a0c
extra : histedit_source : 65b6dcb58b89c3cbcfe9a47834baf3181a2990c8%2Cc19e313c6800de1a1906c0db2f2bd4680fe67b78
2015-12-04 13:08:17 +11:00
Xidorn Quan e0395eb608 Bug 1229278 - Fix dynamic changes to text-emphasis-style. r=dbaron
--HG--
extra : source : 88d4a7528fcf6835674c6556efc1aea740bec56e
2015-12-04 11:58:59 +11:00
Seth Fowler ee1cc1c521 Bug 1209765 (Followup) - Add very minor fuzz to underline-button-1.html on OS X 10.10. r=me DONTBUILD
--HG--
extra : rebase_source : fdd8def5f4eaea0c19dc1ce3ced8ddff72c43505
2015-10-22 23:19:13 -07:00
Seth Fowler ab6a522845 Bug 1209765 (Followup) - Add very minor fuzz to underline-button-2.html on OS X 10.10. r=me
--HG--
extra : amend_source : 4701e73265cb3edbd92cb94ec988623a423b3ee3
2015-10-22 22:48:59 -07:00
Daniel Holbert cc852530e2 Bug 1185491: Annotate reftest decoration-color-override-quirks.html as having 5 fuzzy pixels on Mac. (no review) 2015-07-31 12:28:45 -07:00
Jonathan Kew 1c0633cbb6 Bug 1159729 - Reftest to check that text decoration is properly offset when needed. r=smontagu 2015-05-11 11:33:45 +01:00
Alexandre Lissy e8b4f395c0 Bug 1138442 - Disable reftests on Mulet in parity with B2G/B2G Desktop. r=ahal 2015-03-10 02:43:00 +01:00
L. David Baron 71e196bb22 Bug 1133392 - Make handling of nsChangeHint_UpdateSubtreeOverflow iterate continuations, as all change hint handling needs to. r=mats
The test fails without the patch (missing underline on "an underline")
and passes with the patch (where the underline is present, and aligned
with the non-displaced text).
2015-02-19 13:49:52 +13:00
L. David Baron 326252dc85 Bug 1122897 patch 2 - Fix underline-block-propagation-2-quirks.html to reflect table text-decoration quirk, and to have the -moz-appearance rule that the long-passing underline-block-propagation-1* tests have, so that it passes. r=dholbert
Note that the style element additions to test and reference are making a
change already made in the -standards version, and the other change is
reflecting a quirk that is not removed, and that is interoperable.
2015-01-22 16:53:56 -08:00
L. David Baron 25539f2898 Bug 1122897 patch 1 - Remove quirk that text-decoration propagates to floats and absolutely positioned elements in quirks mode. r=dholbert 2015-01-22 16:53:56 -08:00
Tooru Fujisawa edefbef191 Bug 1039488 - Turn text-decoration into a shorthand. r=dbaron 2014-11-18 19:23:09 +09:00
Tooru Fujisawa 2cbd1c5ec6 Bug 825004 - Part 1: Unprefix CSS3 Text Decoration. r=dbaron 2014-11-18 19:23:09 +09:00
Susanna Bowen 58e46a1570 Bug 727125 - Update overflow areas for text frames on text-decoration change to ensure text-decoration on hover is visible. r=dbaron 2014-06-17 10:32:00 -04:00
Susanna Bowen b85550ce86 Bug 727125 - Lazily compute LineBaselineOffset when needed so it is present after a dynamic change of 'text-decoration'. r=dbaron
This fixes the positioning of underlines set on a block or its ancestor
when drawn on children of a block that have a vertical-align !=
baseline.

The lazy computation is done all at once for all children of a block to
avoid O(N^2) searches for the line containing a frame.
2014-06-18 12:55:00 -04:00
Wes Kocher abf9a45351 Backed out 2 changesets (bug 727125) for reftest bustage on an otherwise CLOSED TREE
Backed out changeset 443361e2724a (bug 727125)
Backed out changeset 16c8d78df86e (bug 727125)
2014-06-16 13:34:50 -07:00
Susanna Bowen dc169c8b48 Bug 727125 - Update overflow areas for text frames on text-decoration change to ensure text-decoration on hover is visible. r=dbaron 2014-06-16 11:58:29 -07:00
Susanna Bowen d1e6d153b7 Bug 727125 - Lazily compute LineBaselineOffset when needed so it is present after a dynamic change of 'text-decoration'. r=dbaron
This fixes the positioning of underlines set on a block or its ancestor
when drawn on children of a block that have a vertical-align !=
baseline.

The lazy computation is done all at once for all children of a block to
avoid O(N^2) searches for the line containing a frame.
2014-06-16 11:58:25 -07:00
Joel Maher 454b0ce43a 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 221179f50b Bug 811779 - Enable larger set of reftests on B2G emulators, r=jgriffin 2013-01-03 15:35:01 -05:00
Boris Zbarsky bd17d79bab 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 9ec73cc913 Back out bug 786946 because it fails <select> font-inflation tests. r=bustage 2012-09-07 12:18:48 -04:00
Boris Zbarsky 583e8302be 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 34bdb7d777 Bug 537230 part.1 Paint connection of complex style decoration lines smoothly r=roc 2012-07-04 14:59:50 +09:00
Boris Zbarsky 6960e3b319 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 67e8556642 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 94b5beb86f 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 c60e7d417d Make tests for bug 403524 use local images rather than http: ones. 2011-08-20 21:35:56 -04:00
L. David Baron 6f2de80bf9 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 62ea8608a8 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 1baff11dba 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 4dbadf264d 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 f82cd17bcb 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 59b9ac988d 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 831d354974 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 e915e08a19 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 fb1b318682 Reftest for bug 641444. r=dbaron 2011-05-31 11:04:33 +03:00
Masayuki Nakano 1adf21f3e7 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 f919596523 Bug 648299 -moz-text-decoration-style: -moz-none doesn't work r=dbaron 2011-04-23 14:13:09 +09:00
Masayuki Nakano 9ef13a9ce5 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 976abd515f 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 f096d68a9d 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 3909a733b1 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 a70ff5517a 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 0140b565ce Bug 403526: Do not propagate text-decoration to floats. r=dbaron 2010-03-17 11:18:06 -07:00
L. David Baron c23d01eee4 Add some reftests for z-ordering of text-decorations. 2008-06-11 21:54:13 -07:00
reed@reedloden.com 38fcdb21a5 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 ff6e28dec2 Add bug number. 2007-11-12 12:12:10 -08:00
dbaron@dbaron.org 3a608773ac Add bug number. 2007-11-12 12:08:29 -08:00
dbaron@dbaron.org 0e28f9543b 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