Commit Graph

662 Commits

Author SHA1 Message Date
Xidorn Quan
993eaf3a3e Bug 1146117 - Downgrade the assertion in FindNearestRubyBaseAncestor to warning. r=dbaron 2015-04-20 15:04:09 +12:00
Jonathan Kew
a03f04fc55 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
c2d16e1a52 Bug 1141931 patch 10 - Revert to pass container size instead of only isize for bidi reordering. r=smontagu 2015-04-08 11:22:34 +12:00
Xidorn Quan
dc1ae63caf Bug 1141931 part 5 - Eliminate unnecessary includes in header files of ruby frames. r=dholbert 2015-04-08 11:22:34 +12:00
Xidorn Quan
2f95496ebf 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.
2015-04-08 11:22:34 +12:00
Wes Kocher
95d8beba17 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
d01e57805b Bug 1141931 patch 10 - Revert to pass container size instead of only isize for bidi reordering. r=smontagu 2015-04-08 08:40:31 +12:00
Xidorn Quan
4ae13330f4 Bug 1141931 part 5 - Eliminate unnecessary includes in header files of ruby frames. r=dholbert 2015-04-08 08:40:31 +12:00
Xidorn Quan
c0df2fa76a 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.
2015-04-08 08:40:31 +12:00
Mats Palmgren
3f92be8fe8 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
26ec8c8447 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
91680250c8 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
158738f738 Bug 1143218 patch 1: Back out the fix for bug 1105137, r=jfkthame 2015-03-22 11:44:48 +02:00
Jonathan Kew
3548059c7a Bug 1141928 part 2 - Correct the position of ruby text frames. r=roc 2015-03-14 16:46:33 +11:00
Xidorn Quan
b1ff4c5e8a 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.
2015-03-14 16:46:33 +11:00
Xidorn Quan
63683132d2 Bug 1140264 part 3 - Rename IsInlineDescendantOfRuby to ShouldSuppressLineBreak and exclude rbc/rtc from it. r=dbaron 2015-03-11 10:28:21 +11:00
Xidorn Quan
f86dcc7d07 Bug 1140264 part 1 - Avoid expanding auto-hidden ruby annotations. r=dbaron
This could sometimes cause undesired overflow area.
2015-03-11 10:28:21 +11:00
Jonathan Kew
e8b0aaddab 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
4757323b8f 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
e695fbaef3 Bug 1138092 - Add sanity check before checking ruby-align in TextAlignLine. r=dbaron 2015-03-04 13:04:11 +11:00
Jonathan Kew
175b569363 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
27813aa864 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
40ecc85b89 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
ca2c06410b Bug 1135361 - Fix position of ruby annotation in vertical-rl mode when justification is applied to the base. r=jfkthame 2015-02-24 14:46:29 +11:00
Xidorn Quan
0dc1e4f42f Bug 1134783 - Fix ruby-align problem on annotation when it has different align with its base. r=roc 2015-02-20 13:45:49 +13:00
Xidorn Quan
8fc0bf096e Bug 1134206 part 2 - Reset zeroEffectiveSpanBox when ruby adjust the line spacing. r=roc 2015-02-19 22:39:19 +13:00
Xidorn Quan
b2d101e93b Bug 1134206 part 1 - Remove mZeroEffectiveSpanBox flag from PerSpanData. r=roc 2015-02-19 22:39:19 +13:00
Xidorn Quan
7caaa0049c Bug 1133697 part 3 - Make ruby text frame not continue text run. r=roc 2015-02-18 17:20:02 +13:00
Xidorn Quan
8d34df6896 Bug 1055676 part 4 - Expand ruby boxes in respect of ruby-align. r=roc 2015-02-17 18:01:49 +13:00
Xidorn Quan
e1755b0d84 Bug 1055676 part 3 - Adjust justification gap assigning algorithm for ruby-align. r=roc 2015-02-17 18:01:49 +13:00
Xidorn Quan
19159bd2a2 Bug 1055676 part 2 - Move inter-frame justification assignment to an independent function. r=roc 2015-02-17 18:01:49 +13:00
Xidorn Quan
12f34c58c5 Bug 1132008 part 3 - Remove unused code in nsLineLayout. r=dbaron
This code was originally introduced in bug 1055665 part 3.
2015-02-17 14:25:18 +13:00
Xidorn Quan
90e48a933c Bug 1132008 part 2 - Sync bounds of <rt>s in line layout. r=dbaron 2015-02-17 14:25:18 +13:00
L. David Baron
bd37fe09a6 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.
2015-02-11 22:43:05 +11:00
Simon Montagu
f9ca39cffa 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
11ba09d7e1 Bug 1121684 - Move one-liners in nsLineLayout.cpp to the header. r=roc 2015-01-15 15:52:27 +11:00
Xidorn Quan
18a293b76d Bug 1115262 - Fix position of ruby annotation when writing mode is vertical-rl. r=jfkthame 2015-01-13 20:04:41 +11:00
Xidorn Quan
0549a155fe Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron 2015-01-13 20:04:41 +11:00
Xidorn Quan
ddac03b9f3 Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron 2015-01-13 20:04:41 +11:00
Xidorn Quan
28553e1eb1 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron 2015-01-13 20:04:41 +11:00
Xidorn Quan
36c59f69fd Bug 1120313 - Fix nested ruby inside ruby annotation. r=dbaron 2015-01-13 15:14:46 +11:00
Nigel Babu
2492f633d1 Backed out 4 changesets (bug 1055658) for M5 bustage on a CLOSED TREE
Backed out changeset 3cbd9323c896 (bug 1055658)
Backed out changeset 99e071295c42 (bug 1055658)
Backed out changeset 55119d19e4c5 (bug 1055658)
Backed out changeset e82f640cb53f (bug 1055658)
2015-01-12 10:43:11 +05:30
Xidorn Quan
cdb8162daf Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron 2015-01-12 14:31:55 +11:00
Xidorn Quan
11018e292e Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron 2015-01-12 14:31:55 +11:00
Xidorn Quan
d830976b63 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron 2015-01-12 14:31:55 +11:00
Xidorn Quan
0f642d971e Bug 1069519 part 2 - Make line height calculation be aware of ruby annotations. r=dholbert 2015-01-08 16:02:41 +11:00
Simon Montagu
aba410ebbb Bug 1079154 patch 5: convert callers of ApplyRelativePosition, ReflowChild and FinishReflowChild in layout/generic to the logical versions, r=jfkthame 2015-01-06 23:10:07 -08:00
Xidorn Quan
084bf1de6a Bug 1117597 - Sync bounds of ruby annotation containers. r=roc 2015-01-07 12:47:09 +11:00
Xidorn Quan
bc60219a63 Bug 1116635 - Fix interaction between ruby alignment and trimmed whitespace. r=roc 2015-01-07 12:47:09 +11:00
Xidorn Quan
6e53ba9ae1 Bug 1116037 part 11 - Add RubyReflowState for sharing states between ruby level boxes. r=dbaron 2014-12-30 11:16:30 +11:00