Граф коммитов

61537 Коммитов

Автор SHA1 Сообщение Дата
Brindusan Cristian 6a74eec204 Merge inbound to mozilla-central r=merge a=merge 2017-12-01 00:22:25 +02:00
Brindusan Cristian 6f5b49da3e Backed out 2 changesets (bug 1420762) for merge conflicts r=merge a=merge
Backed out changeset ba350c82d823 (bug 1420762)
Backed out changeset 00287b88254b (bug 1420762)
2017-12-01 00:20:10 +02:00
Emilio Cobos Álvarez 36470e4ff6 Bug 1420762: followup: Make nsCSSPageRule::ChangeDeclaration properly update the document. r=me
This causes an assert in nsStyleSet with my previous changes.

MozReview-Commit-ID: 4ASV0n8gOhZ
2017-11-30 15:54:01 +01:00
Emilio Cobos Álvarez f28656c543 Bug 1420762: Make StyleSheets notify directly to their StyleSets. r=heycam
This also makes the rule map not process all the stylesheets for the document,
which would be a mess with shadow DOM.

Far from the final, ideal state, but hey, progress.

MozReview-Commit-ID: 7TrifME9VZ
2017-11-30 15:42:45 +01:00
Olli Pettay af3373dc1d Bug 1418002 - Remove HTMLContentElement, r=jessica 2017-11-30 10:57:15 +02:00
Bogdan Tara df97c78dbf Merge mozilla-central to inbound. r=merge a=merge on a CLOSED TREE 2017-11-30 01:10:06 +02:00
Bogdan Tara d8635b15e4 Merge inbound to mozilla-central r=merge a=merge on a CLOSED TREE 2017-11-30 00:41:09 +02:00
Dorel Luca f622b80073 Merge mozilla-central to mozilla-inbound r=merge 2017-11-29 12:34:02 +02:00
Dorel Luca be78e6ea9b Merge inbound to mozilla-central r=merge a=merge 2017-11-29 12:26:15 +02:00
Andrea Marchesini b1231ac8b9 Bug 1420419 - Postpone the removing of BlobURL for 5 seconds in order to allow the loading of them in a remote process, r=smaug 2017-11-29 09:40:16 +01:00
Bob Owen 6ea1901fa9 Bug 1419739 Part 2: Clean up resulting (and some existing) unused printing code. r=jwatt 2017-11-29 07:58:49 +00:00
Bob Owen e17357eb20 Bug 1419739 Part 1: Change selection printing to remove unselected nodes and then print as normal. r=jwatt
Prior to this change, we would print a selection by:
* reflowing the whole document into one infinitely long page
* position at the top of the selection to print the first page
* move the position down by a page length each time to print subsequent pages

This has several shortcomings, detailed in the bug.

This approach uses the original document selection to create an inverted
selection in the document cloned for printing, adding an ellipsis when ranges
start or end in text nodes, then deletes that selection from the document prior
to printing.
2017-11-29 07:58:48 +00:00
Mats Palmgren d848b3123d Bug 1417711 - [css-grid] An abs.pos. grid container child that only covers removed 'auto-fit' tracks should not span to the end padding edge. r=dholbert
MozReview-Commit-ID: INVYIFawiuT
2017-11-29 06:51:41 +01:00
Jeremy Chen d4489c8a64 Bug 1421197 - use 64-bit for restyle generation counters to avoid overflow issues. r=heycam
It is expected to use 64-bit for all the restyle generation counters, since the
getter methods all return uint64_t type at present. However, we're using uint32_t
for the actual counter variables, which means the potential overflow issue is not
avoided.

In this patch, we use 64-bit for the restyle generation counters, so the overflow
issue can be avoided as expected.

MozReview-Commit-ID: 2y2afIcuwvc

--HG--
extra : rebase_source : 3fe64d7d3fc00fa1031eef9f0c15b64405435dfd
2017-11-28 17:42:22 +08:00
Xidorn Quan 783034684d Bug 1412145 - Drop more backpointers of CSSOM objects in dtor and unlink. r=bz
MozReview-Commit-ID: Ftg3WMBBNlO

--HG--
extra : rebase_source : 65834280c2ae9736861096172ca3f1d4e789c7a4
extra : source : ecbc4f545e09e969b8212e77d013a6b46b983763
2017-11-28 17:06:51 -06:00
Edgar Chen 9f4324f41e Bug 1416999 - Remove document.registerElement; r=smaug
MozReview-Commit-ID: HiX07Vbljhk

