Commit Graph

10898 Commits

Author SHA1 Message Date
Cameron McCormack
0d6e5754f9 Bug 1083134 - Part 3: Add functions to WritingMode to convert between logical and physical sides. r=jfkthame 2015-01-17 15:22:51 +11:00
L. David Baron
a8c1becff0 Bug 1121738 - Ruby base container frames should not support CSS transforms. r=xidorn
Following bug 1055667 patch 5, nsRubyBaseContainerFrame is the only ruby
frame type with this bug.  It should not support CSS transforms given
the spec wording in
http://dev.w3.org/csswg/css-transforms/#transformable-element
2015-01-15 15:07:50 -08:00
Xidorn Quan
b6f10f748e Bug 1055667 part 6 - Fix border/padding of ruby frame. r=dbaron
--HG--
extra : source : 42391b99e060a7b3c4e281ce2a4fda77cb3e4efc
2015-01-15 20:02:11 +11:00
Xidorn Quan
e2198398db Bug 1055667 part 5 - Make nsRubyFrame inherit nsInlineFrame. r=dbaron
--HG--
extra : source : 2ebca66c36f692cf29cbeb1eb64c6760bb75847c
2015-01-15 20:02:11 +11:00
Xidorn Quan
801d76bf4e Bug 1055667 part 3 - Suppress border/padding space on rbc/rtc frames. r=dbaron
--HG--
extra : source : 5025e0967ab9f189bb07af307733fcddcf90eb35
2015-01-15 20:02:11 +11:00
Xidorn Quan
1bf1df7b1e Bug 1055667 part 2 - Remove unnecessary param of SetBSizeFromFontMetrics. r=dbaron
--HG--
extra : source : aa79c8cebf3e2ab0fd4335eaa3c630a43dbe81f2
2015-01-15 20:02:11 +11:00
Xidorn Quan
60d4f4ddf2 Bug 1055667 part 1 - Allow inline direction margin of ruby base/text boxes. r=dbaron
--HG--
extra : source : 55f6a4607daa265757528e7a94f5ba6c9b6d773a
2015-01-15 20:02:11 +11: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
Daniel Holbert
73ee83551b Bug 1058954 followup: reorder crashtest.list to preserve numerical order. (no review, test manifest only) 2015-01-14 15:53:07 -08:00
Mats Palmgren
3676a45518 Bug 1009282 - [css-grid] Add primitive support for implicit named areas. r=dholbert 2015-01-14 21:59:59 +00:00
David Anderson
02248cee29 Fix classic scrollbars getting occluded with containerless scrolling. (bug 1100756, r=roc)
--HG--
extra : rebase_source : fcf95ab0c435d9c29a6a3552fe05d7f1ad3bc0ec
2015-01-13 23:55:17 -08:00
Daniel Holbert
df61000207 Bug 1121256: Remove commented-out debugging printfs from 1998, in nsSubDocumentFrame::Reflow. (comment-only, no review, DONTBUILD) 2015-01-13 16:30:32 -08:00
Mats Palmgren
dd1166614c Bug 1116714 part 0 - Iterate forward instead, to avoid depending on undefined integer behavior. r=roc 2015-01-13 14:44:33 +00: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
Robert O'Callahan
94382f62b5 Bug 1099977. Part 3: Skip creating nsDisplayText when all glyphs are invisible. r=jfkthame
--HG--
extra : rebase_source : db9e1e149ea93be298c0515b792186168ccbb9f0
2014-11-18 23:23:46 +13:00
Robert O'Callahan
0c9928a13e Bug 1099977. Part 2: Make gfxFont::Measure return an empty bounding-box when all glyphs are invisible. r=jfkthame
--HG--
extra : rebase_source : 41a9f586ef2992d96b789d6bd55daae18f15ed2f
2014-11-18 23:23:45 +13:00
Jonathan Kew
f194052f6a Bug 1119770 - Remove the compile-time switch to enable/disable vertical writing mode support. r=smontagu 2015-01-12 20:55:52 +00:00
Nigel Babu
053a7d3408 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
6ba35e648b Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 27e60ddbd077439dadd09641ab54fc7eef09c69f
2015-01-12 14:31:55 +11:00
Xidorn Quan
c5346caa22 Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : 3b6cece1b466a724983927329c56dc1d9555b09a
2015-01-12 14:31:55 +11:00
Xidorn Quan
c7dcc6e79f Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : aa1e52e91dd5ae6fdcdc6ca17bd9ec2a0b946f2b
2015-01-12 14:31:55 +11:00
Robert O'Callahan
0cdcaa1f30 Bug 1119117. Don't clip nsDisplayOpacity items, since some of its descendants maybe should not be clipped with the nsDisplayOpacity clip. r=mattwoodrow
--HG--
extra : rebase_source : 50ab1923ad5150197128a0862db2af96dfd41658
2015-01-11 00:12:33 +13:00
L. David Baron
ce6e3ca667 Revert one of the assertion additions in Bug 1110277 patch 3 since it fires, causing orange. r=orange
Example stack, from editor/libeditor/tests/browserscope/test_richtext2.html :

