Commit Graph

621 Commits

Author SHA1 Message Date
Xidorn Quan
20e40d505a Bug 1040668 part 11 - Move line leadings adjusting code into a separate function in nsLineLayout. r=dholbert
--HG--
extra : source : f4d53f54b2e925eef8da6c6749497888527057bb
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
Nicholas Nethercote
f07dc1c47b Bug 1059014 (part 1) - Remove support for max line box width. r=dbaron.
This basically reverts bug 780258.

--HG--
extra : rebase_source : 59cc458d83fed9735e9e0321ec52a0a9484bd7ba
2015-11-04 20:25:01 -08: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
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
Mats Palmgren
73b1279e0e Bug 1174553 part 3 - [css-grid] Implement the 'min-content' / 'max-content' sizing functions in layout. r=dholbert 2015-09-04 22:06:57 +02:00
Jonathan Kew
4e6c40d7ea Bug 1131451 part 1 - Replace containerWidth with containerSize in logical-coordinate classes and APIs, frame classes, etc. r=dholbert 2015-07-16 10:07:57 +01:00
Eric Rahm
61b43b582d Bug 1173858 - Part 3 - Reindent blocks that we've converted to use LAYOUT_WARN_IF_FALSE. r=dholbert 2015-06-15 16:36:12 -07:00
Eric Rahm
efa4d9e28e Bug 1173858 - Part 2: Use LAYOUT_WARN_IF_FALSE to silence some verbose layout warnings by default. r=dholbert 2015-06-15 16:36:11 -07:00
Xidorn Quan
354ce89430 Bug 1146117 - Downgrade the assertion in FindNearestRubyBaseAncestor to warning. r=dbaron
--HG--
extra : rebase_source : 78c752476816abd7f783f55a230b9b6e31f1d455
extra : source : 4bac31d169fb4b05a1e3c4842fcb5cd5e47d8677
2015-04-20 15:04:09 +12:00
Jonathan Kew
5e4b54b22c Bug 1156021 - Use containing block inline-size (as appropriate for writing mode) to compute text-indent when specified as percentage. r=dbaron 2015-04-19 19:03:27 +01:00
Xidorn Quan
25da0b552a Bug 1141931 patch 10 - Revert to pass container size instead of only isize for bidi reordering. r=smontagu
--HG--
extra : source : 85a623e012b8deb2a41dc2e633a41223727bfe50
2015-04-08 11:22:34 +12:00
Xidorn Quan
ddd0a788fa Bug 1141931 part 5 - Eliminate unnecessary includes in header files of ruby frames. r=dholbert
--HG--
extra : source : 860c66b5f319ed0744decf84c8c2145efd85ce83
2015-04-08 11:22:34 +12:00
Xidorn Quan
e581fcaf13 Bug 1141931 part 3 - Adjust some parameters of functions in nsBidiPresUtils. r=jfkthame
Includes two changes:
* aContainerSize of ReorderFrames, RepositionInlineFrames, RepositionFrame are changed to aContainerISize;
* the type of aContainuationStates in the functions above is changed to const pointer.

--HG--
extra : source : 41336b712d88a843b15015321cae9f878aa08427
2015-04-08 11:22:34 +12:00
Wes Kocher
74f58c915e Backed out 10 changesets (bug 1141931) for mochitest-5 failures CLOSED TREE
Backed out changeset c90940067de6 (bug 1141931)
Backed out changeset 96b48288abab (bug 1141931)
Backed out changeset 87281c7ded34 (bug 1141931)
Backed out changeset 6a914ba0b8ec (bug 1141931)
Backed out changeset 9cfea55b5e95 (bug 1141931)
Backed out changeset f432612b6475 (bug 1141931)
Backed out changeset 48cf9568a4b1 (bug 1141931)
Backed out changeset f1ab848b3fa6 (bug 1141931)
Backed out changeset 8a3c71a3b525 (bug 1141931)
Backed out changeset 119d3c0fd0f6 (bug 1141931)
2015-04-07 14:23:57 -07:00
Xidorn Quan
ff332f3d74 Bug 1141931 patch 10 - Revert to pass container size instead of only isize for bidi reordering. r=smontagu
--HG--
extra : source : 999cbb6740648762984e57d5ce764499381ccd5b
2015-04-08 08:40:31 +12:00
Xidorn Quan
27d78f6b41 Bug 1141931 part 5 - Eliminate unnecessary includes in header files of ruby frames. r=dholbert
--HG--
extra : source : 860c66b5f319ed0744decf84c8c2145efd85ce83
2015-04-08 08:40:31 +12:00
Xidorn Quan
8a3d0926c5 Bug 1141931 part 3 - Adjust some parameters of functions in nsBidiPresUtils. r=jfkthame
Includes two changes:
* aContainerSize of ReorderFrames, RepositionInlineFrames, RepositionFrame are changed to aContainerISize;
* the type of aContainuationStates in the functions above is changed to const pointer.