--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Dorel Luca 79499f4044 Merge mozilla-central to autoland r=merge on a CLOSED TREE 2017-11-29 12:31:25 +02:00
Morris Tseng 786900525f Bug 1419917 - Add nsDisplayTableThemedBackground. r=mattwoodrow
MozReview-Commit-ID: D86CXjyro4

--HG--
extra : rebase_source : 24ffa2c27438218463cf01839c8cdb49326e4d9f
2017-11-24 16:19:56 +08:00
JW Wang 496d14a291 Bug 1415441 - Eagerly init gMediaDecoderLog to debug crash. r=cpearce
MozReview-Commit-ID: E7ZDdQwZ32
2017-11-08 15:34:19 +08:00
Brad Werth 3b3999ddad Bug 1421420 - Hold onto a weak reference to the grid container frame across reflow flushes triggered by devtools. r=dholbert
MozReview-Commit-ID: 2lkQr1jbnFd
2017-11-28 15:05:48 -08:00
Matt Woodrow a9f042bcec Bug 1261175. r=bobowen
MozReview-Commit-ID: B9yAN0F01rj
2017-11-14 10:31:36 +13:00
Xidorn Quan 2e91996237 Bug 1420946 - Don't try to share style on quirks mode whenever two elements have different id. r=emilio
MozReview-Commit-ID: FcHXGUoMMbD

--HG--
extra : rebase_source : fe28186785456d9feca068d217d3b87beeb06867
2017-11-29 17:34:37 -06:00
Emilio Cobos Álvarez c2ddfbdfa5 Bug 1035091: Sort the reftest annotations for this bug. r=xidorn
MozReview-Commit-ID: 9uQwozbJokk
2017-11-30 16:57:18 +01:00
Emilio Cobos Álvarez ec75854b21 Bug 1035091: Disable @-moz-document on author sheets on nightly and early beta. r=xidorn
MozReview-Commit-ID: AAUs1jJifjS

--HG--
extra : rebase_source : b3334ff237e66fd75ef87aa92c4c9a56fef2119f
2017-11-29 22:16:46 +01:00
Cameron McCormack 9f9d965d52 Bug 1420379 - Move css::Rule into its own file. r=xidorn
MozReview-Commit-ID: I5SB5uEMu32

--HG--
extra : rebase_source : 224a9daa037a5e7842675a4c6712c158aba29d6f
2017-11-24 18:01:47 +08:00
Kartikaya Gupta 2cebdcb842 Bug 1389146 - Enable WR hit-testing when the pref is enabled. r=botond,mstange
This drops the code that compares the WR and Gecko hit-test results when
WR is enabled, because the "baseline" Gecko hit-test result is not
correct enough to provide a useful comparison. Instead flipping the pref
now just enables the WR hit-test code; we will rely on automated testing
to check for correctness.

MozReview-Commit-ID: 8IFtk0p2NvE

--HG--
extra : rebase_source : 6402a87f3345ca3b82220e42185c9f8776475cdd
2017-11-28 15:28:09 -05:00
Margareta Eliza Balazs cb71a3c4fe Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-11-30 12:55:54 +02:00
Jeremy Chen 1e25caab99 Bug 1418433 - increment RestyleGeneration for undisplayed elements when invalidating servo stylist. r=heycam
In the current implementation, we call SetStylistStyleSheetsDirty() every time
a style sheet is changed. However, the dirty bit setting may or may not always
update the style data. For example, the style data for undisplayed elements are
deliberately not updated in Stylo. However, the getComputedStyle API is supposed
to provide a way to get the up-to-date computed style data, even for undisplayed
elements.

In this patch, we increment RestyleGeneration for undisplayed elements when we
call SetStylistStyleSheetsDirty(). This could flush the cached data that
getComputedStyle API holds, and ensures the getComputedStyle API computes a new
one.

MozReview-Commit-ID: JDDhACOG3z4

--HG--
extra : rebase_source : 39f56227201d435ad416fe21f4b0e0cad7d2d16c
2017-11-26 15:24:12 +00:00
Jeremy Chen 6096d1b540 Bug 1418433 - move the implementation of SetStylistStyleSheetsDirty to .cpp file. r=heycam
This is a pre-patch for the real fix of Bug 1418433.

