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

59303 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack a3c8f6ca5b Bug 1382925 - Part 4: Test origin iteration order by checking @font-face rule cascade. r=emilio
MozReview-Commit-ID: 7UzDKkKOEtw

--HG--
extra : rebase_source : 73cc30904e69d4d822faf0b4f23fe265b95a8581
2017-08-13 13:54:12 +08:00
Cameron McCormack 56eccb1311 Bug 1382925 - Part 3: Pass in relevant origin when style sheet rules change and when author styles are toggled. r=emilio
MozReview-Commit-ID: EGEnUBAvVyX

--HG--
extra : rebase_source : 3a445fb948b4f1284f50fe212b47d2fea9538311
2017-08-12 18:49:01 +08:00
Cameron McCormack 0a951a3cb0 Bug 1382925 - Part 2: Add FFI function to get stylesheet origin. r=emilio
MozReview-Commit-ID: F3VY6qagrpS

--HG--
extra : rebase_source : c53e528ae36a57240bfdd5318d59411e51a8feb9
2017-08-12 18:34:34 +08:00
Cameron McCormack 7e913c1a93 Bug 1382925 - Part 1: Make Servo_StyleSet_NoteStyleSheetsChanged take a set of origins to dirty. r=emilio
MozReview-Commit-ID: KY29REU78tH

--HG--
extra : rebase_source : bc3ca1deb1fcc797e6156c8bd0656012eb9c4315
2017-08-12 18:19:22 +08:00
Emilio Cobos Álvarez b452d01c4c Bug 1389790: Ensure we always have an up-to-date style context even if we have no frame. r=heycam
I'm still not quite sure how may we end up restyling a text node under there,
but all my attempts to build a test-case have failed.

Anyway this is the right thing to do.

MozReview-Commit-ID: FitqSKhNt2n

--HG--
extra : rebase_source : 23daa450b11d3bbee458973fc62e95338328fe02
2017-08-12 22:17:44 +02:00
Sebastian Hengst c4d7b8e593 Backed out changeset 2c33b1101844 (bug 1217748) for failing gfx/layers/apz/test/mochitest/test_group_touchevents.html on Android 4.3 debug. r=backout 2017-08-13 11:26:13 +02:00
Markus Stange 82bda631f5 Bug 1389215 - Don't layerize in response to margin changes. r=mattwoodrow
MozReview-Commit-ID: Ahr3g1NAoQ7

--HG--
extra : rebase_source : a6462769096b8737e58227259ac1f72581c6ed70
2017-08-12 18:42:04 -04:00
Markus Stange 26c1def56b Bug 1217748 - Don't consider opacity as animated if it's changed between discrete values. r=mattwoodrow
CSS animations / transitions and element.animate animations of opacity will
still be treated as animations.

JS-implemented opacity animations will no longer be detected as animations.
I hope that's fine. The current heuristic makes us detect opacity 'animations'
in lots of cases where there isn't an actual animation, and the resulting
layerization changes from those detected animations cause expensive repaints.

MozReview-Commit-ID: KJlc6c8OWSP

--HG--
extra : rebase_source : 4624b6d1686577f17c81f2fcf55e9b044ffceea8
2017-08-10 15:00:50 -04:00
Sebastian Hengst 9c7e09c9d3 merge mozilla-central to autoland. r=merge a=merge 2017-08-13 01:06:57 +02:00
Sebastian Hengst 56c035fa36 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4cZJ3qFjvPY
2017-08-12 23:49:21 +02:00
Bobby Holley 1cf62db957 Bug 1389681 - Move NoteDirty* to Element. r=emilio
MozReview-Commit-ID: KvKAEuYkssx
2017-08-12 10:12:28 -07:00
Nicholas Nethercote 9ab2597a8d Bug 1387956 (part 2) - Overhaul handling of nsWindowSizes. r=mccr8.
This patch does the following.

- Moves nsWindowSizes from nsWindowMemoryReporter.h to its own file,
  nsWindowSizes.h, so it can be included more widely without exposing
  nsWindowMemoryReporter.

- Merges nsArenaMemoryStats.h (which defines nsTabSizes and nsArenaMemoryStats)
  into nsWindowSizes.h.

- Renames nsArenaMemoryStats as nsArenaSizes, and nsWindowSizes::mArenaStats as
  nsWindowSizes::mArenaSizes. This is the more usual naming scheme for such
  types.

- Renames FRAME_ID_STAT_FIELD as NS_ARENA_SIZES_FIELD.