--HG--
extra : source : 41336b712d88a843b15015321cae9f878aa08427
2015-04-08 08:40:31 +12: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
Jonathan Kew
cbbd8efccc Bug 1133945 - Fix behavior of vertical-align with a specified length, relative to dominant centered baseline in vertical mode. r=smontagu 2015-03-26 12:34:57 +00:00
Simon Montagu
13be932c72 Bug 1143218 patch 3: a better fix for bug 1105137 using line-left and line-right to place floats, r=jfkthame 2015-03-22 11:44:48 +02:00
Simon Montagu
4454a1b4b5 Bug 1143218 patch 1: Back out the fix for bug 1105137, r=jfkthame 2015-03-22 11:44:48 +02:00
Jonathan Kew
382e4487fa Bug 1141928 part 2 - Correct the position of ruby text frames. r=roc
--HG--
extra : source : 914513f894ef001ff8fc593cd36f5e702d49f184
2015-03-14 16:46:33 +11:00
Xidorn Quan
b5c74cb24b Bug 1141928 part 1 - Correct the position of ruby text containers in RTL text. r=jfkthame
This patch uses the logical version of FinishReflowChild instead, so that we are able to keep the consistent logical rect, and then fix the rect with correct container width after the whole line is reflowed.

--HG--
extra : source : e944e283799cd04b87c1ed52a3fca68174bf4439
2015-03-14 16:46:33 +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
Xidorn Quan
8d078dffee Bug 1140264 part 1 - Avoid expanding auto-hidden ruby annotations. r=dbaron
This could sometimes cause undesired overflow area.

--HG--
extra : rebase_source : e06898d983a9c49a7332e4be5649142ffa49eb24
extra : source : 59cffbcfda7e6d8167ff663c9c7da133fbf95346
2015-03-11 10:28:21 +11:00
Jonathan Kew
f5b4780e94 Bug 1138495 - pt 1 - Rename NS_FRAME_IN_CONSTRAINED_HEIGHT flag to NS_FRAME_IN_CONSTRAINED_BSIZE, and set it appropriately according to writing mode. r=smontagu 2015-03-10 14:28:23 +00: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
Xidorn Quan
543cbfa069 Bug 1138092 - Add sanity check before checking ruby-align in TextAlignLine. r=dbaron
--HG--
extra : source : a799c7cadf0dbb3efccee3076987acdc0fdabc79
2015-03-04 13:04:11 +11:00
Jonathan Kew
6d037e9793 Bug 1136521 - Don't try to use the ascent when placing a frame whose block-direction doesn't match the line's. r=smontagu 2015-03-03 16:39:45 +00:00
Jonathan Kew
32df2d8718 Bug 1138353 - Correct the directionality of vertical-align dimensions in cases where line- and flow-relative coordinate directions differ. r=smontagu 2015-03-03 12:25:17 +00: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
Xidorn Quan
728e9e7a08 Bug 1135361 - Fix position of ruby annotation in vertical-rl mode when justification is applied to the base. r=jfkthame
--HG--
extra : source : 9e051be10b37ed8c189bcae17fe8cb95b490d661
2015-02-24 14:46:29 +11:00
Xidorn Quan
a5435b8759 Bug 1134783 - Fix ruby-align problem on annotation when it has different align with its base. r=roc
--HG--
extra : source : 01382cc28e956490cb6b69d430ad1ac12c7a27b2
2015-02-20 13:45:49 +13:00
Xidorn Quan
3ae70c4475 Bug 1134206 part 2 - Reset zeroEffectiveSpanBox when ruby adjust the line spacing. r=roc
--HG--
extra : source : 62abc49c38c25c3b0e00558b5eacc46c32470487
2015-02-19 22:39:19 +13:00
Xidorn Quan
5b4a640a88 Bug 1134206 part 1 - Remove mZeroEffectiveSpanBox flag from PerSpanData. r=roc
--HG--
extra : source : 63758b6ca39d69218c04b9ecb081a78ba2f87b2e
2015-02-19 22:39:19 +13:00
Xidorn Quan
af2bbac201 Bug 1133697 part 3 - Make ruby text frame not continue text run. r=roc
--HG--
extra : source : b9d1f775565347a2bc506b163b91b5c522e0a366
2015-02-18 17:20:02 +13:00
Xidorn Quan
08163561ed Bug 1055676 part 4 - Expand ruby boxes in respect of ruby-align. r=roc
--HG--
extra : source : b10ac646968af93ea53d8006a5fc5ccbdc358f45
2015-02-17 18:01:49 +13:00
Xidorn Quan
2701e5f8de Bug 1055676 part 3 - Adjust justification gap assigning algorithm for ruby-align. r=roc
--HG--
extra : source : 875a16b52371b7a3fad4fb1447abbf4a65d877e4
2015-02-17 18:01:49 +13:00
Xidorn Quan
6622361f7b Bug 1055676 part 2 - Move inter-frame justification assignment to an independent function. r=roc
--HG--
extra : source : 8e0084f1fcc9daba3780cbef92b73d6234ad5180
2015-02-17 18:01:49 +13:00
Xidorn Quan
c734dc18d4 Bug 1132008 part 3 - Remove unused code in nsLineLayout. r=dbaron
This code was originally introduced in bug 1055665 part 3.