In the real fix, we'll add a IncrementUndisplayedRestyleGeneration() call into
SetStylistStyleSheetsDirty(). However, the IncrementUndisplayedRestyleGeneration()
call needs get through some deep structures in nsPresContext, RestyleManager,...
etc., and doing so means we need to move bunches of related include files, forward
declarations, from .cpp file to .h file, which doesn't make sense.

Instead, we move the implementation parts of SetStylistStyleSheetsDirty() to .cpp
file (since it is now a bit more complicated than it was), so we can use the existing
include files in the .cpp file to add IncrementUndisplayedRestyleGeneration() call
(this is in a following patch).

MozReview-Commit-ID: 3Vp9qyCf8NA

--HG--
extra : rebase_source : 16386256e16a2ca98bf988d66d861cbea58490a3
2017-11-29 10:56:15 +00:00
Jeremy Chen 7be1b87b41 Bug 1418433 - add tests for style data update mechanism for non-displayed elements. r=emilio,heycam
In certain situations, we might access a non-displayed (i.e., display: none;)
element's style data through getComputedStyle API. In this patch, we add some
tests to ensure that, if the inline style sheet is added/changed/removed, the
style data of a non-displayed element is always up-to-date. Some more tests
are added to verify the correctness of the style data when a style rule is
added/changed/removed via CSSOM.

MozReview-Commit-ID: Ggjd4FMqZlo

--HG--
extra : rebase_source : bac0e5a6e2c032922b57b08392f3381b68eeafa8
2017-11-26 15:24:12 +00:00
Botond Ballo f733efea1a Bug 1300864 - Disable paint skipping for scroll frames that contain out-of-flow content inside a CSS filter. r=mstange
MozReview-Commit-ID: 5TwC75wzOsm

--HG--
extra : rebase_source : 2c38372e452cf6b78b4906b42e4b9e93a1762d26
2017-11-27 16:45:29 -05:00
Botond Ballo 49dff2257e Bug 1300864 - Define AutoCurrentActiveScrolledRootSetter::SetCurrentActiveScrolledRoot() out of line. r=mstange
MozReview-Commit-ID: FdtGza5wS6f

--HG--
extra : rebase_source : b7731b809c5c52501959355539ed34c0057f8c87
2017-11-27 15:30:06 -05:00
Emilio Cobos Álvarez b4af4fd8f9 Bug 1417661: Use the correct parent style for inheriting from first-letter if the container is an anonymous box. r=bz
MozReview-Commit-ID: 1B7DrAVa274
2017-11-28 19:29:46 +01:00
Brindusan Cristian 9f3bd430c2 Merge inbound to mozilla-central a=merge r=merge 2017-11-28 11:50:57 +02:00
Hiroyuki Ikezoe 32c6e1fae4 Bug 1415783 - Flush pending style, layout and paint and wait for a MozAfterPaint before waiting for MozAfterPaint for OMT animation. r=birtles
With the conformant Promise handling (bug 1193394), there happen to receive
unexpected MozAfterPaint while waiting for MozAfterPaint for OMT animation.
The safest way to avoid this confusion is to start test refresh mode and
flush all pending styles (layout and paint) there so that the unexpected
MozAfterPaint is absorbed there.

MozReview-Commit-ID: 2xdKe4InYcP

--HG--
extra : rebase_source : dd6ba1dff7c449e40bb3286b5d9083eefc196de5
2017-11-28 14:57:24 +09:00
Dave Townsend 27380b996e Bug 1404420: Add custom element support to XUL. r=edgar, r=smaug
MozReview-Commit-ID: BietEX2gOoG

--HG--
extra : rebase_source : 6fd9a732a21f2c048d37c3f7139cd18503148767
2017-10-10 15:25:10 -07:00
Margareta Eliza Balazs 463d2cbb86 Merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-11-28 00:10:33 +02:00
Margareta Eliza Balazs f0400e7e4c Merge inbound to mozilla-central r=merge a=merge 2017-11-27 23:57:42 +02:00
Matt Woodrow dc809d0cf5 Bug 1418722 - Mark nsDisplayPerspective items for removal when the inner transform frame gets removed from the frame tree. r=mstange
--HG--
extra : rebase_source : 2fb93f516949aa084ab014388fbb19e7a59f1c19
2017-11-28 09:39:08 +13:00
Kartikaya Gupta 71b95cfe9c Bug 1418397 - Add dispatch-to-content hit info to WR hit-test for inactive scrollframes. r=mstange
MozReview-Commit-ID: F6HgYPRc9Bi

