Nicholas Nethercote
757eb4ec8c
Bug 1229202 (part 3) - Make gfxContextAutoDisableSubpixelAntialiasing take a DrawTarget instead of a gfxContext. r=mattwoodrow.
...
--HG--
extra : rebase_source : 63851ac1725451c7607c00b345ce3334ff749246
2015-12-02 15:32:16 -08:00
Robert O'Callahan
3568d59638
Bug 1221043. Revert to including trailing whitespace for accessibility APIs. r=marcoz,mats
...
--HG--
extra : commitid : DBGsn68FsG4
extra : rebase_source : 7b8f6211c2719dd017fef7e47d4dcdb3aeadfde4
2015-12-01 02:21:25 +13:00
L. David Baron
f194309cac
Bug 1228501 patch 3 - Remove nsFont::BaseEquals. r=jdaggett
...
BaseEquals and Equals were made the same by patch 2, so BaseEquals can
be removed.
(operator== is also defined as an inlined call to Equals.)
--HG--
extra : commitid : JVYtDCoxqyH
2015-11-30 14:02:25 -08:00
Carsten "Tomcat" Book
d76b6dfebd
Backed out changeset 6c478d7a9467 (bug 1228501)
2015-11-30 12:10:37 +01:00
L. David Baron
6f20c9e01e
Bug 1228501 patch 3 - Remove nsFont::BaseEquals. r=jdaggett
...
BaseEquals and Equals were made the same by patch 2, so BaseEquals can
be removed.
(operator== is also defined as an inlined call to Equals.)
--HG--
extra : commitid : ALr3bEC0aNJ
2015-11-29 23:15:02 -08:00
Xidorn Quan
b96f561251
Bug 1040668 part 14 - Add helper function nsStyleUtil::MatchesLanguagePrefix for doing simple language matching. r=dbaron
...
--HG--
extra : source : b9249b9e2e95cca73c7b3637a58cb1ba3a39596a
2015-11-28 11:56:33 +11:00
Xidorn Quan
6fdb9fbeaa
Bug 1040668 part 10 - Implement emphasis mark rendering. r=jfkthame
...
--HG--
extra : source : 1c53ccbaece3931ffe1da5610977e92fcce5f3f6
2015-11-28 11:56:33 +11:00
Xidorn Quan
72495f58ae
Bug 1040668 part 9 - Compute overflow from text-shadow after text decorations. r=dbaron
...
--HG--
extra : source : 6827c7ef262e47cd42fea6b1a90e09883a7d24dc
2015-11-28 11:56:33 +11:00
Xidorn Quan
376cdf821b
Bug 1040668 part 8 - Setup text emphasis for text run. r=jfkthame
...
--HG--
extra : source : 4f5398b5953c0cf4d57ed0fce5788f1430a5b05d
2015-11-28 11:56:33 +11:00
Ting-Yu Lin
79afc81f6e
Bug 1226875 - Remove nsIFrame::GetFirstChild(). r=mats
...
--HG--
extra : commitid : J8NTL74JosY
extra : rebase_source : 50a196905ac06d09fea17bb1aa17efe821cc7cbb
2015-11-26 17:12:39 +08:00
Xidorn Quan
b0bfc6460a
Bug 1227001 part 3 - Remove no longer used mChangedBreaks from BreakSink. r=jfkthame
...
--HG--
extra : source : d279e229470cab165e28274b5e6045e2ea62f1b7
2015-11-24 10:23:05 +11:00
Xidorn Quan
a6caf098a4
Bug 1227001 part 2 - Remove no longer used mExistingTextRun from BreakSink. r=jfkthame
...
--HG--
extra : source : a1d68557e1c90b62a3318a81d814c21c75f45ec0
2015-11-24 10:23:05 +11:00
Xidorn Quan
03bc38abaf
Bug 1227001 part 1 - Remove SetupBreakSinksFlags from BuildTextRunsScanner. r=jfkthame
...
--HG--
extra : source : 2ef65b73284b28557846d737f704552a2a474389
2015-11-24 10:23:05 +11:00
Jonathan Kew
022c161e17
Bug 1224230 - Explicitly store the lineContainer's writing mode in InlineIntrinsicISizeData. r=dbaron
2015-11-14 08:46:11 +00:00
Nicholas Nethercote
4f45d5edc0
Bug 1223215 (part 1) - Convert some gfx{Point,Size} to gfx::{Point,Size}. r=roc.
...
This lets us remove some Thebes{Point,Size}() and To{Point,Size}() calls.
--HG--
extra : rebase_source : dc7a06e70e4a63401144dc4aa67eafeb7eb37320
2015-11-08 20:19:00 -08:00
Simon Montagu
3457b582d2
Bug 1216096: restore previous RTL caret behaviour by backout of bug 1164963, bug 1177505, and bug 1180417. r=jfkthame
2015-11-10 04:42:23 -08:00
Nicholas Nethercote
8198d15f1e
Bug 1038663 (part 6, attempt 2) - Allow percentage values for 'word-spacing'. r=heycam.
2015-11-08 16:40:37 -08:00
Nicholas Nethercote
3cde644d8c
Bug 1038663 (part 5, attempt 2) - Change GetSpacingFlags(). r=heycam.
2015-11-08 14:49:02 -08:00
Nicholas Nethercote
9ba99963c2
Bug 1038663 (part 4, attempt 2) - Inline StyleToCoord(). r=heycam.
2015-11-08 14:49:02 -08:00
Nicholas Nethercote
163196360e
Bug 1038663 (part 3, attempt 2) - Factor out space width computation. r=heycam.
2015-11-08 14:48:58 -08:00
Nicholas Nethercote
a34dc73523
Bug 1038663 (part 2, attempt 2) - Move GetFirstFontMetrics() up. r=heycam.
2015-11-08 13:52:58 -08:00
Nigel Babu
52d7459eca
Backed out 6 changesets (bug 1038663) for Android opt R2 bustage
...
Backed out changeset 97e3492d6080 (bug 1038663)
Backed out changeset d176322f2d36 (bug 1038663)
Backed out changeset f69af9161252 (bug 1038663)
Backed out changeset 8bb77e5fad8c (bug 1038663)
Backed out changeset 954e57438f51 (bug 1038663)
Backed out changeset 16c0919101cd (bug 1038663)
2015-11-06 12:49:36 +05:30
Nicholas Nethercote
b7bd8564c0
Bug 1038663 (part 6) - Allow percentage values for 'word-spacing'. r=heycam.
...
--HG--
extra : rebase_source : b7220e3c156dfef451e79b2911fbba7dec93850d
2015-11-05 17:25:46 -08:00
Nicholas Nethercote
90b8e844aa
Bug 1038663 (part 5) - Change GetSpacingFlags(). r=heycam.
...
Again, this doesn't make sense in isolation, but it will make it easier to
allow for percentage word-spacing in a subsequent patch.
--HG--
extra : rebase_source : 5a120273b4191ae3ac9ae0532e56eb870558d4d6
2015-11-05 16:33:37 -08:00
Nicholas Nethercote
12d49e11b3
Bug 1038663 (part 4) - Inline StyleToCoord(). r=heycam.
...
This doesn't make much sense by itself, but one of the call sites will be
changed in a subsequent patch.
--HG--
extra : rebase_source : 7b3bb92e6e08137434f4abd56a3b423ca82e4b0e
2015-11-04 21:10:36 -08:00
Nicholas Nethercote
a6e88b52f4
Bug 1038663 (part 3) - Factor out space width computation. r=heycam.
...
This will be reused in a subsequent patch.
--HG--
extra : rebase_source : 67d14767298841dbe3f38d2f7a1c89dfcec122dd
2015-11-04 18:02:40 -08:00
Nicholas Nethercote
0edc52ad5a
Bug 1038663 (part 2) - Move GetFirstFontMetrics() up. r=heycam.
...
This is necessary for a subsequent patch.
--HG--
extra : rebase_source : 4d80215e1ee75105344db5d101cfa5d5d47ea33a
2015-11-04 18:02:20 -08:00
Jim Chen
498b10c3cb
Bug 1219833 - Respect composition underline color; r=masayuki
...
nsTextFrame didn't use the composition underline color if the
composition didn't have a foreground color defined. This patch makes it
use the underline color if foreground color is not defined.
2015-11-03 11:53:58 -05:00
Robert O'Callahan
00af2dcc78
Bug 264412. Optimize GetRenderedText. r=mats
...
With these changes we're slightly faster than Chrome on the non-reflowing part of
Olli's testcase.
--HG--
extra : commitid : 75liwqsBeJY
extra : rebase_source : 34ee5d1fdfbb3b9d2ef8945f78ded935debb9106
2015-10-30 19:22:33 +13:00
Robert O'Callahan
2d8cd33dc4
Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
...
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.
--HG--
extra : commitid : 42YjYQUaiwY
extra : rebase_source : 69d3a9c5086c116365a0488d1b4fc52fc6524196
2015-10-30 19:23:10 +13:00
Matt Woodrow
5ff40cc89c
Bug 1216851 - Allow flattening of opacity when it contains text. r=roc
...
--HG--
extra : rebase_source : 3861829d42298838eaa87912fa849b60b6f698e6
2015-10-23 11:22:45 +13:00
Carsten "Tomcat" Book
513d05c444
Backed out changeset 0e8e25c04938 (bug 1216851) for reftest failures
2015-10-29 13:52:29 +01:00
Matt Woodrow
bab116d797
Bug 1216851 - Allow flattening of opacity when it contains text. r=roc
...
--HG--
extra : rebase_source : 48b64c9ba86e89ae8d15ae05f7379fd518ca01b5
2015-10-23 11:22:45 +13:00
Jonathan Kew
c3830d77b0
Bug 1216427 - part 2 - Ensure mouse selection does not split up a Regional Indicator flag symbol. r=emk
2015-10-26 10:47:18 +00:00
Jonathan Kew
a48628058f
Bug 1216427 - part 1 - Ensure a character+VS sequence or a ligated Regional-Indicator flag symbol is deleted as a single unit when backspacing. r=emk
2015-10-26 10:47:16 +00:00
Robert O'Callahan
0e2b65352f
Revert incorrectly committed changes ab657569f554 and a396f4262479
...
--HG--
extra : commitid : IHQ60dccnSZ
extra : amend_source : 9302339fd951446a37909b31a1ccb56aff470325
2015-10-24 22:38:22 +13:00
Robert O'Callahan
ff38db98f3
Bug 264412. Refactor nsIFrame::GetRenderedText API to be more sane. r=mats,marcoz
...
The test changes here are to adjust for the fact that
nsTextFrame::GetRenderedText can now trim whitespace from the end of lines
that end in a hard line break.
--HG--
extra : commitid : Dn0U0KPLfbY
extra : rebase_source : 57a6ad2e3ba1f7ec6aef9b940d8facdbba7e9c91
2015-10-24 22:27:29 +13:00
Nicholas Nethercote
5957f4c9ae
Bug 1038663 (part 1) - Make nsStyleText::mWordSpacing an nsStyleCoord. r=heycam.
...
This makes mWordSpacing a lot more like mLetterSpacing, while maintaining the
existing "'normal' computes to 0px" behaviour.
--HG--
extra : rebase_source : d3273f60d4de6a9a0f05f1dbf2ed095f0f7e6c0e
2015-10-21 22:13:11 -07:00
Nathan Froyd
01583602a9
Bug 1207245 - part 6 - rename nsRefPtr<T> to RefPtr<T>; r=ehsan; a=Tomcat
...
The bulk of this commit was generated with a script, executed at the top
level of a typical source code checkout. The only non-machine-generated
part was modifying MFBT's moz.build to reflect the new naming.
CLOSED TREE makes big refactorings like this a piece of cake.
# The main substitution.
find . -name '*.cpp' -o -name '*.cc' -o -name '*.h' -o -name '*.mm' -o -name '*.idl'| \
xargs perl -p -i -e '
s/nsRefPtr\.h/RefPtr\.h/g; # handle includes
s/nsRefPtr ?</RefPtr</g; # handle declarations and variables
'
# Handle a special friend declaration in gfx/layers/AtomicRefCountedWithFinalize.h.
perl -p -i -e 's/::nsRefPtr;/::RefPtr;/' gfx/layers/AtomicRefCountedWithFinalize.h
# Handle nsRefPtr.h itself, a couple places that define constructors
# from nsRefPtr, and code generators specially. We do this here, rather
# than indiscriminantly s/nsRefPtr/RefPtr/, because that would rename
# things like nsRefPtrHashtable.
perl -p -i -e 's/nsRefPtr/RefPtr/g' \
mfbt/nsRefPtr.h \
xpcom/glue/nsCOMPtr.h \
xpcom/base/OwningNonNull.h \
ipc/ipdl/ipdl/lower.py \
ipc/ipdl/ipdl/builtin.py \
dom/bindings/Codegen.py \
python/lldbutils/lldbutils/utils.py
# In our indiscriminate substitution above, we renamed
# nsRefPtrGetterAddRefs, the class behind getter_AddRefs. Fix that up.
find . -name '*.cpp' -o -name '*.h' -o -name '*.idl' | \
xargs perl -p -i -e 's/nsRefPtrGetterAddRefs/RefPtrGetterAddRefs/g'
if [ -d .git ]; then
git mv mfbt/nsRefPtr.h mfbt/RefPtr.h
else
hg mv mfbt/nsRefPtr.h mfbt/RefPtr.h
fi
--HG--
rename : mfbt/nsRefPtr.h => mfbt/RefPtr.h
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
a37228e1fe
Bug 1207944 (part 4) - Use SetColor(const Color&) when setting from an nscolor. r=jwatt.
...
In various places SetColor() gets passed an nscolor. These are converted
(either implicitly or explicitly) to a gfxRBGA, and then to a gfx::Color.
This patch changes all these cases to avoid the middle step, by (a)
constructing a gfx::Color directly instead of an nscolor, or (b) by converting
an nscolor with Color::FromABGR().
--HG--
extra : rebase_source : ae423a422b37ada8ca0cb6f130350b4a71d58fc4
2015-09-23 23:41:30 -07:00
Jonathan Kew
a58c826891
Bug 1193519 pt 4 - Reverse the direction of text-decoration offsets in sideways-lr mode. r=dholbert
2015-09-24 10:23:34 +01:00
Jonathan Kew
558835b15e
Bug 1193519 pt 3 - Handle writing-mode:sideways-lr in nsTextFrame selection and rendering. r=dholbert
2015-09-24 10:23:34 +01:00
Nicholas Nethercote
6f036921dc
Bug 1203427 (part 1) - Add nsExpirationTracker::mName. r=froydnj.
...
There are many sub-classes of nsExpirationTracker. In order to distinguish them
nicely in the logging of timer firings, it's necessary to manually name each
one. (This wouldn't be necessary if there was a way to stringify template
parameters, but there isn't.)
--HG--
extra : rebase_source : 89b99e9dbb2a806bd21145d04a5e023794643b61
2015-09-09 21:07:07 -07:00
Masayuki Nakano
0882629f91
Bug 299603 part.5 nsTextFrame should use system foreground or background color when painting IME selections if whose style defines only one of foreground color or background color r=roc
2015-08-19 16:37:39 +09:00
Masayuki Nakano
f40421a26b
Bug 299603 part.4 Some global methods in nsTextFrame.cpp should be members of nsTextFrame class r=roc
2015-08-19 16:37:39 +09:00
Xidorn Quan
8c9c798a7f
Bug 1186721 - Suppress line break due to soft hyphen inside ruby. r=jfkthame
...
--HG--
extra : source : dfcc7df95f21d7b22705ebb24b9f693d70989167
2015-08-13 22:39:51 +10:00
CJ Ku
009a82453e
Bug 1061393 - Export display list info to layer scope viewer. r=kamidphish
2015-08-03 02:11:00 -04:00
Ted Clancy
0f306bbcf3
Bug 1180417 - Part 2: Fix failure in layout/base/crashtests/942690.html. r=smontagu
2015-07-17 18:29:28 -03:00
Ted Clancy
adde1f1a09
Bug 1180417 - Part 1: Put back optimizations for determining end of flow. r=smontagu
2015-07-17 18:29:25 -03:00
Cameron McCormack
d2c7d17fac
Bug 1057921 - Don't propagate text decorations through outer <svg> elements. r=dholbert
2015-07-15 14:41:06 +10:00
Tim Taubert
90b163c879
Bug 834830 - Add nsISelectionController.SELECTION_URLSTRIKEOUT to enable striking out parts of the URL in the URL bar r=roc
2015-07-08 15:45:21 +02:00
Daniel Holbert
cb57b1ad8c
Bug 1177925: Use range-based "for" loops for nsFrameList iteration, in various places in layout. r=tn
2015-06-29 13:02:21 -07:00
Masayuki Nakano
1b42eb60f1
Bug 1175789 Draw underline as overline when it's in vertical writing mode and the language is Japanese or Korean r=dbaron
2015-06-24 09:35:04 +09:00
Ted Clancy
35a963f9e9
Bug 1164693 - part 3: Exclude optimizations that don't apply to preformatted paragraphs. r=smontagu
2015-06-20 08:52:34 -07:00
Ted Clancy
20737c09c6
Bug 1067788 - Part 1: Don't invalidate bidi cursor directionality during a delete. r=smontagu
...
--HG--
extra : rebase_source : e7800dac174b1bd155dc2630a410f55eadef0f6b
2015-06-01 15:19:57 -04:00
Birunthan Mohanathas
470bd9148f
Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElements calls. r=froydnj
2015-05-28 11:07:43 -07:00
Xidorn Quan
21b619291a
Bug 1149009 - Suppress line break inside text frame if it is directly contained by ruby content box. r=dbaron
...
--HG--
extra : source : 27743ccd4b9be84847c7eb6590adcf96fb424999
2015-05-04 09:52:53 +12:00
Jonathan Kew
861e6a44ed
Bug 1157951 patch 2 - Make nsCharClipDisplayItem aware of vertical writing modes. r=roc
2015-04-29 08:18:53 +01:00
Jonathan Kew
ed4f94f6c0
Bug 1157951 patch 1 - Rename fields and variables in nsCharClipDisplayItem etc using VisIStart/End instead of left/right. r=roc
2015-04-29 08:18:53 +01:00
Jonathan Kew
cdd4e7ba24
Bug 1155261 - Fix computation of glyph extents and text-frame visual overflow for vertical text frames. r=smontagu
2015-04-27 09:45:55 +01:00
Jonathan Kew
577029853b
Bug 1154227 - Fix the painting of text-shadow in vertical writing modes. r=smontagu
2015-04-27 09:35:59 +01:00
Xidorn Quan
065df6bd63
Bug 1117227 part 3 - Make nsTextFrame::MeasureCharClippedText use frame isize instead of width. r=roc
...
--HG--
extra : source : 235e6a1f915ea38fd4dc9c966d3a619bca6b3e59
2015-04-24 10:15:32 +12:00
Xidorn Quan
b7d5622b6a
Bug 1153634 - Weaken the assertion condition to make it match the condition before. r=roc
...
--HG--
extra : source : 5c7523cabf470da3aa4b1a6434b9dbc7521c85f4
2015-04-14 09:11:28 +12:00
Jonathan Kew
0aaa1c57da
Bug 1146754 - Show selection highlighting for trailing space. r=mats
2015-04-01 14:45:16 +01:00
Mike Hommey
b077d9624d
Bug 1134920 - Use moz_xmalloc/moz_xrealloc/free instead of nsMemory::Alloc/Realloc/Free. r=nfroyd
2015-04-01 13:51:45 +09:00
Mats Palmgren
ed9ed2d61a
Bug 1148833 part 3 - Remove nsIFrame::WillReflow and add a non-virtual MarkInReflow method instead that sets NS_FRAME_IN_REFLOW. Call it at the start of Reflow(). r=roc
2015-03-29 22:38:40 +00:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00
Xidorn Quan
99e52bd419
Bug 1143558 part 2 - Convert suppressed line break to whitespace. r=roc
...
--HG--
extra : source : df417e029054082fdb07fdf918ce178e0e085bca
2015-03-17 19:10:15 +11:00
Xidorn Quan
25df7941eb
Bug 1143558 part 1 - Fix line break suppression when newline is significant. r=roc
...
--HG--
extra : source : c700ba786622769700d740c6761ca5a66879b761
2015-03-17 19:10:15 +11:00
Xidorn Quan
3bddba82c5
Bug 1141842 - Add LastOptionalBreakPriority to nsLineLayout to simplify some code. r=roc
...
--HG--
extra : source : 99f9967c5eef6b1d032ae0b3b778a06b28e21d07
2015-03-11 14:14:48 +11:00
Xidorn Quan
e89adacefb
Bug 1140264 part 3 - Rename IsInlineDescendantOfRuby to ShouldSuppressLineBreak and exclude rbc/rtc from it. r=dbaron
...
--HG--
extra : rebase_source : b782506792fd47e41c694a49fca3967282c96113
extra : source : 9836c81fe7d401432856491dc65c38b150e5e157
2015-03-11 10:28:21 +11:00
L. David Baron
10fa0b3d2f
Bug 1140486 patch 2 - Make nsTextFrame::UpdateOverflow include the visual overflow from the text metrics by calling existing RecomputeOverflow. r=jfkthame
...
UpdateOverflow and RecomputeOverflow need to remain two separate
functions since RecomputeOverflow is called from line layout, prior to
setting the overflow areas, whereas UpdateOverflow needs to reset the
overflow areas and (via its return value) propagate the change to
ancestors. However, they should share more code than they do today.
The only substantive (non-error-handling) change this is making is that
it's adding the MeasureText call, manipulation of the resulting
boundingBox, and inclusion of that bounding box in the visual overflow.
This is exactly the change that I'm trying to make in this bug.
It's also changing the error handling if EnsureTextRun returns null, but
I don't think we need to worry about that case much.
2015-03-07 12:27:36 -08:00
L. David Baron
0d0b0e8f2d
Bug 1140486 patch 1 - Pass block frame instead of block reflow state to nsTextFrame::RecomputeOverflow. r=jfkthame
...
This allows calling it from UpdateOverflow in patch 2.
2015-03-07 12:27:36 -08:00
Andrea Marchesini
3a19be88f5
Bug 1134280 - Get rid of Tag() - patch 2.7 - layout/generic - Fix all the occurrences, m=smaug, r=surkov
2015-03-03 11:09:00 +00:00
Andrea Marchesini
2c4f63331f
Bug 1134280 - Get rid of Tag() - patch 1 - Is{HTML,XUL,MathML,SVG}Element and IsAnyOf{HTML,XUL,MathML,SVG}Elements, r=smaug
2015-03-03 11:08:59 +00:00
Mats Palmgren
8c27917737
Bug 1134531 - Remove nsTextFrame::DidSetStyleContext which only contained a (now obsolete) wallpaper. r=heycam
2015-02-24 18:35:30 +00:00
Kartikaya Gupta
9aa660ca7b
Bug 990907 - Have DLBI pick up changes in the char-clip on text frames. r=mstange,mattwoodrow
2015-02-25 09:32:28 -05:00
Jonathan Watt
513fc5ff83
Bug 1135913, part 4 - Unify SVGTextFrame's NotifyBeforeSelectionDecorationLine and NotifySelectionDecorationLinePathEmitted callbacks. r=heycam
2015-02-04 13:51:22 +00:00
Jonathan Watt
9dd15de828
Bug 1135913, part 3 - Unify SVGTextFrame's NotifyBeforeDecorationLine and NotifyDecorationLinePathEmitted callbacks. r=heycam
2015-02-03 20:00:18 +00:00
Jonathan Watt
deaaf27b4e
Bug 1135913, part 2 - Separately handle non-selected and selected text. r=heycam
2015-02-03 19:36:15 +00:00
Jonathan Watt
05962ce5a4
Bug 1135913, part 1 - Simplify nsCSSRendering::DecorationLineToPath to not require a context. r=heycam
2015-02-03 14:34:14 +00:00
Xidorn Quan
582c62bbd6
Bug 1135432 - Suppress line break after text run which ends in ruby. r=jfkthame
...
--HG--
extra : source : 31da0b2e765e139be3c7fc69b77929323f53000e
2015-02-23 08:55:04 +11:00
Xidorn Quan
46ca97ae38
Bug 1133697 part 2 - Scan ruby texts instead of their container for building text run. r=roc
...
--HG--
extra : source : 2c39dfb432eea53185ed28c5790cf472bf09abf8
2015-02-18 17:20:02 +13:00
Xidorn Quan
860930550d
Bug 1133697 part 1 - Remove aForFrame check in BuildTextRuns. r=roc
...
The only caller of BuildTextRuns passes |this| as |aForFrame|, which must
never be nullptr, hence it's safe to remove the checks there.
--HG--
extra : source : 140bf27dd11cb63815bb558e4b8dc37dfc918132
2015-02-18 17:20:02 +13:00
Jonathan Kew
72a70e953a
Bug 1117210 - Snap text baselines to device pixels in vertical writing modes. r=smontagu
2015-02-11 10:59:06 +00:00
Carsten "Tomcat" Book
8970c6c9c6
Backed out changeset df2290db92d0 (bug 1117210) for breaking m5 tests on a CLOSED TREE
2015-02-11 11:28:19 +01:00
Jonathan Kew
1e4c538120
Bug 1117210 - Snap text baselines to device pixels in vertical writing modes. r=smontagu
2015-02-11 08:44:34 +00:00
Xidorn Quan
0005151f66
Bug 1089431 part 1 - Skip ruby text containers when building text runs. r=roc
...
--HG--
extra : rebase_source : cf1ef888f4af2406715a4a055241771b7f5904cc
extra : source : 2ed98b4ba9423ba9251e2a31507d3d345a603e3a
2015-02-11 10:26:56 +11:00
Cameron McCormack
af83082186
Bug 1067755 - Store relevant style data rather than style context pointers on transformed text runs. r=jdaggett
2015-02-10 21:30:25 +11:00
Carsten "Tomcat" Book
f760432a03
Backed out changeset cab2c930fa02 (bug 1067755) for static analysis build bustage
2015-02-10 11:15:33 +01:00
Cameron McCormack
40ade93e4b
Bug 1067755 - Store relevant style data rather than style context pointers on transformed text runs. r=jdaggett
2015-02-10 20:35:59 +11:00
Nicholas Nethercote
242708cf72
Bug 1127201 (attempt 2, part 1) - Replace most NS_ABORT_IF_FALSE calls with MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 488e401ff87e31a2074c4108c4df0572d9536667
2015-02-09 14:34:50 -08:00
Andrew McCreight
d3826daa16
Back out Bug 1127201 (part 2) for various problems.
2015-02-06 15:04:32 -08:00
Nicholas Nethercote
d34f0301b8
Bug 1127201 (part 2) - Convert all NS_ABORT_IF_FALSE calls to MOZ_ASSERT. r=Waldo.
...
--HG--
extra : rebase_source : 99182e70335d2b5ff95f8c528ae992d37294be3a
2015-02-04 20:05:36 -08:00
Seth Fowler
a271bba567
Bug 1128356 - Add template functions for common frame property destructors. r=dbaron
2015-02-04 15:22:27 -08:00
Jonathan Kew
323af42ff6
Bug 1128190 - Always use a mask to render shadows for color glyphs, regardless of blur radius. r=roc
2015-02-02 09:19:28 +00:00
Jonathan Watt
a923689db0
Bug 1127114, part 2 - Unify SVGTextFrame's NotifyBeforeSelectionBackground and NotifySelectionBackgroundPathEmitted callbacks. r=heycam
2015-01-27 16:32:24 +00:00
Jonathan Watt
de0a615af6
Bug 1127114, part 1 - Use typed rects for PaintSelectionBackground's arguments since the units are unexpected. r=heycam
2015-01-27 16:32:20 +00:00
Mats Palmgren
469969b044
Bug 1099110 - Add a runtime check before the downcast in BreakSink::SetCapitalization. r=jfkthame
2015-01-24 12:35:12 -05: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
Robert O'Callahan
94382f62b5
Bug 1099977. Part 3: Skip creating nsDisplayText when all glyphs are invisible. r=jfkthame
...
--HG--
extra : rebase_source : db9e1e149ea93be298c0515b792186168ccbb9f0
2014-11-18 23:23:46 +13:00
Robert O'Callahan
0c9928a13e
Bug 1099977. Part 2: Make gfxFont::Measure return an empty bounding-box when all glyphs are invisible. r=jfkthame
...
--HG--
extra : rebase_source : 41a9f586ef2992d96b789d6bd55daae18f15ed2f
2014-11-18 23:23:45 +13:00
Jonathan Kew
b77ae133f8
Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett
2014-12-22 16:35:54 +00:00
Xidorn Quan
61ff35b52e
Bug 1114792 - Rename nsStyleContext::IsDirectlyInsideRuby to IsInlineDescendantOfRuby. r=dbaron
...
--HG--
extra : rebase_source : c28b41828c7d02ab26803c583bae15a218a5da05
2014-12-31 16:39:43 +11:00
Xidorn Quan
a759fbf567
Bug 1108429 part 5 - Enable justification computation when there is ruby. r=roc
...
--HG--
extra : source : a70242f72a280e7f1ceab6b6fa4ece13bd807dee
2014-12-13 22:18:16 +11:00
Xidorn Quan
2331038635
Bug 1098272 part 1 - Suppress line breaks inside ruby boxes. r=dbaron,roc
...
--HG--
extra : rebase_source : 2e884fd15244a265011e3241be084c5a1c6fd66e
extra : source : 0ea7212c131401abff6a097773ae93cdfa05dcde
2014-12-22 15:17:55 +11:00
Jonathan Kew
18b2531efe
Bug 1106665 - Fix text-align:justify for vertical writing modes. r=smontagu
2014-12-02 20:29:29 -08:00
Xidorn Quan
c23c15eb67
Bug 1084183 - Propagate text decoration to ruby frames. r=dbaron
2014-11-26 15:53:18 +11:00
Simon Montagu
ad766a1fcb
Bug 1100071 patch 2: add macros for common tests whether bidi level is odd and whether two bidi levels have the same parity, r=dholbert
2014-11-20 12:45:22 +02:00
Phil Ringnalda
5cdbb8940e
Backed out 2 changesets (bug 1084183) for b2g crashes
...
Backed out changeset a7e75614e955 (bug 1084183)
Backed out changeset af96c149900b (bug 1084183)
2014-11-16 20:21:55 -08:00
Xidorn Quan
06a84fbe4a
Bug 1084183 - Propagate text decoration to ruby frames. r=dbaron
2014-11-17 10:26:39 +11:00
Xidorn Quan
ef58484437
Bug 1096152 - Use frame instead of content to track break position. r=dbaron
...
--HG--
extra : amend_source : efab3508002471ed24c629d13985bca4fe4a1376
2014-11-14 16:41:14 +11:00
Jonathan Kew
34fea182cd
Bug 1093553 - Improve handling of line-height metrics, block ascent, etc., in vertical writing mode. r=smontagu
2014-11-13 08:58:06 +00:00
Jonathan Kew
257b729bc8
Bug 1090159 - Correct baseline alignment in vertical-rl writing mode. r=smontagu
2014-11-13 08:58:05 +00:00
Jonathan Kew
e1255310b1
Bug 1091058 - Fix positioning of text-decoration lines in vertical writing mode. r=smontagu
2014-11-13 08:58:05 +00:00
Ryan VanderMeulen
8d432fef90
Backed out changesets 857063c82323 and a19479860eb4 (bug 619521) for Valgrind failures.
...
CLOSED TREE
2014-11-11 13:10:56 -05:00
Jonathan Kew
fce2d16101
Bug 619521 - Part 1: Send a notification of any scripts for which font coverage is lacking. r=jdaggett
2014-11-07 06:32:00 -05:00
Jonathan Kew
8412cec73a
Bug 1096260 - Convert flags parameter of nsIFrame::ComputeSize from uint32_t to a typed enum, and update callers accordingly. r=dholbert
2014-11-11 11:02:41 +00:00
Xidorn Quan
a85f3a113d
Bug 1063857 - Implement new justification algorithm. r=roc,masayuki
2014-11-10 12:25:17 +11:00
Xidorn Quan
08641f507e
Bug 1063857 - Improve selecting on justified characters. r=roc
2014-11-10 12:25:09 +11:00
James Kitchener
391052cbf2
Bug 1002526 - Part 3 - MathMLTextRunFactory needs to now about font inflation. r=roc
2014-11-05 11:58:00 +01:00
Xidorn Quan [:xidorn]
81efa1ff0f
Bug 1085311 - Vertical writing-mode support for single-line <input> fields. r=jfkthame
2014-11-04 15:45:00 +01:00
Carsten "Tomcat" Book
2032c5061a
Backed out changeset 53d51e7fbb9e (bug 1063857) for Android Reftest Failures
2014-11-04 10:59:46 +01:00
Xidorn Quan
6ce2bfc5f9
Bug 1063857 - Implement new justification algorithm. r=roc,masayuki
2014-11-02 15:07:00 +01:00
Jonathan Watt
bf49eb7f25
Bug 651021 - Make nsRenderingContext a stack class. r=jrmuizel
2014-10-31 20:08:49 +00:00
L. David Baron
7577be8e4f
Bug 1090626 - Rename result of IsChineseOrJapanese from isCJK to isCJ, to avoid misleading, since it does not include Korean. r=jdaggett
...
Note that the name inside of IsJustifiableCharacter is already correct.
2014-10-30 11:27:45 -07:00
Jonathan Watt
b6106b43d2
Bug 1085529, part 2 - Port nsCSSRendering::PaintDecorationLine() to Moz2D. r=mattwoodrow
2014-10-26 01:15:26 +01:00
Jonathan Watt
a0f005a778
Bug 1088625, part 1 - Add lots of missing nsFontMetrics.h and gfxTextRun.h includes
2014-10-24 16:28:14 +01:00
Simon Montagu
5c79483958
Bug 1062963 patch 1: Logical coordinates in nsLineLayout:ReflowFrame and CanPlaceFrame. r=jfkthame
2014-10-21 15:16:11 -07:00
Phil Ringnalda
b2eb743d9b
Backed out 4 changesets (bug 1062963, bug 1079139) for failures in 427129-table-caption.html in b2g reftest-6 and Android 2.3 reftest-5
...
Backed out changeset a9672db96a5d (bug 1079139)
Backed out changeset 241c23570a62 (bug 1062963)
Backed out changeset 90172cc0b012 (bug 1062963)
Backed out changeset 71211c4a4acc (bug 1062963)
2014-10-19 18:44:16 -07:00
Simon Montagu
ec5af204d9
Bug 1062963 patch 1: Logical coordinates in nsLineLayout:ReflowFrame and CanPlaceFrame. r=jfkthame
2014-10-19 12:32:16 -07:00
Jonathan Kew
0e773b6fc0
Bug 1081867 - Convert textrun metrics to physical coordinates before merging with visual-overflow region. r=smontagu
2014-10-16 09:40:19 +01:00
Carsten "Tomcat" Book
a20685ff2b
Backed out changeset 1abddb50ed34 (bug 1081867) for bustage on a CLOSED TREE
2014-10-16 11:42:11 +02:00
Jonathan Kew
1428512193
Bug 1081867 - Convert textrun metrics to physical coordinates before merging with visual-overflow region. r=smontagu
2014-10-16 09:40:19 +01:00
Mats Palmgren
fb7998f8f4
Bug 1076918. r=dbaron
2014-10-11 22:59:00 -07:00
Jonathan Kew
84369a0e27
Bug 1074735 pt 2 - Support drawing CSS text decorations (underline, overline, strikeout) on vertical text frames. r=smontagu
2014-10-08 10:32:55 +01:00
Carsten "Tomcat" Book
18d99025c1
Backed out changeset 32c4d5043b18 (bug 1074735)
2014-10-08 13:06:51 +02:00
Jonathan Kew
45724811c5
Bug 1074735 pt 2 - Support drawing CSS text decorations (underline, overline, strikeout) on vertical text frames. r=smontagu
2014-10-08 10:32:55 +01:00
Ehsan Akhgari
ee4122c03a
Bug 1079324 - Fix some more bad implicit constructors in layout; r=dholbert
2014-09-24 09:16:53 -04:00
Jonathan Kew
244c38ec06
Bug 1077371 - Remove unnecessary null-checks on the result of gfxFontGroup::GetFirstValidFont. r=jdaggett
2014-10-06 15:14:49 +01:00
Jonathan Kew
1bb9114d8c
Bug 1077139 - Use the vertical-text I-beam cursor when the writing mode is vertical. r=dbaron
2014-10-03 13:47:26 +01:00
Jonathan Kew
668168cb49
Bug 902762 pt 7 - Draw caret appropriately for vertical textruns. r=smontagu
2014-10-01 20:25:50 +01:00
Jonathan Kew
2d08dc1f72
Bug 902762 pt 6 - Handle vertical textruns for mouse click in nsTextFrame. r=smontagu
2014-10-01 20:25:50 +01:00
Jonathan Kew
01ab03b8da
Bug 902762 pt 5 - Handle vertical textruns when painting text in nsTextFrame. r=smontagu
2014-10-01 20:25:49 +01:00
Jonathan Kew
c5e1a54d59
Bug 1065002 pt 1.3 - Add an Orientation parameter to gfxFont::GetMetrics and dispatch to horizontal or vertical as needed. r=jdaggett
2014-09-30 07:38:26 +01:00
James Kitchener
8caa56278b
Bug 1069929 - Apply dtls font feature setting for <mover> elements. r=roc
2014-09-24 04:38:00 -04:00
John Daggett
3570b54018
Bug 998869 part 2 - switch to GetFontAt(0) to GetFirstValidFont(). r=jfkthame
2014-09-25 12:16:53 +09:00
Jonathan Kew
03067bd966
Bug 1072348 - Make IsJustifiableCharacter recognize Plane 2 ideographs. r=roc
2014-09-24 18:11:02 +01:00
Georg Fritzsche
83f0c5bfb7
Bug 1067989 - Unify some more binary search uses. r=waldo
2014-09-17 15:46:24 +02:00
Jonathan Kew
50b0ff2a5d
bug 1066043 - split gfxFont.cpp and .h into more manageably-sized pieces. r=jdaggett
...
--HG--
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxFontEntry.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxFontEntry.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxGlyphExtents.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxGlyphExtents.h
rename : gfx/thebes/gfxFont.cpp => gfx/thebes/gfxTextRun.cpp
rename : gfx/thebes/gfxFont.h => gfx/thebes/gfxTextRun.h
2014-09-16 10:58:12 +01:00
Jonathan Kew
7b32611a01
Bug 1066756 - Include characters with Unicode category Sk (modifier symbol) in double-click word selection. r=mats
2014-09-15 17:19:24 +01:00
Matt Woodrow
050a6eabe8
Bug 1059033 - Part 6: Clip text drawing to its bound so we can skip unaffected tiles. r=Bas
...
--HG--
extra : rebase_source : 60d0462767f625d91261b40b930ee165f0126173
2014-09-03 09:21:20 +12:00
Phil Ringnalda
e63feb3849
Backed out 8 changesets (bug 982338, bug 1057212, bug 1059033) for build bustage
...
CLOSED TREE
Backed out changeset 4df1bd30364d (bug 982338)
Backed out changeset b68664a02904 (bug 1057212)
Backed out changeset 07b3695aa02f (bug 1059033)
Backed out changeset bb3885b57d48 (bug 1059033)
Backed out changeset 76897f52ac2c (bug 1059033)
Backed out changeset 31e89a2a409f (bug 1059033)
Backed out changeset 8e81f6f74182 (bug 1059033)
Backed out changeset c5bbf22f2f28 (bug 1059033)
2014-09-01 18:07:57 -07:00
Matt Woodrow
02a310c375
Bug 1059033 - Part 6: Clip text drawing to its bound so we can skip unaffected tiles. r=Bas
...
--HG--
extra : rebase_source : 4b59eb902062940e7d3f262fa0ef661a5f0e9ded
2014-09-02 12:35:40 +12:00
Jonathan Kew
4572da3eb7
bug 1048899 - don't end ::first-letter in the middle of a ligature for Indic and SEAsian scripts. r=smontagu
2014-09-01 21:08:52 +01:00
Matt Woodrow
75354456c5
Bug 1059033 - Backout part 6 for causing reftest failures
2014-09-01 16:58:04 +12:00
Ehsan Akhgari
60360fc645
Bug 1060985 - Fix more bad implicit constructors in layout; r=roc
2014-08-31 23:36:37 -04:00
Matt Woodrow
98c3f2d992
Bug 1059033 - Part 6: Clip text drawing to its bound so we can skip unaffected tiles. r=Bas
2014-09-01 15:23:29 +12:00
James Kitchener
b2fb4cec97
Bug 1043358 - Fix up font caching in MathMLTextRunFactory. r=roc
2014-08-22 03:48:00 -04:00
Jonathan Kew
a5a5cf98e5
bug 1046950 pt 2 - convert ComputeSize to use logical-coordinate parameters. r=smontagu
2014-08-24 15:34:44 +01:00
Robert O'Callahan
41cde90a7c
Bug 1054161. Don't build display items for text with alpha=0. r=dbaron
...
--HG--
extra : rebase_source : 869a05a652a3bc6e8e122d34fb166ed9fbbdaa5c
2014-08-23 00:08:12 +12:00
Robert O'Callahan
2489dc1f01
Bug 1048752. Part 16: Move nsFrameSelection::HINT to CaretAssociationHint.h. r=tn
...
This patch started an attempt to remove nsFrameSelection.h from nsCaret.h
and metastasized into a rather large refactoring patch that removed it
from some other header files as well, and changed nsFrameSelection::HINT
into a global-scope enum with better names. I also converted bools
into CaretAssociationHint in a few places where that was appropriate,
but there are still some more places (GetChildFrameContainingOffset)
where bools need to be converted. I figured this patch was big enough already.
--HG--
extra : rebase_source : cc618ef60e707e1360644340a2648de389383da0
2014-08-06 17:19:27 +12:00
Susanna Bowen
c622b18e05
Bug 1030993 - Fix assertion failure in reftest css-ruby/ruby-whitespace-1.html. r=dbaron
...
Fixes the assertion failure with text:
"###!!! ASSERTION: Wrong line container
hint: '!aForFrame || (aLineContainer == FindLineContainer(aForFrame) ||
aLineContainer->GetType() == nsGkAtoms::rubyTextContainerFrame ||
(aLineContainer->GetType() == nsGkAtoms::letterFrame &&
aLineContainer->IsFloating()))', file
/home/sgbowen/builds/mozilla-central/layout/generic/nsTextFrame.cpp, line 1259"
which occasionally appears when opening pages with ruby or when running ruby
reftests.
Updates the manifest for ruby reftests to the current expectations (adjust
assertion counts, etc.)
2014-08-15 10:34:20 -07:00
Susanna Bowen
779f8cef59
Bug 1030993 - Basic reflow implementation for ruby frame classes. r=dbaron
...
To account for spacing between bases or text boxes during reflow, the line
layout which manages the bases updates its inline direction coordinate based on
the preferred inline size for the corresponding text boxes. Next, the base is
reflowed at the correct inline coordinate. Each paired text box is then also
reflowed at the proper inline position determined by (1) the current position of
its corresponding base and (2) its own preferred width.
In computing intrinsic widths, accounting for spacing is less complicated. The
minimum intrinsic width is the width of the widest ruby column, and the
preferred intrinsic width is the sum of all the ruby column widths. Each ruby
column width is the maximum width of its base box and text boxes. These
individual widths are determined using GetPrefISize on the base and text boxes.
Ruby base container frames store a list of pointers to the ruby text container
frames in the segment they denote. This list of pointers is created in the ruby
frame reflow method before calling the reflow method for the ruby base
container. The list exists and is used only during reflow of the main ruby frame
and is cleared before returning from reflow.
2014-08-15 10:34:20 -07:00
Morris Tseng
221cfc87b5
Bug 1024930 - Change text highlighting color. r=roc
2014-07-28 02:13:00 +02:00
Jonathan Kew
55170c430a
bug 1031241 pt 3 - Also rename Intrinsic{Width,Height} to Intrinsic{I,B}Size. r=smontagu
2014-07-24 18:03:26 +01:00
Jonathan Kew
8b67cdf704
bug 1031241 pt 2 - More renaming, e.g. where {Min,Pref}Width occurs within longer type and function names. r=smontagu
2014-07-24 18:03:25 +01:00
Jonathan Kew
ce9cbe4216
bug 1031241 pt 1 - Rename Get{Min,Pref}Width to Get{Min,Pref}ISize throughout layout. r=dbaron,smontagu
2014-07-24 18:03:25 +01:00
Simon Montagu
18c9f2f61a
Bug 789096 patch 10: make Reflow set nsHTMLReflowMetrics.ISize and BSize instead of Width and Height. r=jfkthame
2014-07-24 01:30:07 -07:00
James Kitchener
612aae5f53
Bug 1027354 - Fix fontweight and fontstyle on single char <mi>. r=roc
2014-06-25 05:20:00 -04:00
Chris Peterson
3097778100
Bug 1027486 - Make nsTextFrame::UpdateOverflow bail if it has no block ancestor (fixing -Wsometimes-uninitialized warning). r=dholbert
2014-06-18 21:23:21 -07: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
Simon Montagu
aaa4878ee5
Replace GetBaseline with GetLogicalBaseline and use logical coordinates in the line position and baseline getters in nsLayoutUtils. Bug 789096, r=jfkthame
2014-06-17 05:19:38 -07: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
Simon Montagu
ca20e365ef
Replace Get/SetTopAscent with Get/SetBlockStartAscent. Bug 789096, r=jfkthame
2014-06-11 02:45:31 -07:00
Cameron McCormack
8311e3a117
Bug 1019555 - Treat newlines and tabs as space characters in SVG xml:space="preserve" text. r=roc
2014-06-05 13:25:15 +10:00
Victor Porof
9ce7e9c089
Bug 1007203 - Always add categories when pushing to the pseudostack, r=djvj
2014-05-23 17:12:29 -04:00
Robert O'Callahan
755b99f4f6
Bug 1014252. Optimize clearing of textruns via RemoveInFlows. r=matspal
...
We're keeping the core idea that, before we remove the frames-to-be-destroyed
from the continuation chain, their textruns need to be disconnected/destroyed.
However, nsContinuingTextFrame::DestroyFrom tries to optimize when the
destroying frames that aren't mentioned in the userdata for the textrun, and
certain other conditions are met; we need a similar optimization here. It's
simpler here because the other conditions are definitely met, since all the
text for the frames being deleted has already been consumed and reflowed by
previous frames.
We don't need the TEXT_STYLE_MATCHES_PREV_CONTINUATION state bit anymore
because nsContinuingTextFrame::DestroyFrom will never see any textruns when
called via RemoveEmptyInFlows.
--HG--
extra : rebase_source : 6544f923499ef604d48ec15961716549dd25d279
2014-05-28 15:39:25 +12:00
Jonathan Kew
181a74e5b2
bug 1015603 part 6 - remove nsFontVariantTextRunFactory from layout, leaving gfx to handle small-caps. r=roc
2014-05-26 14:23:32 +01:00
Mats Palmgren
0d14b4f2ec
Bug 508665 - part 8, Move child frame insertion/removal methods from nsIFrame to nsContainerFrame. r=roc
2014-05-24 22:20:40 +00:00
Mats Palmgren
399be41768
Bug 508665 - part 5, Make nsIFrame::Init require a nsContainerFrame* for the parent frame param. r=roc
2014-05-24 22:20:40 +00:00
Mats Palmgren
9795aca511
Bug 1008917 - part 2,3,4, make Reflow() return type 'void', and make a few reflow related helper methods 'void' too. r=roc
2014-05-13 00:47:52 +00:00
Wes Kocher
42253715d7
Backed out 11 changesets (bug 1008917) for apparently introducing an intermittent failure of B2G Crashtest-2 on a CLOSED TREE
...
Backed out changeset e2ab653f688a (bug 1008917)
Backed out changeset b52154d8d900 (bug 1008917)
Backed out changeset 2ab5b01da4de (bug 1008917)
Backed out changeset f7a38df1d44f (bug 1008917)
Backed out changeset 80304bb9a572 (bug 1008917)
Backed out changeset 10ed89a302e9 (bug 1008917)
Backed out changeset 161c41991d46 (bug 1008917)
Backed out changeset 25b2475d2368 (bug 1008917)
Backed out changeset b8000b31277c (bug 1008917)
Backed out changeset 9afa5e7715e1 (bug 1008917)
Backed out changeset 5c380c21351f (bug 1008917)
2014-05-12 15:47:41 -07:00
Mats Palmgren
a722b491f1
Bug 1008917 - part 2,3,4, make Reflow() return type 'void', and make a few reflow related helper methods 'void' too. r=roc
2014-05-12 17:40:28 +00:00
Benoit Jacob
60d536773a
Bug 1004098 - Make nsTArray use size_t in its interface (32bitness is fine as an internal detail) - r=froydnj, sr=bsmedberg
2014-05-08 21:03:35 -04:00
Ehsan Akhgari
2ecbad7b1c
Bug 491863 - Remove IBMBIDI; r=roc
2014-04-23 21:15:29 -04:00
Daniel Holbert
61204d781b
Bug 996351: Rename nsPresShell::GetReferenceRenderingContext() to CreateReferenceRenderingContext(), to reduce implication of fallibility. r=roc
2014-04-14 21:30:25 -07:00
Daniel Holbert
c3055e4c5c
Bug 996319: Drop always-null arg from nsTextFrame.cpp's static helper-function "GetReferenceRenderingContext". r=jdaggett
2014-04-14 17:45:39 -07:00
John Daggett
8174f98f22
Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron
2014-04-08 14:13:28 +09:00
Jonathan Kew
b0f64ce1f9
bug 617008 - avoid creating a rendering context that we may not need. r=roc
2014-03-31 11:53:09 +01:00
Gorman Ho
2f3c5ba795
Bug 983285 - Add a generic destructor for property values allocated with new. r=kats, r=bz
2014-03-25 09:25:47 -04:00
Carsten "Tomcat" Book
894f58f359
Backed out changeset 1d12ab8bf5fe (bug 950526) for android reftest failures on a CLOSED TREE
2014-03-20 10:00:24 +01:00
John Daggett
e0eba55dd1
Bug 950526 - don't dump textruns within nsTextFrame::DidSetStyleContext. r=dbaron
2014-03-20 14:43:29 +08:00
Tom Hindle
f68ff3f78a
Bug 970363 - Make PeekOffset* methods return continue reason. r=roc
2014-03-13 08:14:37 -06:00
L. David Baron
3ad78c87f5
Bug 349259 patch 1: Add an nsIContent* parameter to nsHTMLReflowState::CalcLineHeight. r=bz
2014-03-12 20:33:21 -07:00
Simon Montagu
2110ef8dc6
Use logical text layout API in nsLineLayout. Bug 789096, r=jfkthame
2014-03-11 13:23:50 -07:00
Carsten "Tomcat" Book
b99f5df532
Backed out changeset aeff4052ef00 (bug 789096)
2014-03-11 09:22:52 +01:00