--HG--
extra : source : a784dd2fe15b67f5e9f0ea380db1bfb6d65ad211
2015-02-17 14:25:18 +13:00
Xidorn Quan
63cd3802b6 Bug 1132008 part 2 - Sync bounds of <rt>s in line layout. r=dbaron
--HG--
extra : source : cd29b50ebcc6839c63acbaf9cab4893103967eda
2015-02-17 14:25:18 +13:00
L. David Baron
bada98f01b Bug 718157 - Fix dynamic changes of percentage text-indent when the parent's size changes and the element's size does not. r=jfkthame
This code needs to move out of PrepareResizeReflow() (and things that
trigger code in it) because PrepareResizeReflow is conditioned on the
block itself resizing.

The reftest is based on a test by Jesse Ruderman <jruderman@gmail.com>.

The reftest fails without the patch and passes with the patch.

--HG--
extra : transplant_source : %E9%5E%97zE%A4%60n%8C%DD%F8K-%01%F3fF%E8%C9K
2015-02-11 22:43:05 +11:00
Simon Montagu
9cdb41a6f4 Bug 1131013: when setting the position of inline frames in vertical writing modes with right-to-left direction, subtract the inline start from the container height to get the correct vertical position. r=jfkthame 2015-02-11 01:43:03 -08:00
Xidorn Quan
88bf1ccda8 Bug 1121684 - Move one-liners in nsLineLayout.cpp to the header. r=roc
--HG--
extra : source : 1d3128f4f31f9b4998dc09c130657d54e729bb20
extra : amend_source : 21d2320d6699aa6294a233cb515f226500f6879a
2015-01-15 15:52:27 +11:00
Xidorn Quan
a910edbc6b Bug 1115262 - Fix position of ruby annotation when writing mode is vertical-rl. r=jfkthame
--HG--
extra : source : ec2b2922a741fc5a62bc76c716529eda1b7fe5d0
extra : amend_source : 95bc6d9805f2c0cb9c4d76fcebb5defdd6c69660
2015-01-13 20:04:41 +11:00
Xidorn Quan
7969797ad3 Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 27e60ddbd077439dadd09641ab54fc7eef09c69f
2015-01-13 20:04:41 +11:00
Xidorn Quan
58446e500f Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : e15efc6ea7d8fd27cbb334fbab2ba85b0f6868dd
2015-01-13 20:04:41 +11:00
Xidorn Quan
109db9aef5 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : 7ba6cbbf02828b4d6d55bd056e92243423eab6d0
2015-01-13 20:04:41 +11:00
Xidorn Quan
60705d6a24 Bug 1120313 - Fix nested ruby inside ruby annotation. r=dbaron
--HG--
extra : source : ea44dcc7bf0e008d6669a00d107529a97ab1c84d
2015-01-13 15:14:46 +11:00