###!!! ASSERTION: should only call on first continuation/ib-sibling: 'nsLayoutUtils::IsFirstContinuationOrIBSplitSibling(this)', file /builds/slave/m-in-l64-d-0000000000000000000/build/src/layout/base/../generic/nsIFrame.h, line 875
#01: AdjustAppendParentForAfterContent [layout/base/nsCSSFrameConstructor.cpp:6059]
#02: nsCSSFrameConstructor::ContentAppended(nsIContent*, nsIContent*, bool) [layout/base/nsCSSFrameConstructor.cpp:7155]
#03: PresShell::ContentAppended(nsIDocument*, nsIContent*, nsIContent*, int) [layout/base/nsPresShell.cpp:4520]
#04: nsNodeUtils::ContentAppended(nsIContent*, nsIContent*, int) [dom/base/nsNodeUtils.cpp:132]
#05: nsINode::doInsertChildAt(nsIContent*, unsigned int, bool, nsAttrAndChildArray&) [dom/base/nsINode.cpp:1544]
#06: nsINode::ReplaceOrInsertBefore(bool, nsINode*, nsINode*, mozilla::ErrorResult&) [dom/base/nsINode.cpp:2209]
#07: mozilla::dom::NodeBinding::appendChild [obj-firefox/dom/bindings/NodeBinding.cpp:600]
2015-01-11 16:58:42 -08:00
L. David Baron
ffe839138c Bug 1110277 patch 3 - Look for the GenConPseudos() property on the first continuation/ib-split so that we can find it when looking for the ::after frame. r=bzbarsky
The change to GetAfterFrameForContent prevents the reframe that is part
of the chain of events leading to this bug, and thus fixes the bug on
its own.  The change to GetBeforeFrameForContent seems desirable for
symmetry.

Note that patch 6 also independently fixes the reported bug.

This probably needs somewhat careful review.  We should examine:

 (1) what the rules for calling nsLayoutUtils::GetBeforeFrame and
     nsLayoutUtils::GetAfterFrame are, and whether both (or neither)
     need to be patched.

 (2) What the rules are for which frame the GenConProperty() lives on,
     and whether we should adjust nsIFrame::GetGenConPseudos() to either
     do something more intelligent, or assert about callers.

(We should probably clean up some of these things in a followup bug.)

Since the symptom of this bug is (once patch 4 is in the tree) only
causing extra reframes, it can only be tested using the new API (from
bug 1115691) for observing reframes.  I confirmed that the test for this
bug fails without the patch and passes with the patch (as noted by the
removal of its todo annotation).