- Passes nsWindowSizes to PresShell::AddSizeOfIncludingThis() and
  nsPresArena::AddSizeOfExcludingThis(), instead of a bunch of smaller things.
  One nice consequence is that the odd nsArenaMemoryStats::mOther field is no
  longer necessary, because we can update nsWindowSizes::mLayoutPresShellSize
  directly in nsPresArena::AddSizeOfExcludingThis().

- Adds |const| to a few methods.

MozReview-Commit-ID: EpgFWKFqy7Y
2017-08-10 14:14:09 +10:00
Wes Kocher 5a4357c768 Merge inbound to central, a=merge
MozReview-Commit-ID: GArkKmOFIVH
2017-08-11 13:15:33 -07:00
Cameron McCormack 004e7071d8 Bug 1384741 - Part 3: Buffer up CSP violation reports when pre-emptively checking cached font loads, and dispatch them when trying to use cached fonts. r=jfkthame
MozReview-Commit-ID: 7hUI160sNqv
2017-08-07 10:12:12 +08:00
Hiroyuki Ikezoe 0d870b1b90 Bug 1388031 - Cleanup code that was used for verifying styling results for throttled animation flush in post traversal. r=bholley
Now that we do process normal traversal even in the case of throttled animation
flush so that we don't need to do special handling for the case.

Note about the comment in has_current_styles():
the remaining animation hints is not caused by either this patch or the
previous patch in this patch series, it's been there in the first place, but
it should be fixed somehow later. See bug 1389675.

MozReview-Commit-ID: JojHufxNCiS
2017-08-11 20:34:08 -07:00
Hiroyuki Ikezoe fb03af5d7d Bug 1388031 - Process normal traversal for throttled animation flush as well. r=bholley
MozReview-Commit-ID: BirD8BDMifp
2017-08-11 20:34:06 -07:00
Boris Zbarsky efd62c0c96 Bug 1388877. Fix insertions under a ::first-line in stylo. r=heycam
MozReview-Commit-ID: CDolJpTtGki

--HG--
extra : rebase_source : dbef95a652491fbfee0a462995938b4801a785ad
2017-08-11 09:11:23 -04:00
Xidorn Quan 8beb861597 Bug 1388241 - Assert that all style structs are under 504 bytes. r=bz
MozReview-Commit-ID: BiXdV0caLHV

--HG--
extra : rebase_source : 739fc67c80d1ffcf0ab1e480bb6b2ad565f67375
2017-08-09 11:47:02 +10:00
Xidorn Quan b97e3aed9b Bug 1388255 - Make nsStylePosition::mGridTemplate{Columns,Rows} a UniquePtr. r=canaltinova,dholbert
MozReview-Commit-ID: 8SOE6sAavCX

--HG--
extra : rebase_source : 666c95221e059da9b1a729eea3584e2060968582
2017-08-09 11:30:25 +10:00
Hiroyuki Ikezoe 7940b76630 Bug 1389440 - Replace pseudo style with the one having animations before generating elements corresponding to content propery. r=emilio
This needs for content property animations.

MozReview-Commit-ID: C7ViMQTczJx

--HG--
extra : rebase_source : 3a4cd3b4b656fa5c1f24f0b1ca28fe4a1034aeef
2017-08-11 19:49:56 +09:00
Bobby Holley 3e308bd38d Bug 1389385 - Rearrange dirty noting to operate on the element rather than the parent. r=emilio
This will allow us to scope restyle roots more tightly.

MozReview-Commit-ID: 2t2lp5sKBHH
2017-08-11 18:18:22 -07:00
Bobby Holley 7a9898d81a Bug 1389385 - Do all descendant bit propagation from Gecko over FFI. r=emilio
Deduplicating code is nice, and it will help us when we make the bit
propagation more complicated in upcoming patches.

MozReview-Commit-ID: KIQnNJVayrM
2017-08-11 18:18:19 -07:00
Manish Goregaokar 0ee8a01bf2 Bug 1383869 - Update reftest expectation.
MozReview-Commit-ID: FDHdj8ECKE9
2017-08-12 10:53:21 +10:00
Masatoshi Kimura 4c76bc32c0 Bug 1389566 - Remove @deprecated nsIBrowserBoxObject. r=bkelly
MozReview-Commit-ID: 7olN9TBFG5B

