Commit Graph

6148 Commits

Author SHA1 Message Date
Jonathan Kew
ede5aadd46 Bug 1108277 - part 1 - Make Get{Min,Pref}ISize for the <canvas> element aware of vertical writing mode. r=smontagu 2014-12-09 14:00:38 +00:00
David Anderson
fae21c73e9 Add scroll listeners to dispatch-to-content regions. (bug 1013432 part 5, r=tn)
--HG--
extra : rebase_source : babd42d9bdae722173821e800bc595fe662ee8f1
2014-12-09 02:38:23 -08:00
Kartikaya Gupta
f74d9fb16a Bug 1107606 - Ensure that setting a smooth scroll while APZ is enabled activates the layer. r=tn,kip 2014-12-05 00:04:39 -08:00
Jonathan Kew
9934f20290 Bug 1107617 - Add support for writing-mode to the NotifyIMESelection message. r=smaug 2014-12-04 18:15:43 -08:00
Mats Palmgren
cc699adde1 Bug 1107353 - Wallpaper a null-pointer crash in AsyncScrollCallback for now. r=kip 2014-12-04 21:26:26 +00:00
Jonathan Kew
53eb195edc Bug 1079157 - part 3 - Make nsColumnSetFrame support vertical writing mode. r=smontagu 2014-12-04 00:57:17 -08:00
Jonathan Kew
1f5d1bb95e Bug 1079157 - part 2 - Comment updates and whitespace cleanup only, no actual code changes. r=smontagu 2014-12-04 00:57:17 -08:00
Jonathan Kew
7a81ea4f80 Bug 1079157 - part 1 - Purely mechanical renaming of local variables and members in nsColumnSetFrame. r=smontagu 2014-12-04 00:57:16 -08:00
Jonathan Kew
ec77b231de Bug 1106665 - Fix text-align:justify for vertical writing modes. r=smontagu 2014-12-02 20:29:29 -08:00
Xidorn Quan
abf5a08d63 Bug 1093998 - Make nsContainerFrame::CreateNextInFlow return the new frame instead of using an our param. r=dbaron 2014-12-01 22:03:57 -08:00
Simon Montagu
cab503b677 Bug 1104711: short-circuit LogicalSize.ConvertTo when the source and target modes are non-orthogonal, r=jfkthame 2014-11-30 01:17:56 -08:00
Jonathan Kew
34daf13189 Bug 1106083 - Record the new containerWidth on lines when finalizing their placement in vertical-rl mode, so that they maintain their proper positioning during subsequent block-dir resize reflows. r=smontagu 2014-11-29 19:24:10 +00:00
Robert O'Callahan
73d7b5c382 Bug 1098266. Set correct visible rect on nsDisplayOpacity items that are shuffled around during preserve-3d display list wrapping. r=tn 2014-11-24 14:03:49 +13:00
Simon Montagu
6177d685f9 Bug 1105828 patch 2: Don't set UNCONSTRAINEDSIZE in an availSpace that we aren't going to use, r=jfkthame 2014-11-28 06:53:59 -08:00
Simon Montagu
7f8a3f672d Bug 1105828 patch 1: Avoid using UNCONSTRAINEDSIZE in CalculateBlockSideMargins, r=jfkthame 2014-11-28 06:53:57 -08:00
Jonathan Kew
30643d405b Bug 1077528 - part 2 - Make nsBlockFrame consider resize flags logically instead of physically. r=smontagu 2014-11-28 09:44:05 +00:00
Jonathan Kew
d994d76e63 Bug 1077528 - part 1 - Provide physical and logical accessors for the m{HV}Resize flags in nsHTMLReflowState, and convert all flag users to the accessor methods. r=smontagu 2014-11-28 09:44:02 +00:00
Jonathan Kew
b88614c9df Bug 1105268 - part 1 - Fix the logical/physical confusion with min- and max- dimensions in nsFrame::ComputeSize(). r=smontagu 2014-11-27 15:01:11 +00:00
Daniel Holbert
d42a5085ca Bug 1103184 part 1: Honor "object-fit" & "object-position" on <canvas> element. r=roc 2014-11-26 19:43:36 -08:00
Ryan VanderMeulen
1ac5f2eafb Merge inbound to m-c. a=merge 2014-11-26 20:34:29 -05:00
Daniel Holbert
01b4aefdc8 Bug 1104354: Give nsHTMLCanvasFrame its own GetIntrinsicSize() impl. r=mats 2014-11-26 11:29:49 -08:00
Jonathan Kew
dec8059ab6 Bug 1096224 - part 2 - Fix writing mode mismatch in margin calculation in PlaceBlock. r=smontagu 2014-11-26 10:24:16 +00:00
Jonathan Kew
ea96a6ec95 Bug 1096224 - part 1 - CalculateBlockSideMargins should be working in the containing block's writing mode. r=smontagu 2014-11-26 10:24:16 +00:00
Kartikaya Gupta
5e8fc6ac8a Bug 1104809 - When building display lists for non-stacking children don't discard the event regions. r=mstange,tn 2014-11-25 17:05:58 -05:00
Kartikaya Gupta
d7b95978c4 Bug 1104266 - Avoid needless temporary nsACString. r=mattwoodrow 2014-11-25 08:45:19 -05:00
Seth Fowler
04a7d19f79 Bug 1102617 - Replace imgIContainer::FrameIsOpaque with imgIContainer::IsOpaque. r=tn 2014-11-24 23:42:43 -08:00
Xidorn Quan
6bb73d843e Bug 1084183 - Propagate text decoration to ruby frames. r=dbaron 2014-11-26 15:53:18 +11:00
Xidorn Quan
6630d62d23 Bug 1052924 - Implement basic line breaking for ruby. r=dbaron
Known problem:
It would cause infinite loop if there is any line break happens inside
ruby base or annotation, or the width of container is not enough for
the widest pair/span. This might be fixed in bug 1098272.
2014-11-26 15:52:50 +11:00
Xidorn Quan
8f69ef5bb9 Bug 1052924 - Separate reflow code. r=dbaron 2014-11-26 15:52:50 +11:00
Xidorn Quan
8bba85f237 Bug 1052924 - Give rbc & rtc correct position. r=dbaron
Important changes:
  * Use line layout to reflow ruby base container