--HG--
extra : rebase_source : b05af2f355118fcd340effc9e022e95f7b03fbaa
2017-11-27 12:37:30 -05:00
Sebastian Hengst 9dc9b78023 Backed out 3 changesets (bug 1419226) for frequently for frequently timing out in Web reftests in webvtt, e.g. enable_controls_reposition.html. r=backout
Backed out changeset 5a2460c34657 (bug 1419226)
Backed out changeset 8cda3fb3ce1a (bug 1419226)
Backed out changeset 21d9bedcf411 (bug 1419226)
2017-11-27 17:27:27 +02:00
Ciure Andrei ce43f5fe52 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2017-11-27 11:51:40 +02:00
Matt Woodrow b5800a6de2 Bug 1420312 - Followup to only mark frame as modified during retained building, since otherwise it won't be restored.
--HG--
extra : rebase_source : 675d7b40da6c41f2b2bc1513bee72e3361cbcd33
2017-11-27 16:47:28 +13:00
Mantaroh Yoshinaga 1256ba5b9b Bug 1419226 - Part 2. Remove notify did paint timer. r=mattwoodrow
This EnsureEventualDidPaintEvent() creates software timer. But this timer will
bring several intermittent tests fail. For example, if we want to check the
compositor animation property. If test receives MozAfterPaint of the timer,
there doesn't have animation property on compositor, as result of this, a test
will fail.

I think we don't need to create this timer each time since current painting is
happening synchronously under the refresh driver.

[1] https://searchfox.org/mozilla-central/rev/919dce54f43356c22d6ff6b81c07ef412b1bf933/layout/base/nsPresContext.cpp#189

MozReview-Commit-ID: Hb7UEITer5t

--HG--
extra : rebase_source : 7aee1eced01813907ab0c3e5dff80e90261c0815
2017-11-27 09:33:54 +09:00
Phil Ringnalda 0d1d9fec7b Backed out 2 changesets (bug 1418433) for unexpected "why should we have flushed style again?" assertion failures
Backed out changeset 761f84b8edb0 (bug 1418433)
Backed out changeset 436723f33b10 (bug 1418433)

MozReview-Commit-ID: 84FAoZcyQjU

--HG--
extra : rebase_source : 5fbba91a8b80fbb25f57f4a6d8b521c8feb7f89a
2017-11-26 23:32:41 -08:00
Matt Woodrow 7f1eacde4f Bug 1419225 - Clip transformed rectangles to the maximum allowed values for the appunit coordinates we're converting into. r=miko 2017-11-27 15:01:15 +13:00
Matt Woodrow 294b97b3df Bug 1420312 - Rebuild the entire visible area when we find preserve-3d content. r=miko 2017-11-27 15:00:19 +13:00
Robert Longson 059b5600cf Bug 584623 - fix cairo bounds calculation for zero length lines. r=jmuizelaar 2017-11-26 14:47:25 +00:00
Cameron McCormack 8839daefd6 Bug 1420383 - Move nsCSSProps::kParserVariantTable into its rightful home in nsCSSProps.cpp. r=xidorn
MozReview-Commit-ID: 7Rg3EYq5GPQ

--HG--
extra : rebase_source : a3bb2bc6fa9f04c72104dc942316f14fd83ed636
2017-11-24 18:17:36 +08:00
Kartikaya Gupta 65fe04094f Bug 1418541 - Correct an error when generating event regions. r=mstange
Turns out that there's been a bug in the event regions code since it was
first written, where touch-action:manipulation is not properly expressed
in the event region structs. It's sort of a design bug that we can't fix
without adding another region. However, in bug 1389149 I accidentally
changed the behaviour of some of these cases because I wasn't aware of
this bug. This patch repairs the code so that it behaves the same as it
used to prior to bug 1389149, and documents the buggy scenario.

MozReview-Commit-ID: 9XhkH6ypZHi

--HG--
extra : rebase_source : 970054c0cc71cdcb9b89925474e553d638c8fcc6
2017-11-25 10:53:35 -05:00