--HG--
extra : rebase_source : 7b56ed6c89beb946d733c46dee44d6035554730e
2017-08-12 02:19:44 +09:00
Sebastian Hengst 6ad2efe360 Backed out changeset 6c2389558858 (bug 1388877) for asserting at ServoRestyleManager.cpp:1450 in stylo reftests and crashtests. r=backout 2017-08-11 12:24:37 +02:00
Bobby Holley 890588d0ca Bug 1389347 - Make the parallel traversal an explicit flag instead of guessing from Servo. r=emilio
MozReview-Commit-ID: 83DgB1sZnCb
2017-08-11 15:55:14 -07:00
Bobby Holley 9f46941f63 Bug 1389347 - Inline PrepareAndTraverseSubtree into StyleDocument. r=emilio
MozReview-Commit-ID: Kza0gGqvvmM
2017-08-11 15:55:13 -07:00
Bobby Holley 142eb4df57 Bug 1389347 - Hoist StyleNew{Children,Subtree} into their own paths. r=emilio
The buggy animation handling isn't a regression, since currently we pass
UnstyledChildrenOnly in those cases, which blocks the animation traversal
in Servo_TraverseSubtree.

In general I really wanted to handle these two paths together. But there's
enough broken with the NewChildren path that I wanted to scope the buginess
as tightly as possible. And I really need to separate the handling here from
StyleDocument() to make the restyle root stuff work.

MozReview-Commit-ID: 9F0mcQl7AAX
2017-08-11 15:55:13 -07:00
Bobby Holley 7ec2e91713 Bug 1389347 - Separate StyleSubtreeForReconstruct into its own path. r=emilio
This makes things a bit easier to follow, and sets the stage for eliminating
PrepareAndTraverseSubtree and making StyleDocument restyle-root-aware.

MozReview-Commit-ID: 40ORrqAuXni
2017-08-11 15:55:12 -07:00
Bobby Holley 622ed2a2c9 Bug 1389347 - Hoist various bits of PrepareAndTraverse functionality into an RAII class. r=emilio
MozReview-Commit-ID: CPVnZjSwRpN
2017-08-11 15:55:12 -07:00
Kyle Machulis 649634a721 Bug 1387184 - Remove nsIDOMHTMLEmbedElement; r=bz
Removes nsIDOMHTMLEmbedElement and all references. HTML elements are
now handled by WebIDL. With the deprecation of extensions, XPCOM
interfaces to HTML elements are no longer needed.

MozReview-Commit-ID: DI4XVvdgPDI

--HG--
extra : rebase_source : 74bd92619e3d1db04c3dd40ec3022474fe1d647c
2017-08-09 12:05:08 -07:00
Wes Kocher eb3058e466 Backed out 3 changesets (bug 1382499) for eslint failures a=backout
Backed out changeset 0ebb9924affa (bug 1382499)
Backed out changeset c25b50b0edc5 (bug 1382499)
Backed out changeset 1dcdc22d4919 (bug 1382499)

MozReview-Commit-ID: 9rygU1QF1kb
2017-08-11 13:49:34 -07:00
Wes Kocher a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Chung-Sheng Fu c28d4be7b3 Bug 1382499 - Enhance fingerprinting resistance for Touch API r=arthuredelstein,bz
MozReview-Commit-ID: 8nzOkvIvwrD

--HG--
extra : rebase_source : 15cfa77ffc639838d6345fa4bffc7079d8d198e7
2017-07-31 17:30:38 +08:00
Stone Shih 7de447a25a Backed out changeset 46d8f42863af (bug 1351148) 2017-08-11 15:19:44 +08:00
Ethan Lin 6ff926330a Bug 1388662 - Correct canvas transform in layers-free mode. r=mtseng
MozReview-Commit-ID: 5J0I1OTA6Ql

--HG--
extra : rebase_source : 26ce2f5bcdb7efcd52577b253ec4b90ce0b77568
2017-08-09 16:54:24 +08:00
Boris Zbarsky 00efaf7f30 Bug 1388877. Fix insertions under a ::first-line in stylo. r=heycam
MozReview-Commit-ID: CDolJpTtGki

--HG--
extra : rebase_source : 8a2fb19de65cd4dcf708382df844a6bbf81441c9
2017-08-11 03:12:44 -04:00
cku 5423caf93e Bug 1389068 - Add comment for GetPreEffectsVisualOverflow. r=louis
MozReview-Commit-ID: JYFox2ADAM6

--HG--
extra : rebase_source : 7f92f0cbcbc18b326fdee5025f17b85dac3142ff
2017-08-10 21:08:11 +08:00
Boris Zbarsky a3410dfccf Bug 1385656. Fix the interaction of RecoverLetterFrames and ::first-line. r=heycam
MozReview-Commit-ID: BUt5FDI0IV1

