Commit Graph

6158 Commits

Author SHA1 Message Date
Ehsan Akhgari
309b4049b4 Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Jonathan Kew
a74d73b0b4 Bug 1110181 - Move mTextOrientation to the nsStyleVisibility struct to avoid potential recursive dependency in nsStyleText. r=dbaron 2014-12-11 18:56:19 +00:00
Josh Aas
6141b5290e Bug 1092630: Get rid of native widgets for OS X NPAPI plugins, make things work much better under e10s. Patch by Josh Aas, Markus Stange, Steven Michaud, David Parks. r=smichaud/jst/josh (more reviews pending) 2014-12-11 08:44:07 -06:00
Simon Montagu
903c64a2be Bug 1105137: treat nsFloatManager's mOrigin as an offset, not a point, and rename it to mOffset to make that clearer, r=jfkthame 2014-12-11 03:56:03 -08:00
Jonathan Kew
228750646b Bug 1108923 - Update comments to reflect the newly logicalized parameters. r=smontagu 2014-12-11 11:16:22 +00:00
Jonathan Kew
3066d88ace Bug 1108923 - Use the correct containing box dimension as the percent basis for margin/padding in vertical writing modes. r=smontagu 2014-12-11 11:16:22 +00:00
Seth Fowler
f72476fa91 Bug 1106252 - Make nsImageFrame's icon loading code more robust. r=tn 2014-12-10 18:42:37 -08:00
Xidorn Quan
a30dbf98be (no bug) Add comment to clarify the reason of using UniquePtr in nsRubyBaseContainerFrame::Reflow. DONTBUILD, comment-only
--HG--
extra : rebase_source : b886f8cb9d0fb104e6a52267213b5afa19de8d08
extra : amend_source : 6c455e8f22ef1ecc58a0f3fe54327d964de85ecb
2014-12-11 11:24:53 +11:00
Ehsan Akhgari
82c69d955e Bug 1109705 - Fix more bad implicit constructors in layout; r=roc 2014-12-10 17:47:09 -05:00
Jonathan Kew
7f8b81dd2f Bug 1108277 - part 2 - Make Get{Min,Pref}ISize in video and plugin frames aware of vertical writing mode. r=smontagu 2014-12-09 14:00:51 +00:00
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