Robert O'Callahan
884728e2c1
Bug 1221043. Revert to including trailing whitespace for accessibility APIs. r=marcoz,mats
2015-12-01 02:21:25 +13:00
L. David Baron
6ef55cfb63
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.)
2015-11-30 14:02:25 -08:00
Carsten "Tomcat" Book
6667066ec5
Backed out changeset 6c478d7a9467 (bug 1228501)
2015-11-30 12:10:37 +01:00
L. David Baron
1fdf2bf7dd
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.)
2015-11-29 23:15:02 -08:00
Xidorn Quan
40e248e972
Bug 1040668 part 14 - Add helper function nsStyleUtil::MatchesLanguagePrefix for doing simple language matching. r=dbaron
2015-11-28 11:56:33 +11:00
Xidorn Quan
c477ee820a
Bug 1040668 part 10 - Implement emphasis mark rendering. r=jfkthame
2015-11-28 11:56:33 +11:00
Xidorn Quan
3653752afd
Bug 1040668 part 9 - Compute overflow from text-shadow after text decorations. r=dbaron
2015-11-28 11:56:33 +11:00
Xidorn Quan
2f77396581
Bug 1040668 part 8 - Setup text emphasis for text run. r=jfkthame
2015-11-28 11:56:33 +11:00
Ting-Yu Lin
c6c490e067
Bug 1226875 - Remove nsIFrame::GetFirstChild(). r=mats
2015-11-26 17:12:39 +08:00
Xidorn Quan
81957d8bcb
Bug 1227001 part 3 - Remove no longer used mChangedBreaks from BreakSink. r=jfkthame
2015-11-24 10:23:05 +11:00
Xidorn Quan
32098e9c64
Bug 1227001 part 2 - Remove no longer used mExistingTextRun from BreakSink. r=jfkthame
2015-11-24 10:23:05 +11:00
Xidorn Quan
fecd22dd91
Bug 1227001 part 1 - Remove SetupBreakSinksFlags from BuildTextRunsScanner. r=jfkthame
2015-11-24 10:23:05 +11:00
Jonathan Kew
6382809727
Bug 1224230 - Explicitly store the lineContainer's writing mode in InlineIntrinsicISizeData. r=dbaron
2015-11-14 08:46:11 +00:00
Nicholas Nethercote
ccf19ed69c
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.
2015-11-08 20:19:00 -08:00
Simon Montagu
58a831f2bb
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
e1d2f44f23
Bug 1038663 (part 6, attempt 2) - Allow percentage values for 'word-spacing'. r=heycam.
2015-11-08 16:40:37 -08:00
Nicholas Nethercote
72d4c05707
Bug 1038663 (part 5, attempt 2) - Change GetSpacingFlags(). r=heycam.
2015-11-08 14:49:02 -08:00
Nicholas Nethercote
8fc4bb2082
Bug 1038663 (part 4, attempt 2) - Inline StyleToCoord(). r=heycam.
2015-11-08 14:49:02 -08:00
Nicholas Nethercote
04a6cdefa0
Bug 1038663 (part 3, attempt 2) - Factor out space width computation. r=heycam.
2015-11-08 14:48:58 -08:00
Nicholas Nethercote
7d210758ee
Bug 1038663 (part 2, attempt 2) - Move GetFirstFontMetrics() up. r=heycam.
2015-11-08 13:52:58 -08:00
Nigel Babu
b5f9a51ba9
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
ffd3c374b7
Bug 1038663 (part 6) - Allow percentage values for 'word-spacing'. r=heycam.
2015-11-05 17:25:46 -08:00
Nicholas Nethercote
dd68dc05ae
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.
2015-11-05 16:33:37 -08:00
Nicholas Nethercote
d74826c11a
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.
2015-11-04 21:10:36 -08:00
Nicholas Nethercote
894f3c51ba
Bug 1038663 (part 3) - Factor out space width computation. r=heycam.
...
This will be reused in a subsequent patch.
2015-11-04 18:02:40 -08:00
Nicholas Nethercote
a64f843399
Bug 1038663 (part 2) - Move GetFirstFontMetrics() up. r=heycam.
...
This is necessary for a subsequent patch.
2015-11-04 18:02:20 -08:00
Jim Chen
f076c50483
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
ea3babe9f6
Bug 264412. Optimize GetRenderedText. r=mats
...
With these changes we're slightly faster than Chrome on the non-reflowing part of
Olli's testcase.
2015-10-30 19:22:33 +13:00
Robert O'Callahan
c9cf62c475
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.
2015-10-30 19:23:10 +13:00
Matt Woodrow
afe8dd0b94
Bug 1216851 - Allow flattening of opacity when it contains text. r=roc
2015-10-23 11:22:45 +13:00
Carsten "Tomcat" Book
00ce481644
Backed out changeset 0e8e25c04938 (bug 1216851) for reftest failures
2015-10-29 13:52:29 +01:00
Matt Woodrow
d343ae2196
Bug 1216851 - Allow flattening of opacity when it contains text. r=roc
2015-10-23 11:22:45 +13:00
Jonathan Kew
7407253cb8
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
2b2811e250
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
37b74104b6
Revert incorrectly committed changes ab657569f554 and a396f4262479
2015-10-24 22:38:22 +13:00
Robert O'Callahan
162b00750e
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.
2015-10-24 22:27:29 +13:00
Nicholas Nethercote
b5e1e5998d
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.
2015-10-21 22:13:11 -07:00
Nathan Froyd
e4e2da55c9
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
2015-10-18 01:24:48 -04:00
Nicholas Nethercote
7be9d28dde
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().
2015-09-23 23:41:30 -07:00
Jonathan Kew
a244425aaf
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
427bb40573
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
cae6e9971a
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.)
2015-09-09 21:07:07 -07:00
Masayuki Nakano
533f7dc32f
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
79e109ca66
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
9417f42819
Bug 1186721 - Suppress line break due to soft hyphen inside ruby. r=jfkthame
2015-08-13 22:39:51 +10:00
CJ Ku
0c07d120c9
Bug 1061393 - Export display list info to layer scope viewer. r=kamidphish
2015-08-03 02:11:00 -04:00
Ted Clancy
f312455bc0
Bug 1180417 - Part 2: Fix failure in layout/base/crashtests/942690.html. r=smontagu
2015-07-17 18:29:28 -03:00
Ted Clancy
a96721bc8f
Bug 1180417 - Part 1: Put back optimizations for determining end of flow. r=smontagu
2015-07-17 18:29:25 -03:00
Cameron McCormack
41cdb1e7f1
Bug 1057921 - Don't propagate text decorations through outer <svg> elements. r=dholbert
2015-07-15 14:41:06 +10:00
Tim Taubert
95e395f64a
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