2014-11-26 15:52:49 +11:00
Xidorn Quan
48fadfdbea Bug 1052924 - Resolve some warnings. r=dbaron
Important changes:
  * Change base class of nsRuby{Base,Text}Frame to nsInlineFrame
  * Make ComputeSize of nsRubyFrame and nsRubyBaseContainerFrame behavior like inline frames
2014-11-26 15:52:49 +11:00
Xidorn Quan
17090fbd22 Bug 1052924 - Rewrite reflow code. r=dbaron
Important changes:
  * Avoid using GetPrefISize on the ruby texts in
    nsRubyBaseContainerFrame::Reflow, since the size it produces might
    not match the size produced by Reflow.  The old code calls that on
    all the ruby texts to determine how big they are, then reflows all
    the ruby bases, and then reflows all the ruby texts.  The new code
    instead processes one pair at a time, and for each pair reflows the
    ruby texts and then the ruby base.
  * Change the base class of nsRubyTextContainerFrame from nsBlockFrame
    to nsContainerFrame, and stop constructing an nsBlockReflowState for
    its reflow.
  * Move the code for reflowing ruby texts from nsRubyTextContainerFrame
    and to nsRubyBaseContainerFrame.
  * Fix the regression that ruby text containers contain span are not
    reflowed properly. It is the regression introduced in patch 0.

Known regression:
  * This patch drops centering ruby base and annotation in pairs. This
    should be fixed in bug 1055676 (ruby-align).