This patch fixes the assertion on layout/generic/crashtests/600100.xhtml,
though I haven't investigated why.
2015-01-11 15:43:11 -08:00
L. David Baron
2c4447faf5 Bug 1115691 patch 1 - Store counts of frames constructed and reflowed on the pres context. r=roc
(I've tested the frame construction counts in my test for bug 1110277; I
haven't actually tested the reflow counts.)
2015-01-11 15:43:10 -08:00
Ms2ger
03307562df Backed out changeset f5a5f7463224 (bug 1119117) 2015-01-10 20:23:06 +01:00
Robert O'Callahan
fe1567ad0c Bug 1119117. Don't clip nsDisplayOpacity items, since some of its descendants maybe should not be clipped with the nsDisplayOpacity clip. r=mattwoodrow
--HG--
extra : rebase_source : d8fbb70e8745a185142430dc341a5fa0146f5532
2015-01-11 00:12:33 +13:00
William Chen
35698aefb1 Bug 1118764 - Don't distribute anonymous root content in shadow DOM. r=bz 2015-01-08 13:49:51 -08:00
Ryan VanderMeulen
9a378a0290 Merge inbound to m-c. a=merge 2015-01-09 14:45:50 -05:00
Carsten "Tomcat" Book
3fcd5e68f5 Merge mozilla-central to b2g-inbound 2015-01-09 15:54:18 +01:00
Fernando Jimenez Moreno
c4551483eb Bug 1101029 - Overlay iframe on top of front-most app. r=roc, sicking 2015-01-09 09:55:18 +01:00
Kartikaya Gupta
2f7d3e0456 Bug 1117828 - When building event regions for a pseudo-stacking context, use the child frame instead of the parent. r=roc 2015-01-09 10:12:35 -05:00
Carsten "Tomcat" Book
4b471b2953 Backed out changeset 68d2b24c9351 (bug 1055658) for Reftest Failures 2015-01-08 16:08:58 +01:00
Carsten "Tomcat" Book
a2b93bb8fa Backed out changeset f4e02295ff1f (bug 1055658) 2015-01-08 16:08:37 +01:00
Carsten "Tomcat" Book
9b09e9d3fb Backed out changeset 2ee5068037f2 (bug 1055658) 2015-01-08 16:08:33 +01:00
Ehsan Akhgari
4354953b4f Bug 1118486 - Part 1: Use = delete instead of MOZ_DELETE directly; r=Waldo
Most of this patch (with the exception of dom/bindings/Codegen.py) was
generated by the following bash script:

#!/bin/bash

function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
       ! -wholename "*security/nss*" \
       ! -wholename "*/.hg*" \
       ! -wholename "*/.git*" \
       ! -wholename "obj-*" \
         -type f \
      \( -iname "*.cpp" \
         -o -iname "*.h" \
         -o -iname "*.cc" \
         -o -iname "*.idl" \
         -o -iname "*.ipdl" \
         -o -iname "*.ipdlh" \
         -o -iname "*.mm" \) | \
    xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}

convert MOZ_DELETE '= delete'
2015-01-08 23:19:05 -05:00
Xidorn Quan
cd8f0da1f4 Bug 1055658 part 4 - Revert RubyReflowState. r=dbaron
--HG--
extra : source : 4ee892ec7dde8957aa733401bfd7746a97ebcf7e
2015-01-08 23:20:16 +11:00
Xidorn Quan
d5ce9a9dff Bug 1055658 part 2 - Add relative positioning support for ruby annotations. r=dbaron
--HG--
extra : source : 19d8bb736510b1f162aba3df5d2a6b851ea705de
2015-01-08 23:20:16 +11:00
Xidorn Quan
e3f325b307 Bug 1055658 part 1 - Move code for applying relative position to an independent method. r=dbaron
--HG--
extra : source : 30aa25e2233135e3c4792f406af6d2cdc055758c
2015-01-08 23:20:16 +11:00
Simon Montagu
32d27c84d2 Bug 1063471: finish off converting nsBlockReflowContext to logical coordinates (comment-only change), r=jfkthame 2015-01-08 02:10:24 -08:00
Xidorn Quan
8beb2f4821 Bug 1099807 part 4 - Fix line breaking around ruby intra-level whitespaces. r=dholbert
--HG--
extra : source : f6ebe9d9c7c863b18497e3c326f4486c5837a163
2015-01-08 18:28:09 +11:00
Xidorn Quan
a7ba233d21 Bug 1099807 part 3 - Use specific frame type in RubyColumn. r=dholbert
--HG--
extra : source : 0d78d1c0d10d9b5e32c0843a258d29e12f1369c4
2015-01-08 18:28:09 +11:00
Xidorn Quan
5f3951012f Bug 1099807 part 2 - Implement intra-level whitespace pairing. r=dholbert
Line breaking is not handled properly in this patch.
It would be fixed in the part 4.

--HG--
extra : source : 49c457bbcd3a55f7ee65b007d50dd2884c7158af
2015-01-08 18:28:09 +11:00
Xidorn Quan
e20ab8cabf Bug 1099807 part 1 - Add common superclass for ruby base and ruby text. r=dholbert
--HG--
extra : source : 9dd5b0a847a1d698589c14e9dde5ced195eed646
2015-01-08 18:28:09 +11:00
Xidorn Quan
bfb0d2cc6e Bug 1069519 part 2 - Make line height calculation be aware of ruby annotations. r=dholbert
--HG--
extra : source : e8c8f94afde330276b5d907520d93da10e8f998c
2015-01-08 16:02:41 +11:00
Botond Ballo
9f93609fd6 Bug 1076241 - Add an API for setting a resolution on a document and scaling it by that amount. r=kats,tn 2015-01-02 20:06:14 -05:00