--HG--
extra : rebase_source : 907a1f84a90ee36a777c4eae9b4073a0c3ec756f
2017-08-10 18:59:06 -04:00
Boris Zbarsky 0dd7bb3d5e Bug 1388625 part 6. Flag the in-flow frames of kids of various wrapper frames during frame construction, so we know to restyle the wrapper frames. r=heycam
MozReview-Commit-ID: 8KNug88sGp

--HG--
extra : rebase_source : 02cd19bcab6595a5fe86ea076207a8c84da4229e
2017-08-11 00:10:27 -04:00
Boris Zbarsky b183fe45c1 Bug 1388625 part 5. Implement wrapper anonymous box restyling in ServoRestyleManager. r=heycam
MozReview-Commit-ID: FRW4RCR1GT4

--HG--
extra : rebase_source : 4b3788a93173d73c0a47c92a3e8574bae713862f
2017-08-11 00:10:26 -04:00
Boris Zbarsky b1ca90d55d Bug 1388625 part 4. Add a concept of wrapper anon boxes to nsCSSAnonBoxes. r=heycam
MozReview-Commit-ID: 39i5eHlrrON

--HG--
extra : rebase_source : 7529aa53036b9c338c121f10572768ccfabc812a
2017-08-11 00:07:12 -04:00
Boris Zbarsky 345d831c42 Bug 1388625 part 3. Add nsIFrame flags we will use in stylo post-traversal to keep track of wrapper anonymous boxes. r=heycam
MozReview-Commit-ID: GscWh51aio2

--HG--
extra : rebase_source : 9be722b4384246d580e86b0e4fe0152de5306a2b
2017-08-10 12:49:03 -04:00
Boris Zbarsky dd203db270 Bug 1388625 part 2. During a stylo restyle, update the style of the anonymous cols in a colgroup, if any. r=heycam
MozReview-Commit-ID: 4H2NzhCyygU

--HG--
extra : rebase_source : 88f0802f507478c97b4b971ba13348c44f212f31
2017-08-10 12:43:05 -04:00
Boris Zbarsky fbecdd2153 Bug 1388625 part 1. During a stylo restyle, update the style of the trailing anonymous colgroup of a table, if any. r=heycam
MozReview-Commit-ID: 4rz4AlPEsjR

--HG--
extra : rebase_source : aea84e7ded8e01d7c813caecdaa43da83e88eaf6
2017-08-10 12:42:53 -04:00
Boris Zbarsky 0a35f673b3 Bug 1384602 part 2. Convert inserts to appends on table rows if possible, because the insert codepath is rather buggy. r=heycam
MozReview-Commit-ID: 5iOaG5UNAwG

--HG--
rename : layout/reftests/table-bordercollapse/1384602-1a.html => layout/reftests/table-bordercollapse/1384602-1b.html
2017-08-11 00:17:10 -04:00
Boris Zbarsky 3e9a6da953 Bug 1384602 part 1. When coalescing lazy frame construction reframes for stylo, do it even across comments. r=emilio
MozReview-Commit-ID: 7MyO1ZyS9zu
2017-08-11 00:17:07 -04:00
Boris Zbarsky 60cd46bdce Bug 1388626. Restyle ::-moz-xul-anonymous-block as needed with stylo. r=heycam
MozReview-Commit-ID: KZ0s1x60VBx

--HG--
extra : rebase_source : d7103464e7563ae7105417f254609cb22481e0e3
2017-08-09 16:43:47 -04:00
Hiroyuki Ikezoe 80dfc0d6fb Bug 1379516 - Mark animation timerline marker for stylo. r=birtles
MozReview-Commit-ID: GkPSXEk4xua

--HG--
extra : rebase_source : 3fa0f5029bcfd87e9d6abfec9c6ea5d03a7656e6
2017-08-11 08:44:11 +09:00
Xidorn Quan 8a83084796 Bug 1389041 - Move the iframes out from display tree in test_value_computation.html. r=heycam
We filp the display value of display tree after each property, which
means if we put the iframes there, we are rebuilding style for the
two subdocuments repeatedly. This doesn't really make sense. We are
flipping display tree for restoring #elementf, not for the iframes.

MozReview-Commit-ID: B9bRDrlt0HJ

--HG--
extra : rebase_source : 3762605a782098d5d804342766d4ca6ad971fdf8
2017-08-10 21:47:58 +10:00