2014-11-26 15:52:49 +11:00
Xidorn Quan
9aed5ee8d8 Bug 1052924 - Add assertion and comments pointing out that ruby base container frames do not have an mBlockRS, but that's OK since they are never the containing block for floats. r=dbaron 2014-11-26 15:52:49 +11:00
Xidorn Quan
6d2a367524 Bug 1052924 - Treat ruby text containers as inline elements for the purposes of finding a font inflation container so that ruby text gets the same font inflation as its ruby bases. r=dbaron 2014-11-26 15:52:48 +11:00
Xidorn Quan
282ad86772 Bug 1052924 - Use unified enumerators to simplify code. r=dbaron 2014-11-26 15:52:48 +11:00
Xidorn Quan
372c0c78b4 Bug 1052924 - Rewrite pref isize and min isize computation. r=dbaron
Known regression:
This patch changes AppendTextContainer, and put aside text containers
which contain spanning annotations. This changes makes those text
containers not be reflowed by the current code. It will be fixed in
some later patch.
2014-11-26 15:52:48 +11:00
Daniel Holbert
0d96282234 Bug 1098417 part 2: Make nsImageFrame pass "object-position"-determined anchor-point to DrawSingleImage. r=seth 2014-11-25 16:46:14 -08:00
Daniel Holbert
8b2fb3bb07 Bug 1093316 part 1: Backout changeset aece7f9f944c (i.e. backout bug 1032922 part 2), to reflect CSSWG removing "flex-basis: main-size" from the flexbox spec. 2014-11-25 11:28:15 -08:00
Daniel Holbert
458eb7d18f Bug 624647 followup: Minor cleanup in nsVideoFrame::BuildLayer(); restore a local variable which shouldn't have been removed. (no review)
An earlier patch for this bug (changeset 466d3ff030e6) removed local variable
"nsRect area", but then ended up effectively re-creating it further down in the
function as "contentBoxRect". (I added contentBoxRect as a late-breaking
change, as part of addressing a review comment.)

I've now realized that contentBoxRect is the same rect as "area", and it's
simpler to just declare the original "area" rect at the function's start
instead of dynamically creating it further down.

(Not requesting review, since this is a no-functional-change tweak, which is
following up on a change that I'd made in response to review feedback on a r+'d
patch.)
2014-11-25 15:40:02 -08:00
Jonathan Kew
2f6d38133c Bug 1103613 - Use better inline-size for an orthogonal flow within a block of specified dimensions. r=smontagu 2014-11-24 21:44:06 +00:00
Mats Palmgren
267069c3ab Bug 1102791 - Always return NS_FRAME_COMPLETE status from nsHTMLButtonControlFrame::Reflow. Don't create overflow container continuations unless the delegating frame has eCanContainOverflowContainers. r=roc 2014-11-24 16:42:31 +00:00
Jonathan Watt
cf91ac7a84 Bug 1103623 - Port most remaining gfxContext::Fill() calls to Moz2D. r=mattwoodrow 2014-11-24 00:04:33 +00:00
Jonathan Watt
fa445c5397 Bug 1101571 - List-style discs are all wobbly during vertical transitions. r=mattwoodrow 2014-11-21 15:48:05 +00:00
Bob Clary
96b7a29c5f Bug 622596 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
53c0f0a7f0 Bug 472957 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
1ff34e013f Bug 430991 - crashtest. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
f6eccb6d6c Bug 429960 - crashtests. 2014-11-23 15:09:51 +00:00
Jesse Ruderman
dab89ac890 Bug 429458 - crashtest. 2014-11-23 15:09:50 +00:00
Jonathan Kew
479949c885 Bug 1077515 - part 6 - Create a new nsISelectionController::PhysicalMove command. r=roc 2014-11-22 14:39:03 +00:00
Jonathan Kew
8faf68508f Bug 1077515 - part 3 - Change desiredX (nscoord) to desiredPos (nsPoint) in nsPeekOffsetStruct, to support maintaining either vertical or horizontal position on inter-line moves. r=roc 2014-11-22 14:39:03 +00:00