Carsten "Tomcat" Book
f6885163cd
Merge mozilla-central to mozilla-inbound
2017-03-08 14:28:34 +01:00
Florian Quèze
9d62681259
Bug 1345253 - Use element.firstChild.remove() instead of element.removeChild(element.firstChild), r=jaws.
2017-03-08 10:17:52 +01:00
Boris Zbarsky
f12067d36e
Bug 1343078 part 7. Make placeholders a non-inheriting anon box. r=dbaron
...
MozReview-Commit-ID: 3kQQroDRlr8
--HG--
extra : rebase_source : 6b1c8e0c1f287532badedb50439e415f97a4cf81
2017-03-08 00:18:40 -05:00
Boris Zbarsky
33ec5ffb9e
Bug 1343078 part 6. Change nsFrame::CorrectStyleParentFrame to return null if we're dealing with a non-inheriting anon box. r=dbaron
...
MozReview-Commit-ID: In9U54Wsjnz
--HG--
extra : rebase_source : 8425dea88af769da2a268f4128a3a7ebb1aace76
2017-03-08 00:18:39 -05:00
Boris Zbarsky
ca2ae1cf7a
Bug 1343078 part 1. Give placeholders and first-letter continuations different kinds of anonymous boxes. r=dbaron
...
MozReview-Commit-ID: B5IHgVUo1Rp
--HG--
extra : rebase_source : d7eab69a0dbcf0a460a249d843c5510a470b5a04
2017-03-08 00:18:32 -05:00
Daniel Holbert
a3fad2537b
Bug 1344954: Give nsCanvasFrame.cpp an include for nsIFrameInlines.h. r=TYLin
...
It needs this #include in order to get the (inlined) impl for its call to
PropagateRootElementWritingMode().
MozReview-Commit-ID: 35OGSHlRqFA
--HG--
extra : rebase_source : 71cedd7ee4feb389cc8b41c626b41e642c26a0c2
2017-03-06 16:11:44 -08:00
Bobby Holley
b0a17f9f9c
Bug 1343937 - Exempt scrollbar NAC from the new NAC semantics. r=bz
...
MozReview-Commit-ID: 8TbFkirYOy2
2017-03-07 13:54:38 -08:00
Bobby Holley
3439f1454b
Bug 1343937 - Implement and use GetInFlowParent. r=bz
...
MozReview-Commit-ID: 3xMjHnVO2Az
2017-03-07 13:54:36 -08:00
Bobby Holley
09bc17720b
Bug 1344386 - Don't look for overlapping change hints in stylo documents. r=emilio
...
MozReview-Commit-ID: 9wK8TTXolPM
2017-03-07 13:14:32 -08:00
Carsten "Tomcat" Book
d0bd960945
merge mozilla-inbound to mozilla-central a=merge
2017-03-06 10:53:27 +01:00
Boris Zbarsky
10b5178104
Fix up a comment that I forgot to fix when addressing review feedback for bug 1343771. r=me, DONTBUILD
...
MozReview-Commit-ID: 7PFBYVlcR7F
2017-03-03 21:46:38 -05:00
Wes Kocher
1b29a33fce
Merge m-c to autoland, a=merge
...
MozReview-Commit-ID: K0Q4b2wzvlJ
2017-03-03 17:29:54 -08:00
Boris Zbarsky
f4e8b5761a
Bug 1340277
. Fix stylo to properly update styles on the anonymous scrolled-content frame inside a scrollframe. r=emilio
...
MozReview-Commit-ID: DE4C6pIp8SC
--HG--
extra : rebase_source : 4e7071074791fee71b7bd61da27387035d803374
2017-03-03 16:16:11 -05:00
Boris Zbarsky
50936b7afe
Bug 1343771. Fix stylo to properly update styles on the anonymous block inside a table cell. r=emilio
...
MozReview-Commit-ID: 8LnPTKVxxVc
2017-03-03 16:14:39 -05:00
Boris Zbarsky
799bc86f7c
Bug 1340723 part 3. Fix stylo to properly update styles on the anonymous blocks we create in a block-inside-inline situation when the style of the inline changes. r=emilio
...
MozReview-Commit-ID: JYz6g1ZJInT
--HG--
extra : rebase_source : 356785e1de38745c9ca23a04ce58a1d53dce692b
2017-03-03 15:45:40 -05:00
Boris Zbarsky
b6041718b5
Bug 1340723 part 1. Add an nsIFrame function that can be called from the stylo restyle manager to update style contexts on anonymous boxes associated with that frame, and a frame state bit that can be used to optimize out the virtual calls. r=emilio
...
MozReview-Commit-ID: 2niUdJPSXKa
--HG--
extra : rebase_source : cfacb4cd47677d2589323c0cda8892226b698eef
2017-03-03 15:44:24 -05:00
Jeff Muizelaar
033a5b26a9
Bug 1343770. Separate out Parent commands from Child commands. r=kats
...
This basically just splits the enum in two and does the necessary plumbing. The
worst part is that now DisplayItemLayers need to have two arrays of commands.
Fortunately, this will be going away in the future.
This makes it so we don't send the child side commands to the parent.
2017-03-02 16:33:25 -05:00
Kartikaya Gupta
036b81ce75
Merge m-c to graphics
...
MozReview-Commit-ID: 2ILLtbCmQL3
2017-03-02 10:27:31 -05:00
Carsten "Tomcat" Book
4a4777d1aa
merge mozilla-inbound to mozilla-central a=merge
2017-03-02 14:02:48 +01:00
Kartikaya Gupta
31557b53e5
Merge m-c to graphics
...
MozReview-Commit-ID: 6TMc1hGNQVA
2017-03-01 09:45:49 -05:00
Ethan Lin
8b7fb662c7
Bug 1342356 - Remove validBufferRegion from OpAddExternalImage. r=sotaro
2017-03-01 14:11:13 +08:00
Mats Palmgren
e8c6fd3388
Bug 1342801 - Store the 'writing-mode' used value on nsIFrame and make GetWritingMode non-virtual. r=jfkthame
...
MozReview-Commit-ID: HPhuxjDbOdh
2017-02-28 18:58:30 +01:00
Kartikaya Gupta
0839dfda73
Merge m-c to graphics
...
MozReview-Commit-ID: CAFMHywf3lQ
2017-02-28 09:16:03 -05:00
Kartikaya Gupta
acef3b8740
Merge m-c to graphics
...
MozReview-Commit-ID: 1TtDrgYT5Sb
2017-02-27 10:39:39 -05:00
Kartikaya Gupta
1f11438613
Merge m-c to graphics
...
MozReview-Commit-ID: D9NUw9xhxzv
2017-02-24 09:11:52 -05:00
Jeff Muizelaar
6296f9be71
Bug 1342246. Generate resource ids on the client side. r=lsalzman
2017-02-23 17:52:38 -05:00
Masatoshi Kimura
7be7b11a1c
Bug 1342144 - Remove version parameter from the type attribute of script elements. r=jmaher
...
This patch is generated by the following sed script:
find . ! -wholename '*/.hg*' -type f \( -iname '*.html' -o -iname '*.xhtml' -o -iname '*.xul' -o -iname '*.js' \) -exec sed -i -e 's/\(\(text\|application\)\/javascript\);version=1.[0-9]/\1/g' {} \;
MozReview-Commit-ID: AzhtdwJwVNg
--HG--
extra : rebase_source : e8f90249454c0779d926f87777f457352961748d
2017-02-23 06:10:07 +09:00
Emilio Cobos Álvarez
b16dcfdba8
Bug 1342710, Bug 1324633: Update reftests and crashtests expectations.
...
MozReview-Commit-ID: LmapjDT6ggu
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-02-25 16:50:44 -08:00
Phil Ringnalda
da4ecf2f5c
Merge m-i to m-c, a=merge
2017-02-25 10:33:48 -08:00
Mats Palmgren
f33f3cd648
Bug 1341137 part 2 - Provide a way to add ranges to Selection objects that aren't associated with a shell/nsFrameSelection. r=smaug
2017-02-25 11:33:34 +01:00
Mats Palmgren
876c9a7854
Bug 1341137 part 1 - Make Selection::addRange silently reject ranges that have a different root. r=smaug
2017-02-25 11:33:34 +01:00
Ting-Yu Lin
758e250089
Bug 1342330 Part 3 - Convert FlagBits::mBreakType to StyleClear. r=xidorn
...
We can avoid static_cast if using StyleClear type directly.
MozReview-Commit-ID: 3lh2VJCAfuW
--HG--
extra : rebase_source : db3058559757b8f4df2a7d6cb9b31013cec220e2
2017-02-24 15:27:23 +08:00
Ting-Yu Lin
7826bed333
Bug 1342330 Part 2 - Convert uint32_t to bool in nsLineBox::FlagBits. r=xidorn
...
They're all one bit flags, so we should use bool.
MozReview-Commit-ID: 5twqu3SIXKl
--HG--
extra : rebase_source : aec8a2d952063032e0493cd1231d9f653538ca2f
2017-02-24 15:19:45 +08:00
Ting-Yu Lin
874f00d87d
Bug 1342330 Part 1 - Strip trailing whitespaces in nsLineBox.h. r=xidorn
...
MozReview-Commit-ID: Ib0ELxWTaH7
--HG--
extra : rebase_source : 75673cb3b966b0e84286fa9a2d0d80b9a5ab390a
2017-02-24 15:13:34 +08:00
Mats Palmgren
eb04852c0f
Bug 1343298 - Remove nsHTMLScrollFrame::ReloadChildFrames() because it's redundant. r=jfkthame
...
The scroll frame is almost always the content's primary frame and if so
it already has the correct style values and the nsFrame ctor has set
mWritingMode correctly based on those. For the edge cases where it's
not the primary frame, e.g. <fieldset style=overflow:scroll>, the UA
sheet specifies 'inherit' for the relevant properties so it has
the correct style values in this case too.
MozReview-Commit-ID: 1FMFNfF0IqU
2017-03-01 18:03:14 +01:00
Mats Palmgren
742155bd91
Bug 1340771 part 4 - Mark AutoWeakFrame as MOZ_NONHEAP_CLASS and WeakFrame as MOZ_HEAP_CLASS. r=tn
...
MozReview-Commit-ID: 8yGBKyx3TDW
2017-03-01 18:03:14 +01:00
Mats Palmgren
6ef6efaea3
Bug 1340771 part 2 - Introduce a WeakFrame class for heap allocated weak frame pointers, stored in a hashtable for fast lookup. r=tn
...
* * *
Bug 1340771 part 3 - Change existing heap allocated AutoWeakFrame instances to use WeakFrame instead. r=tn
MozReview-Commit-ID: GSuUiy98jBa
2017-03-01 18:03:14 +01:00
Mats Palmgren
d13aaf9ce0
Bug 1340771 part 1 - Rename nsWeakFrame to AutoWeakFrame (automated change). r=tn
...
MozReview-Commit-ID: 8pl4nyeGEkr
2017-03-01 18:03:14 +01:00
Ting-Yu Lin
cd607fcae6
Bug 775624 Part 24 - Implement operator<< for nsReflowStatus to use mozilla::ToString. r=dholbert
...
To print log in nsBlockFrame, run "GECKO_BLOCK_DEBUG_FLAGS=reflow ./mach run".
Here is a sample nsReflowStatus string:
[Complete=Y,NIF=N,Truncated=N,Break=N,FirstLetter=Y].
MozReview-Commit-ID: 4voGcXfJlN7
--HG--
extra : rebase_source : f84ba1ef47e30513674e578fab37b66a8b2a1ab3
2017-02-14 18:41:41 +08:00
Ting-Yu Lin
10070b1da2
Bug 775624 Part 23 - Remove constructor and all operators related to uint32_t. r=dholbert
...
MozReview-Commit-ID: FEVYMhcpPS0
--HG--
extra : rebase_source : 504328a609feaf7816e22e0f0c87aa8be6813558
2017-02-14 18:01:11 +08:00
Ting-Yu Lin
8f840dc923
Bug 775624 Part 22 - Remove NS_FRAME_COMPLETE. r=dholbert
...
This patch is written by the following script with some manual adjustment to
the comment in nsRubyTextContainerFrame.cpp and nsRubyFrame.cpp, and
nsColumnSetFrame's constructor.
function rename() {
find layout\
-type f\
\( -name "*.cpp" -or\
-name "*.h" \)\
-exec sed -i -r "s/$1/$2/g" "{}" \;
}
rename "nsReflowStatus *([a-zA-Z0-9]*) = NS_FRAME_COMPLETE" "nsReflowStatus \1"
rename "([a-zA-Z0-9.*]*) *= NS_FRAME_COMPLETE;" "\1.Reset();"
rename "([a-zA-Z0-9.*]*) == NS_FRAME_COMPLETE" "\1.IsEmpty()"
MozReview-Commit-ID: 9tqQAHvdQex
--HG--
extra : rebase_source : 3119776946dc2c8350098b7bf9f3ceff29bdffb5
2017-02-14 17:55:48 +08:00
Ting-Yu Lin
f19bfc4b93
Bug 775624 Part 21 - Remove NS_FRAME_NOT_COMPLETE. r=dholbert
...
To preserve the semantics, Reset() is called to clear other bits in the
status prior to set the incomplete bit. Though some of them might not be
necessary.
MozReview-Commit-ID: InNDwcpp28A
--HG--
extra : rebase_source : 833e44a5dbb447d82c67f715cd5b0b2e97a5c62d
2017-02-14 17:30:56 +08:00
Ting-Yu Lin
19c8d3d9bf
Bug 775624 Part 20 - Remove NS_FRAME_OVERFLOW_INCOMPLETE. r=dholbert
...
MozReview-Commit-ID: ATzg0IdIjd8
--HG--
extra : rebase_source : f5e1e9a6e2ba8231962824c044a49e3abe64ab4f
2017-02-14 17:22:09 +08:00
Ting-Yu Lin
37d27159af
Bug 775624 Part 19 - Convert NS_INLINE_BREAK_FIRST_LETTER_COMPLETE to use bit-field and methods. r=dholbert
...
MozReview-Commit-ID: k1CSWJNMns
--HG--
extra : rebase_source : 1aa775a1e835f3d001f8b2093d0c4fb9f6651630
2017-02-14 17:09:37 +08:00
Ting-Yu Lin
65116ee49c
Bug 775624 Part 18 - Convert NS_INLINE_IS_BREAK to a method. r=dholbert
...
MozReview-Commit-ID: 7Tw1BUjOYgg
--HG--
extra : rebase_source : 907596f5a59dea709063d1f329a2155a430f41fc
2017-02-14 16:33:37 +08:00
Ting-Yu Lin
8f66d2167b
Bug 775624 Part 17 - Convert NS_INLINE_IS_BREAK_AFTER to a method. r=dholbert
...
MozReview-Commit-ID: CD9uuOC3CzP
--HG--
extra : rebase_source : e7a12a1b37f591ba33e4ed8e73502f7cddf5d619
2017-02-14 16:22:04 +08:00
Ting-Yu Lin
d5c6d28836
Bug 775624 Part 16 - Convert NS_INLINE_IS_BREAK_BEFORE to a method. r=dholbert
...
MozReview-Commit-ID: 8vxRpqbZNnk
--HG--
extra : rebase_source : 195e2da23d64da9e9a888968a45eaae2e6539585
2017-02-14 16:05:24 +08:00
Ting-Yu Lin
19221f0474
Bug 775624 Part 15 - Remove NS_INLINE_BREAK_TYPE_MASK. r=dholbert
...
MozReview-Commit-ID: BjDou96ojUd
--HG--
extra : rebase_source : 238d8c80e2dcc347101b8941bca01e4a2f6304c6
2017-02-14 16:05:24 +08:00
Ting-Yu Lin
1c0431a402
Bug 775624 Part 14 - Convert NS_INLINE_GET_BREAK_TYPE to a method. r=dholbert
...
MozReview-Commit-ID: CAYlv21gPpR
--HG--
extra : rebase_source : f1d44d9ccac983f2051f09f17bf662b5bfad76e3
2017-02-14 15:58:03 +08:00
Ting-Yu Lin
d1e11eca37
Bug 775624 Part 13 - Convert NS_INLINE_LINE_BREAK_AFTER to a method. r=dholbert
...
NS_INLINE_MAKE_BREAK_TYPE is used only in BRFrame. Delete it, too.
MozReview-Commit-ID: GC4vF0GFsAD
--HG--
extra : rebase_source : d7727fe41410a8998142d9ded8dcd8ae9c2a780f
2017-02-14 11:52:53 +08:00