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

56294 Коммитов

Автор SHA1 Сообщение Дата
Jeremy Chen 492da78abe Bug 1341758 - add image-orientation related binding functions. r=emilio
For image-orientation property, we use methods of nsStyleImageOrientation
struct to create/set its computed value. Adding these binding functions
could let us reuse these methods for transferring computed values from Servo
side to Gecko.

The actual changes for the calling these binding functions to do the glue things
for Stylo is in a separate following patch, which should be pure Servo changes.

MozReview-Commit-ID: 9MuICVgdxNw

--HG--
extra : rebase_source : e1fbcc3445b7a1d1deb18d204f4b8f60d7356b08
2017-04-11 16:32:20 +08:00
Gregory Szorc 28c1793e3b Backed out changeset f00f1ad996f7 (bug 1345695) for touching servo/
Autoland should have prevented this. A bug is on file so it hopefully
won't happen again.

MozReview-Commit-ID: 1tN1lAyTLyE

--HG--
extra : rebase_source : 9377f92151e481446481fec263c39e369dab5246
2017-04-11 09:36:48 -07:00
cku 2b2e6d122e Bug 1354772 - Part 3. Correct the comment in Layer::CalcDifference. r=heycam
MozReview-Commit-ID: 34p6qqGO5R0

--HG--
extra : rebase_source : 51f65ba1de8f744235fe6789b3005794410d6bcf
2017-04-11 15:38:07 +08:00
cku db1a6cab83 Bug 1354772 - Part 2. Compute URLValueData::mMightHaveRef when need. r=heycam
MozReview-Commit-ID: 8t5tKrjB1cz

--HG--
extra : rebase_source : cda9e15dcb51aeedf6bb532dd702247e60e59304
2017-04-10 16:41:51 +08:00
cku 3509778fd7 Bug 1354772 - Part 1. Compute URLValueData::mIsLocalRef when need. r=heycam
MozReview-Commit-ID: 77pcTcaScF0

--HG--
extra : rebase_source : 2c609464dd85334b8a7dc747b65d72a646fbebc0
2017-04-10 17:25:48 +08:00
Cameron McCormack 43e68fc196 Bug 1345695 - stylo: Assert that we have computed style in Servo_ResolveStyle when lazy computation is forbidden. r=bholley
MozReview-Commit-ID: Bul00XOpfxA

--HG--
extra : rebase_source : 485668d0a92c9407c9dfeb5cd569aa1b07569a14
2017-03-30 12:54:25 +08:00
Cameron McCormack 67201815a8 Bug 1353317 - stylo: For newly added content, note dirty descendants in the lazy frame construction case through the flattened tree parent. r=bholley
MozReview-Commit-ID: L6MhRK3zmSc

--HG--
extra : rebase_source : 575b146d66898d907b669cbe4295ca25f67a3031
2017-04-04 18:28:05 +08:00
Xidorn Quan 30211367ad No bug - Update stylo-failures.md.
MozReview-Commit-ID: 55S2uBPzZVa
2017-04-11 16:34:03 +08:00
Carsten "Tomcat" Book 023be17063 Merge mozilla-central to autoland 2017-04-11 10:24:02 +02:00
Xidorn Quan e0a63fbefc No bug - Update stylo-failures.md.
MozReview-Commit-ID: LVzNm2jySj9

--HG--
extra : source : b46043a5b8bac565436c214f4f2f6f999d18aedf
2017-04-11 15:51:39 +08:00
Brian Birtles 19ef9bec3d Bug 1315874 - Tweak some line wrapping in DoGetStyleContextNoFlush; r=heycam
In ensuring that this method does *not* re-use the existing style context if
aStyleType != eAll, I found it easy to miss this check in the multi-condition if
statement due to the way some, but not all, of the conditions are on one line.
I think this would be a little easier to read if this multi-line condition used
one line per condition.

MozReview-Commit-ID: 4UOAGhAndIV

--HG--
extra : rebase_source : 0798cf29d125227587d3cf42eba7352f1a6e40c6
2017-04-03 16:49:10 +09:00
Brian Birtles 092ef82d3a Bug 1315874 - Drop animation styles if we re-use an existing style context in DoGetStyleContextNoFlush for non-animation style; r=heycam
MozReview-Commit-ID: GrB8A8bVLiX

--HG--
extra : rebase_source : aa118879e22b8c7902b5efde877b5cc621d6ddec
2017-04-03 16:49:10 +09:00
Brian Birtles 362c588a5a Bug 1315874 - Make GetStyleContextWithoutAnimation not flush; r=heycam
There are currently no call sites of GetStyleContextWithoutAnimation
but there are a couple of places (including this patch series) where we would
like to use such a method, but without the flushing behavior.

This patch drops the flushing from GetStyleContextWithoutAnimation and
renames it to GetUnanimatedStyleContextNoFlush. It also makes a few other minor
tweaks:

* Adds the aStyleType parameter for consistency with GetStyleContextNoFlush and
  GetStyleContext
* Moves the implementation of this method and GetStyleContextNoFlush to the
  header file since they simply wrap DoGetStyleContextNoFlush.
* Changes the order of these declarations so that the more specialized method
  comes later.
* Drops the comment describing the method since both the method name and the
  inline definition should now make it obvious what it is doing.

(Actually making this method not return animation styles when it re-uses an
existing style context will happen in the next patch.)

MozReview-Commit-ID: JYeim4A9Imr

--HG--
extra : rebase_source : abf7c27c52dd6b0c20a2710d6d56f2fb3e146ccf
2017-04-03 16:49:09 +09:00
Brian Birtles 33041d1214 Bug 1315874 - Drop 'ForElement' from GetStyleContextForElementXXX methods; r=heycam
In the next patch we want to add a method called
GetUnanimatedStyleContextForElementNoFlush but that's much too long. Instead it
seems better to just drop 'ForElement' from all these methods since it should be
fairly obvious we are getting the style context for an element given that the
first argument is an element.

MozReview-Commit-ID: JQKaEuCKV2F

--HG--
extra : rebase_source : 3ba51f3b00d1ec7bc91102629d9c0abb88992fef
2017-04-05 14:39:23 +09:00
KuoE0 5514aa1c8b Bug 1354000 - (Part 2) Update test result. r=heycam
MozReview-Commit-ID: CGNYT256Oph

--HG--
extra : rebase_source : 1d410d6e371956f2c03e0d7bdd17c7188e68fc52
2017-04-10 22:32:36 +08:00
Sebastian Hengst 7c2f6c390a Backed out changeset 4df8d4e384ef (bug 1338108) for unexpectedly passing 367185-1.xhtml. r=backout 2017-04-06 21:12:29 +02:00
Mats Palmgren 14f1a284bb Bug 1338108 - The result of adding any percentage factor to a size that is zero should also be zero. r=dholbert
MozReview-Commit-ID: OzOCjvcz0A
2017-04-06 20:17:34 +02:00
Wes Kocher 264adb55c2 Merge m-c to autoland, a=merge 2017-04-05 14:20:01 -07:00
Wes Kocher d71fef4f33 Merge autoland to central, a=merge 2017-04-05 13:20:39 -07:00
Kartikaya Gupta c32c70abe2 Merge m-c to graphics
MozReview-Commit-ID: JgUpOHlFfrP
2017-04-05 09:41:01 -04:00
Carsten "Tomcat" Book 7a670cdd01 merge mozilla-inbound to mozilla-central a=merge 2017-04-05 14:33:35 +02:00
Kartikaya Gupta 8335081baa Merge m-c to graphics
MozReview-Commit-ID: DenuOx3ztpy
2017-04-04 22:47:56 -04:00
Kartikaya Gupta 70d62f1a4c Bug 1351480 - Mark a test passing again. r=jrmuizel
MozReview-Commit-ID: FAEhShmVd1J
2017-04-04 22:46:48 -04:00
Ryan Hunt 7ab0cb366b Bug 1351480 - Update bindings for gradients. r=jrmuizel
MozReview-Commit-ID: 48bjXH4ZCBi
2017-03-31 19:18:44 -04:00
Kartikaya Gupta 868642f10c Merge m-c to graphics
MozReview-Commit-ID: KJoBJaTnxoC
2017-04-02 22:46:53 -04:00
Sebastian Hengst 990055a490 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: EjvlThqFc40
2017-04-02 18:52:13 +02:00
Cameron McCormack 08d2db05b2 Bug 1352785 - stylo: Ensure children of elements with invalid -moz-binding URLs get styled. r=bholley
MozReview-Commit-ID: 2zot13HgjWU

--HG--
extra : rebase_source : 34dabaa228c0f6c2625804c073ff3a5394647bf0
2017-04-02 15:15:44 +08:00
Manish Goregaokar 8cced1c51f Bug 1352775 - Revert "Bug 1352771 - modify flexbox reftest expectations. r=manishearth"
This reverts commit 13e78ea10b414ac4bd062037d4436ce1689ba865.

MozReview-Commit-ID: CZxOSUfT02b
2017-04-01 19:59:12 -07:00
Hiroyuki Ikezoe f80b34a9d5 Bug 1352771 - modify flexbox reftest expectations. r=bholley
MozReview-Commit-ID: 8QCs5TPFKP

--HG--
extra : rebase_source : 722be5247566b83c113fbdfb53d8da517ab38060
2017-04-02 11:06:23 +09:00
Hiroyuki Ikezoe 63f23ab207 Bug 1345283 - Add fuzzy-if for 1024473-1.html. r=gbrown
MozReview-Commit-ID: KmOF7097ruK

--HG--
extra : rebase_source : 2689ed9bb14a77037f4c37f39bd1baf0e1df0571
2017-04-01 20:22:46 +09:00
Kartikaya Gupta acefdfbab2 Merge m-c to graphics
MozReview-Commit-ID: Gmms6PhTr8U
2017-03-31 10:37:00 -04:00
Carsten "Tomcat" Book 095969b8ee merge mozilla-inbound to mozilla-central a=merge 2017-03-31 14:45:33 +02:00
Cameron McCormack a051e59594 Bug 1341102 - stylo: Add some fuzziness to box-decoration-break-with-inset-box-shadow-1.html. 2017-03-31 17:41:44 +08:00
Geoff Brown f04ad9ab13 Bug 1348653 - Increase fuzziness for reftest 722923-1.html; r=me,test-only
Checked with :mats about this.
2017-03-30 21:42:04 -06:00
L. David Baron 28b9e9b1d4 Bug 1351359 - Make nsGridContainerFrame call ReflowInput::SetBResize(true) because of auto-block-size swapping between measuring reflows and regular reflows. r=mats
This fixes the failure of
layout/reftests/css-grid/grid-min-max-content-sizing-002.html with the
primary patch in bug 1308876 (which causes a child whose parent is dirty
to pick up the dirty bit from the parent only the first reflow of the
child if the parent reflows the child multiple times).  A simplified
testcase for that failure is
https://bugzilla.mozilla.org/attachment.cgi?id=8849771 .

The failure was caused by an error in height calculation of the first
<x> in the test.  The div that is the parent of that x has a definite
height (presumably due to rules in grid), and the x has a specified
height.  The div gets three reflows:  two measuring reflows (from
MinContentContribution and then from MaxContentContribution) and then a
final reflow from nsGridContainerFrame::ReflowInFlowChild.  Prior to the
primary patch in this bug, the div was marked dirty on all three
reflows, but with it it is marked dirty only on the first.  This means
that, without the block-resize flag, the div optimizes away the reflow
of its children, since ShouldReflowAllKids returns false because
IsBResize() is false, even though NS_FRAME_CONTAINS_RELATIVE_BSIZE is
correctly set.

In order to fix this, we need to make sure the BResize flag on the
reflow state in at least some cases (see the comments in the patch for
when, and for how the cases could be optimized in the future).

Note that:

 * when the dirty bit is set on the grid container, the new behavior
   (with the combination of the patches) is strictly more efficient than
   the old, since we will sometimes do non-dirty reflows on the grid
   items (with the b-resize flag)

 * when the dirty bit is *not* set on the grid container, the new
   behavior is less efficient than the old, since we will set the
   b-resize flag when we did not do so before.  However, this slowdown
   fixes existing bugs such as the one in the reftest.

Given that I was able to construct a reftest that triggers the failure
without the changes from bug 1308876, I've moved this to a separate bug.
Without the patch, grid-measuring-reflow-resize-dynamic-001.html fails,
but grid-measuring-reflow-resize-static-001.html passes.  With the patch
both tests pass.  (And without the patch, doing a text zoom on the
dynamic test fixes the layout error.)

MozReview-Commit-ID: JQOdVTQIkU0

--HG--
extra : transplant_source : %8B%2ARO%3B%D0%7B%EC%C9_%B3%60Sp%F9T%14X%85%DC
2017-03-30 22:56:14 -04:00
L. David Baron 14dccbfd0b Bug 1352056 - Call nsIFrame::StyleDisplay less from nsFrame::FinishAndStoreOverflow. r=dholbert
MozReview-Commit-ID: 5zuNLfyPv8o

--HG--
extra : transplant_source : %17%5Bm6%BE%DF%D0%12%19%8BZ%FE%E4%EE%E2%7F%9FR%DF%BA
2017-03-30 22:56:14 -04:00
L. David Baron eb43b5f7d9 Bug 1352056 - Add nsIFrame::Style*WithOptionalParam helpers. r=dholbert
MozReview-Commit-ID: DFGBeKtg7hI

--HG--
extra : transplant_source : %F1%A7%FF%1Bo7%BD%FBkB%3D%F7%06C0%0B%18Z%B4%8F
2017-03-30 22:56:14 -04:00
Carsten "Tomcat" Book 74e36e1adb Merge mozilla-central to autoland on a CLOSED TREE
--HG--
extra : amend_source : 5026c19958cdc458c0f0887582fd00b8038fe93e
2017-03-30 16:48:10 +02:00
KuoE0 4f17947f0f Bug 1348738 - (Part 4) Add a nsIDocument arg to nsRepeatService::Start to get the event target from it. r=dholbert
In the new architecture of Quantum DOM, all timer callback need a
specified event target. So, we add the new document arg to Start
function to get the event target from it. And update all callers.

MozReview-Commit-ID: a482mukqGc

--HG--
extra : rebase_source : 36f9d47a4afd7c7113adf3f274656b694b8d0943
2017-03-29 16:40:05 +08:00
KuoE0 5f42875bfd Bug 1348738 - (Part 3) Add a string-label arg to nsRepeatService::Start and upgrade to InitWithNamedFuncCallback from InitWithFuncCallback. r=dholbert
In the new architecture of Quantum DOM, all runnables need a name label.
So, we add the new string-label arg to Start function, and update all
callers.

MozReview-Commit-ID: G9LXFjtFcQv

--HG--
extra : rebase_source : a19b605013be56d01780c831d2a48ada8825b1c7
2017-03-29 16:32:52 +08:00
KuoE0 6187dc2f18 Bug 1348738 - (Part 2) Make nsRepeatService use InitWithFuncCallback instead of InitWithCallback. r=dholbert
This patch makes nsRepeatService stop inheriting from nsITimerCallback.
We needed that inheritance for InitWithCallback, but we do not need it
for InitWithFuncCallback.

This patch also makes nsRepeatService singly-owned instead of being
refcounted, since we're left with only a single owning pointer.

MozReview-Commit-ID: Fl8beVC8kGH

--HG--
extra : rebase_source : 3b6223c8e4754a90d2fef460940fda4510310f95
2017-03-29 15:54:49 +08:00
KuoE0 809fa786fe Bug 1348738 - (Part 1) Refactor nsRepeatService's InitWithCallback calls into a common helper function. r=dholbert
MozReview-Commit-ID: 2uJNeSsrjSW

--HG--
extra : rebase_source : ac74d89168336f2a611d81793ae157162a55f3dc
2017-03-29 15:40:04 +08:00
KuoE0 123b9045b8 Bug 1348738 - (Part 0) Convert nsRepeatService::gInstance to be a file-scoped StaticRefPtr. r=dholbert
MozReview-Commit-ID: KSLs2tEFf7m

--HG--
extra : rebase_source : 902d743ab118e9ff93a364fec13f78eb118e3c73
2017-03-29 11:48:56 +08:00
Bobby Holley 57a56e6831 Bug 1341102 - Adjust test expectations. r=me
MozReview-Commit-ID: KRBatIslYWj
2017-04-05 12:02:47 -07:00
Sebastian Hengst 948595ff2f merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-04-01 13:12:04 +02:00
Sebastian Hengst 65f9bb8041 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5E7o1qELKmN
2017-04-01 13:09:55 +02:00
Brian Birtles 9d5c0d1978 Bug 1351038 - Completely disable test_animations_effect_timing_enddelay.html; r=me
This will be restored in bug 1352336.

MozReview-Commit-ID: 8OqaH5gmCJA
2017-04-01 18:05:37 +09:00
Brian Birtles a920654edf Bug 1351038 - Disable failing tests in test_animations_playbackrate.html, test_animations_iterationstart.html, and test_animations_effect_timing_enddelay.html; r=hiro
Bug 1352336 tracks restoring these.

MozReview-Commit-ID: D7ItNpUlfR2
2017-04-01 18:05:37 +09:00
Wes Kocher 3a0357deec Merge m-c to inbound a=merge 2017-03-31 17:53:52 -07:00
Wes Kocher 5c91602e70 Backed out 2 changesets (bug 1350660) for causing merge conflicts a=backout
Backed out changeset 13d070200dfe (bug 1350660)
Backed out changeset f033452487fc (bug 1350660)
2017-03-31 17:45:11 -07:00
Kartikaya Gupta 6c77e5ee0c Bug 1351777 - Use a BasicLayerManager in the content process if the corresponding parent-side layer manager isn't connected to the compositor. r=dvander
There are scenarios where we have a TabParent in the UI process hooked up to
a PuppetWidget with a BasicLayerManager. Webextensions fall into this category.
In this scenario, the parent-side layer manager is not hooked up to
the compositor (that is, there is no entry in the CompositorBridge layer tree
state map for the layers id). However, the content-side still ends up creating
a ClientLayerManager or a WebRenderLayerManager, which expects the layers id to
be registered in the compositor. This results in brokenness (in the case of the
ClientLayerManager/PLayerTransaction) or crashes (in the case of WebRenderLayerManager/
PWebRenderBridge). Instead, this patch changes this scenario to have the content
process use a BasicLayerManager which seems safer.

MozReview-Commit-ID: 3f80aZrRrmD

--HG--
extra : rebase_source : 10ec78dd7daf1c1c889929f0d79e0b75675b4b05
2017-03-31 11:43:21 -04:00
Kartikaya Gupta ec035abf34 Bug 1351777 - Remove aSuccess argument to RenderFrame constructor. r=dvander
Instead we can use the otherwise-unused function to check if initialization worked.
Technically, because of the way RenderFrame construction works, whether or not
initialization succeeds is exactly dependent on whether or not the frameloader is
non-null, so we could even just use that to check success. But this feels slightly
more readable/cleaner.

MozReview-Commit-ID: CGiIAA1h6V7

--HG--
extra : rebase_source : 2d4504f7d5fde3c394edca14fe01840c1738d197
2017-03-31 11:43:21 -04:00
Kartikaya Gupta 7736b345aa Bug 1351777 - Remove trivial function. r=dvander
There is already a GetLayersId function in RenderFrameParent.h that does the
exact same thing, and this private function is only used in one spot. Seems
unnecessary.

MozReview-Commit-ID: 6i7lwKQsSFM

--HG--
extra : rebase_source : 6cf688f6f4300bedffebfbb94d431deec0bff209
2017-03-31 11:43:20 -04:00
Boris Chiou cce4aeb6b8 Bug 1352067 - Part 2: Avoid passing any nullptr into Servo_AnimationValue_DeepEqual. r=hiro
The FFI type conversion in AnimationValue::as_arc will check if the
parameter is nullptr or not. If it is, we will get a debug assertion, so
we shouldn't pass a nullptr into it.

MozReview-Commit-ID: KWko2ipJwbo

--HG--
extra : rebase_source : f3e284da008b6c3bb3c56eb26c485f825b1188a7
2017-03-31 11:04:08 +08:00
Boris Chiou a583863fc8 Bug 1352067 - Part 1: Make sure AnimationValue::{mGecko|mServo} are mutually exclusive. r=birtles,emilio
We will obsolete StyleAnimationValue in the future, and can treat
AnimationValue as a wrapper of RawServoAnimationValue to hide the FFIs
at that moment. For now, we still need both types, so it's better to make sure
they are mutually exclusive in AnimationValue. Therefore, let's add some
assertions.

Besides, I think those FFIs might do many things and it seems those methods
are not critical, so let's move them into the cpp file, so we can remove
some dependencies to avoid re-compiling so many files if someone needs
revise ServoBindings.h.

MozReview-Commit-ID: FJ1uTvEQ7NT

--HG--
extra : rebase_source : 8ef99c659f2721c8425364051db19b66536bccc6
2017-03-31 17:46:37 +08:00
Carsten "Tomcat" Book 24a3095c04 Merge mozilla-central to autoland 2017-03-31 14:49:11 +02:00
bechen d75825c747 Bug 1350821 - Notify the mediaElement to render subtitle when the mCaption was created or re-created. r=rillian
MozReview-Commit-ID: 3RM7u8jumT9

--HG--
extra : rebase_source : 2a3ed8f304ac8fdf9c0cc897e2f70bd2d23e8101
2017-03-28 16:48:40 +08:00
Manish Goregaokar 1a52807756 Bug 1341102 - Update stylo test expectations
MozReview-Commit-ID: YQ4bixZsfo
2017-03-31 00:22:55 -07:00
Mason Chang 96cc223a05 Bug 1347727 - Enable outer box shadows by default in WR. r=rhunt 2017-03-27 16:32:55 -07:00
Kartikaya Gupta 618a729ba9 Merge m-c to graphics
MozReview-Commit-ID: IhFmzYDQJte
2017-03-30 08:55:36 -04:00
Andreas Tolfsen 4725e008d0 Bug 1350887 - Skip recommended Marionette prefs for reftests; r=whimboo
The recommended Marionette preferences for use in automation are not so
useful when testing the browser itself.  Many of the tests for Firefox
have highly specific requirements, and setting the recommended Marionette
preferences could for these mean a deterioration of test coverage.

The majority of test harnesses utilising Marionette use it to install
unsigned add-ons at runtime, and these preferences are not relevant in
this context.

To avoid an unfortunate and unintended regression in test coverage,
we skip using the recommended Marionette preferences when we test the
browser itself.

MozReview-Commit-ID: 4DeHZfQEX7d

--HG--
extra : rebase_source : bf31d336df7c4c28c04454338a912632087aa3ff
2017-04-04 16:34:03 +01:00
Iris Hsiao 1fda9ec2ec Backed out changeset aa46d54ab74b (bug 1321754) for stylo test failures 2017-04-05 16:56:36 +08:00
Shing Lyu c98fca71fd Bug 1353643 - reftest-stylo.list fixes. r=heycam
MozReview-Commit-ID: 9HPACBPCOB6

--HG--
extra : rebase_source : ee63c4854ea4c4cba7c1cd47b4af4fa711ca75fb
2017-03-29 15:16:47 +08:00
bechen 7b4c35c268 Bug 1318542 - fix testcases due to new pseudo element ::cue. r=heycam
MozReview-Commit-ID: F10y2zTtBoT

--HG--
extra : rebase_source : 8d6ab4a78c1fcd62dc688e9b31f7f1b6fb4056fc
2017-04-05 10:50:58 +08:00
bechen 30f3430251 Bug 1318542 - Make CueStyleBox apply ::cue. r=heycam,rillian
MozReview-Commit-ID: CNhFlffGAfh
* * *
[mq]: trash

MozReview-Commit-ID: KY2DfqPDmx0

--HG--
extra : rebase_source : fb16313ac5715ec1f544f8a80d0bad26aa42013d
2017-04-05 10:47:36 +08:00
Hiroyuki Ikezoe 69eba3c7ca Bug 1337695 - Enable tests which had been affected by an assertiton with "aRestlyeHint == 0". r=shinglyu
The assertion has been gone, three reftests in this patch
still fail but should be run now.

MozReview-Commit-ID: HKmPkcbaG7w

--HG--
extra : rebase_source : 8417b0192a7d49dd4f7f533ba5f09edce263b3db
2017-04-01 12:13:07 +09:00
Ting-Yu Lin 0119bb6b75 Bug 1321754 - Add an enum value to SheetParsingMode for agent sheets that use no unsafe rules. r=heycam
scrollbars.css is the only sheet which is parsed as author level, but later
added as agent level in [1]. Add a new enum value so that it can be parsed
as author level in gecko (nsCSSParser::AgentRulesEnabled() will exclude it),
but servo can recognize it as agent level sheet when the sheet is created.

Delete UserRulesEnabled() because no one uses it.

[1] http://searchfox.org/mozilla-central/rev/7419b368156a6efa24777b21b0e5706be89a9c2f/layout/base/nsDocumentViewer.cpp#2326

MozReview-Commit-ID: 2lrV4ogfnHM

--HG--
extra : rebase_source : 9d80a146f2ec5629999076ea1587e7d36f06afe7
2017-03-28 18:06:26 +08:00
Hiroyuki Ikezoe c7495b1957 Bug 1323679 - Enable some crash tests. r=shinglyu
MozReview-Commit-ID: 6MxVcZhC2oD

--HG--
extra : rebase_source : e255ac678c0df5ae14ac650d83577782fb00d452
2017-04-01 11:38:07 +09:00
Manish Goregaokar 27c6217632 Bug 1341102 - Update stylo reftest expectations; r=orange
MozReview-Commit-ID: FRHThUmyVWb
2017-04-05 00:15:13 -07:00
Brian Birtles 5986b384f6 Bug 1353208 - Add check for attribute namespace ID when we decide if it should animate as a CSS property or not; r=dholbert
This seems like an existing bug. If the content specifies
attributeType="yer:opacity", we should not try to animate it as a CSS property.
This patch adds a namespace check before we try to animate as a CSS property.

MozReview-Commit-ID: 1LpBa23ddqX

--HG--
extra : rebase_source : c5a4edb4c48bfd6116e58d4ef3eb91384ee86bd5
2017-03-30 16:13:02 +09:00
Manish Goregaokar b67b0cb1ef Bug 1341714 - Part 4: stylo: Add support for xml:lang; r=heycam
MozReview-Commit-ID: E0GpyPKES3k

--HG--
extra : rebase_source : 0395305db946b4b54427fa9a19f2c3796123e6f5
2017-03-26 13:53:34 -07:00
Manish Goregaokar 6ebe8fa88b Bug 1341714 - Part 3: stylo: Add support for <math> default language; r=heycam
MozReview-Commit-ID: LhhSBzYjow5

--HG--
extra : rebase_source : fcc9e8e21563a45a436653bacafe3cfd17bc5ff2
2017-03-26 13:53:34 -07:00
Manish Goregaokar a2be776eb5 Bug 1341714 - Part 2: stylo: Add support for <table> color quirk ; r=heycam
MozReview-Commit-ID: 56IKARwfbhw

--HG--
extra : rebase_source : af58d14da2e1c329ce2ace2b9cacf79b9adf0319
2017-03-26 13:53:34 -07:00
Manish Goregaokar 77fc773f44 Bug 1341714 - Part 1: stylo: Add support for text-align match-parent and the <th> -moz-center-or-inherit behavior ; r=heycam
MozReview-Commit-ID: GEDM7JfJB8A

--HG--
extra : rebase_source : 03690c3130406831887a1393e1d28c03e626eb42
2017-03-26 13:53:34 -07:00
Olli Pettay d47c995985 Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
--HG--
extra : rebase_source : b7d76ce3321ea0d622da74a72b7278fd0fa63310
2017-03-31 22:49:00 -04:00
Eric Rahm 861a58d5a4 Bug 1351904 - Switch layout over to ArenaAllocator. r=xidorn
This switches over layout's usage of PLArena to ArenaAllocator. This allows
us to build more files in unified sources and gets rid of various CONST masks.

MozReview-Commit-ID: Aaf3Dl2kaoz
2017-03-31 14:06:33 -07:00
Olli Pettay 31b1f5cc92 Backout Bug 1351860, r=backout 2017-03-31 16:55:32 -04:00
Olli Pettay b84c192a09 Bug 1351860 - Move mType from HTMLInputElement to nsIFormControl and make GetType non-virtual inlined, r=jessica
--HG--
extra : rebase_source : 5f2cac2c4e944e2c9f2f1acf0d3064e153c40451
2017-03-31 13:13:36 -04:00
David Anderson eea05e0e31 When using the GPU process, combine layer ownership and window mapping into a single IPC message. (bug 1350660 part 1, r=rhunt, r=billm) 2017-03-31 12:16:40 -07:00
Emilio Cobos Álvarez db6ff946b3 Bug 1341102: Fix expectations after servo/servo#16242. r=me
MozReview-Commit-ID: HTYeAVvcQXl
2017-04-05 00:42:24 +02:00
Markus Stange 13864d8014 Bug 1352380 - Make sure gradient stops have ordered mPosition variables. r=dbaron
MozReview-Commit-ID: DsP5Q6qmvH2

--HG--
extra : rebase_source : 69d1480d116fd6d2bf47e594aba478145d142786
2017-04-05 09:54:03 -04:00
Markus Stange 490c5ccf32 Bug 1353205 - Fix includes in nsImageRenderer.cpp again. r=rhunt
MozReview-Commit-ID: EQyAdbOCWtU

--HG--
extra : rebase_source : 2edd7a7c75e35bbe5909371ac851e907861d6644
2017-04-04 11:38:20 -04:00
Farmer Tseng 9294057596 Bug 1342872 - part2: Name the nsPagePrintTimer runnable and associate its nsITimers with a DocGroup r=bevistseng,jwatt
MozReview-Commit-ID: AfC84m1CoDm

--HG--
extra : rebase_source : 06eebd0e79d432a3aaa416e134c70bfbeb6627de
2017-03-30 22:49:43 +08:00
Farmer Tseng 6bb21eacb6 Bug 1342872 - part1: Label the runnable dispatched by NS_DispatchToCurrentThread in nsPrintEngine r=bevistseng,jwatt
MozReview-Commit-ID: BZhRUglmbMW

--HG--
extra : rebase_source : 6280fbd5d1c3d4c47c7fd925abfd9e00384b1ab6
2017-03-28 11:50:16 +08:00
Carsten "Tomcat" Book 14e0b51ace merge mozilla-inbound to mozilla-central a=merge 2017-04-04 12:35:03 +02:00
Carsten "Tomcat" Book 358125cbde Backed out changeset a86c4218ca5f (bug 1353187) 2017-04-04 09:54:51 +02:00
L. David Baron 6f4077b7ee Backed out changeset 74eb0b08e42b (bug 1353187 patch 2) for test failures (assertions firing). 2017-04-03 22:47:57 -07:00
Hiroyuki Ikezoe 3024b7c177 Bug 1352781 - Update mochitest expectations. r=manishearth
MozReview-Commit-ID: IqTPKhFbu7y

--HG--
extra : rebase_source : 6f847243aa342f834dc194519bb91598b82e31c2
2017-04-04 11:11:22 +09:00
Hiroyuki Ikezoe 1157654818 Bug 1352781 - Update reftest expectations. r=manishearth
MozReview-Commit-ID: GYo6DGU9u2V

--HG--
extra : rebase_source : ec6c553d1247d3d98a26ad26d16ea37f53c8a308
2017-04-04 11:11:18 +09:00
Timothy Nikkel 3f354b21bf Bug 1352074. Remove high precision timer mode from refresh driver because it is not needed with vsync based refresh drivers. r=mchang
Bug 731974 added this code to get more accurate timer callbacks back when the refresh driver was based on timers. It shouldn't be needed anymore now that the refresh driver is based on vsync.
2017-04-04 00:14:28 -05:00
L. David Baron 24c39a87ef Bug 1353187 - Guard access to the frame property table with a frame state bit. r=dholbert
This protects all accesses to the frame property table with a bit stored
on the frame.  This means we avoid hashtable operations when asking
about frame properties on frames that have no properties.

The changes to RestyleManager, and the new HasSkippingBitCheck API, are
needed because RestyleManager depended on being able to ask for
properties on a deleted frame (knowing that the property in question
could not have been set on any new frames since the deleted frame was
destroyed), in order to use the destruction of the properties that
happens at frame destruction as a mechanism for learning that the frame
was destroyed.  The changes there preserve the use of that mechanism,
although it becomes a bit uglier.  The ugliness is well-deserved.

MozReview-Commit-ID: BScmDUlWq65

--HG--
extra : transplant_source : %95%A2%9B%A1M%1F%86%A8%E0%FF%7B%E4%83%24%83%16%BE%FA%08T
2017-04-03 20:43:31 -07:00
L. David Baron c2af2e1613 Bug 1353187 - Give frame properties the const-ness semantics of member variables. r=dholbert
This makes it so that, given a |const nsIFrame*|, a caller can retrieve
properties but not set or remove them, but with an |nsIFrame*| all
operations are allowed.  I believe this is sensible since properties act
as extended member variables for things that are needed rarely, and
these are the const-ness semantics of member variables.

This also avoids the need for const_cast<nsIFrame*> to cast away const
in the following patch, which guards property access with a frame state
bit.

MozReview-Commit-ID: IJ9JnGzdH51

--HG--
extra : transplant_source : %91%D6%C7%01hC%B3z%90%B6%93%93qcAK%CB%09%D6z
2017-04-03 20:43:30 -07:00
David Anderson 0f3b97ed9c When using the GPU process, combine layer ownership and window mapping into a single IPC message. (bug 1350660 part 1, r=rhunt, r=billm) 2017-04-03 15:13:37 -07:00
Wes Kocher 53dde6a1d2 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Jonathan Kew c0f6fbe3a0 Bug 1349308 - Reftest for -apple-system glyph metrics adjustment. r=jrmuizel 2017-04-03 15:45:53 +01:00
Neil Deakin da85986703 Bug 1350192, when checking through the list of popups to hide when clicking outside the popup, don't include noautohide popups, r=ksteuber 2017-04-03 08:12:26 -04:00
Carsten "Tomcat" Book 8d910c41e3 merge mozilla-inbound to mozilla-central a=merge 2017-04-03 12:13:46 +02:00
Timothy Nikkel b211ea35d7 Bug 1350463. Consider visibility: hidden frames to be not visible in nsIFrame::UpdateVisibilitySynchronously to match PresShell::MarkFramesInSubtreeApproximatelyVisible. r=mats 2017-04-03 00:52:17 -05:00
Xidorn Quan e3e4554871 Bug 1351957 - Create URLExtraData for holding base uri, referrer, and principal. r=heycam
MozReview-Commit-ID: 1wqTb3kvvWh

--HG--
extra : rebase_source : cae3dba21c916ab0f52056bd9db215249b650cd3
2017-03-30 18:54:48 +11:00
Phil Ringnalda 7ac3bd5b7e Backed out 3 changesets (bug 1351074) for reftest harness and browser_all_files_referenced.js bustage
CLOSED TREE

Backed out changeset 941e0f9ff9a7 (bug 1351074)
Backed out changeset 4fdf3b87a70b (bug 1351074)
Backed out changeset 586428f69838 (bug 1351074)
2017-04-02 19:46:49 -07:00
Hiroyuki Ikezoe 54547a4abe Bug 1352891 - Update mochitest expectations for animation. r=hiro
MozReview-Commit-ID: GXY0HXJjdCj

--HG--
extra : rebase_source : 85e2e5ce23349505e3aeaf4b09513824a2418ab4
2017-04-03 09:59:47 +09:00
Makoto Kato cb61bf3b0e Bug 1351074 - Part 3. Include AsyncSpellCheckTestHelper.jsm in reftest. r=masayuki
reftest cannot use testing-common, so we should include AsyncSpellCheckTestHelper.jsm in reftest.jar.

MozReview-Commit-ID: KeyDLjc9AUI

--HG--
extra : rebase_source : 0c967b38faf506c2e93abc8707e27cfa5388de00
2017-03-31 14:20:55 +09:00
Makoto Kato cd8761e0f4 Bug 1351074 - Part 2. Use testing-common for AsyncSpellCheckTestHelper.jsm. r=masayuki
TESTING_JS_MODULES uses testing-common, not gre.  So we should replace gre with testing-common for mochitest.

MozReview-Commit-ID: BqsS2D3IGR6

--HG--
extra : rebase_source : 2143fcdf33c428c82c6b2e00b542649b958aeccc
2017-03-29 15:34:49 +09:00
Jim Porter 05006bd209 Bug 1324560 - Update test_bug961363.html to support e10s-based <select> dropdowns; r=mconley
e10s-based <select> dropdowns behave differently from the old, non-e10s
version. Most notably, their .value isn't updated until the dropdown is closed
and the change confirmed (e.g. by hitting Enter). Since this test originally
hit ctrl+space at the end of each test, this would open up the dropdown and
effectively trigger the different behavior. Now, the test only hits ctrl+space
for <select multiple> elements.
MozReview-Commit-ID: G3toKNdRgC8

--HG--
rename : layout/forms/test/test_bug961363.html => layout/forms/test/test_select_key_navigation_bug961363.html
extra : rebase_source : 26e581ae7f72a1c993915de1bcf2a325d2d86583
2017-03-23 16:27:37 -05:00
Hiroyuki Ikezoe 5be49010db Bug 1352771 - Update mochitest expectations. r=bholley
MozReview-Commit-ID: DAzQfWhVMwN

--HG--
extra : rebase_source : 25b1e0a39f2e1dac0c8659cd383d441354a6f1c5
2017-04-03 07:26:41 +09:00
Hiroyuki Ikezoe af249c90ab Bug 1352771 - modify flexbox reftest expectations. r=bholley
MozReview-Commit-ID: 8QCs5TPFKP

--HG--
extra : rebase_source : d443d80f0d4642bca5825379ad020307769a7cae
2017-04-03 07:26:41 +09:00
Markus Stange fcdd5dbd1f Bug 1351920 - Remove the nsCString&& version of PROFILER_LABEL_DYNAMIC because it makes misleading promises about performance. r=njn
MozReview-Commit-ID: I4y5xnFyfUj

--HG--
extra : rebase_source : 8cd3d9fc90df1cb7ff6199cf0a5b1cf3319bebe0
2017-03-29 21:47:51 -04:00
Masayuki Nakano 28770793c6 Bug 1344990 part.1 gfx and layout should refer "font.name-list.*" when "font.name.*" is empty r=jfkthame
When "font.name.*" is empty, it means "default", i.e., use the first font of "font.name-list.*".

In most cases, we don't need to change existing "font.name.*" handlers which refer "font.name-list.*".  However, handlers which refer only "font.name.*", we need to add the code to refer "font.name-list.*" too.

MozReview-Commit-ID: B37y1Ld9Azg

--HG--
extra : rebase_source : f944893ff38d5f2072b5014dccf455045ddafd19
2017-03-29 23:21:47 +09:00
Xidorn Quan 6b25514c1d Bug 1341102 - Update mochitest expectation.
MozReview-Commit-ID: JW3q9cKfzWL
2017-04-03 23:57:25 +10:00
Xidorn Quan 9e0820a962 Bug 1352025 part 3 - Update test expectations. r=manishearth
As a side effect of unifying url handling in part 1, url values in
unparsed property value and variable now works, thus this change.

MozReview-Commit-ID: JnZFU4JDMrN

--HG--
extra : rebase_source : 3dc5059801822f0f6beab051fb643f491d3bda18
2017-04-01 18:29:36 +11:00
Xidorn Quan 2da48b454d Bug 1352025 part 2 - Stop passing in url as string for parsing. r=manishearth
MozReview-Commit-ID: CRgOO7NyYd9

--HG--
extra : rebase_source : 6b04d1c001082740abfc344fdb2a7f0351c3d7d9
2017-04-01 16:17:55 +11:00
Xidorn Quan 4f6e257d03 Bug 1352025 part 1 - Use a UrlExtraData type alias to unify url handling logic. r=manishearth
MozReview-Commit-ID: 6gZHGQWbpAW

--HG--
extra : rebase_source : 0780021a0e5ef14b380ec247418c1c709056e792
2017-03-31 12:03:45 +11:00
Xidorn Quan 1e6b39eb51 Bug 1352763 part 4 - Pass CSS loader to Servo for insertRule. r=emilio
MozReview-Commit-ID: 6yalz8D8BWc

--HG--
extra : rebase_source : a76c8ee72806b0326cab9fe251ce23d4bf935609
2017-04-03 20:04:32 +10:00
Xidorn Quan b49153b29e Bug 1352763 part 3 - Have ServoStyleSheet also implement nsICSSLoaderObserver. r=heycam
MozReview-Commit-ID: 1Z6jAmQ9CY6

--HG--
extra : rebase_source : 1e228d29b6cd6afdc1b47dd28e5a4ff9a79d5af7
2017-04-03 19:55:06 +10:00
Xidorn Quan e0f34c4221 Bug 1352763 part 2 - Pass borrowed child stylesheet to Gecko for loading rather than the import rule. r=emilio
This is necessary because if we pass in the import rule, we would need
to invoke Servo_ImportRule_GetSheet to get the child sheet. However,
Servo_ImportRule_GetSheet tries to lock the global rwlock with read
access, while Servo_CssRules_InsertRule has already locked the same
rwlock with write access for the CSSOM case.

Since the import rule itself is never needed in the code path, it is
easier to just pass in the child stylesheet.

MozReview-Commit-ID: 4njNyGniPIm

--HG--
extra : rebase_source : ad88929713fdc5a581addc044094fa8130125121
2017-04-03 16:18:49 +10:00
Xidorn Quan 164e113be0 Bug 1352763 part 1 - Constify RawServoStyleSheet. r=heycam
MozReview-Commit-ID: IXWGobgV59f

--HG--
extra : rebase_source : b569e1e7d30f00f300d91e465048c54024ab82f2
2017-04-03 16:19:32 +10:00
Masayuki Nakano 99a1135919 Bug 1351332 gfxDWriteFontList and gfxGDIFontList should ignore italic face of Meiryo for using synthetic italic style r=jfkthame
Meiryo has same glyph for both normal style and italic/oblique style.  Therefore, if we will use it as default Japanese font, italic/oblique style won't be used in Japanese text.  It's too bad for <em>, <i> and backward compatibility with MS PGothic.

This patch makes gfxDWriteFontList and gfxGDIFontList ignore italic style face(s) of Meiryo at creating Meiryo's font face list.

Note that in GDI mode, font names are localized.  Therefore, we need to compare with both English name and Japanese name.  However, in DirectWrite mode, face names are not localized.  Therefore, it's enough to compare only with English face names.

MozReview-Commit-ID: 60tFxB0jcd

--HG--
extra : rebase_source : 45eb61403f97cd765de1b81c290c29632d8174e5
2017-03-29 18:38:41 +09:00
Carsten "Tomcat" Book 2c5e0e8650 Merge mozilla-central to autoland 2017-04-03 12:33:12 +02:00
Emilio Cobos Álvarez 6aaa11721c Bug 1341102: Adjust expectations for servo/servo#16224. r=emilio
MozReview-Commit-ID: Lm6CuzHdhGn
2017-04-03 11:39:27 +02:00
Makoto Kato 17ed0da277 Bug 1351074 - Part 3. Include AsyncSpellCheckTestHelper.jsm in reftest. r=masayuki
reftest cannot use testing-common, so we should include AsyncSpellCheckTestHelper.jsm in reftest.jar.

Previous fix has typo of chrome vs resource.  It should be chrome://.

MozReview-Commit-ID: KeyDLjc9AUI

--HG--
extra : rebase_source : 5bf2e6f4105f3437fb3c88410a246e1b85b1bf1d
2017-04-03 12:37:48 +09:00
Makoto Kato cd753d1158 Bug 1351074 - Part 2. Use testing-common for AsyncSpellCheckTestHelper.jsm. r=masayuki
TESTING_JS_MODULES uses testing-common, not gre.  So we should replace gre with testing-common for mochitest.

MozReview-Commit-ID: BqsS2D3IGR6

--HG--
extra : rebase_source : a8553684f8f106c1dfb6e2d9b51df7ebeb15275d
2017-03-29 15:34:49 +09:00
Jamie Nicol 3661bae08d Bug 1339575 - Add pref to create color layers for nsDisplaySolidColor. r=mstange
Switched off for now as it causes reftest failures.

MozReview-Commit-ID: EzU8fhncppS
2017-03-13 16:02:09 +00:00
Kartikaya Gupta 317d304694 Merge m-c to graphics
MozReview-Commit-ID: 9kxCUtDZT9J
2017-03-29 10:24:15 -04:00
Ryan VanderMeulen f4a0d77ffc Merge inbound to m-c. a=merge 2017-03-29 09:41:54 -04:00
Mason Chang e08bd7cbdb Bug 1351114 Properly track display item layers in layer managers. r=mattwoodrow 2017-03-28 22:37:11 -07:00
Kartikaya Gupta 7f14241f6d Bug 1349692 - Adjust fuzziness of a couple of reftests with webrender. r=jrmuizel
The fuzziness was introduced by https://github.com/servo/webrender/pull/966 and
might be fixed in the future, see discussion starting at
https://github.com/servo/webrender/pull/966#issuecomment-289332927

MozReview-Commit-ID: AIx6FY8XAiK
2017-03-28 17:49:17 -04:00
Kartikaya Gupta cbf426c332 Merge m-c to graphics
MozReview-Commit-ID: GvQyuOvxr8o
2017-03-28 09:12:16 -04:00
Carsten "Tomcat" Book 5b9719c5fc merge mozilla-inbound to mozilla-central a=merge 2017-03-28 13:03:25 +02:00
Ethan Lin bb6943a029 Bug 1349497 - Add pref to create color layer for nsDisplayBackgroundColor. r=mchang 2017-03-28 16:48:14 +08:00
Mason Chang 3b2070933d Bug 1350182 - Enable button border display items by default. r=ethlin 2017-03-27 13:09:55 -07:00
Kartikaya Gupta ec69fdebcf Merge m-c to graphics
MozReview-Commit-ID: I4ehbSXNLmS
2017-03-27 09:18:34 -04:00
Carsten "Tomcat" Book 8fa2774978 merge mozilla-inbound to mozilla-central a=merge 2017-03-27 12:57:16 +02:00
Ethan Lin adb68a37f8 Bug 1348755 - Part2. Turn the pref on by default and set fuzzy for some reftests. r=mattwoodrow 2017-03-27 16:17:45 +08:00
Ethan Lin caa395107a Bug 1348755 - Part1. Handle clipping region for nsDisplayOutline. r=mattwoodrow 2017-03-27 16:17:45 +08:00
Paul Bignier e2808177ef Bug 1350703 - Typo fixes in code-comments within layout/XUL. r=dholbert
DONTBUILD because comment-only.
2017-03-26 18:37:10 +02:00
Iris Hsiao 5bed2bfda5 Backed out changeset 6e4ccddb5c4b (bug 1350671) for build bustage 2017-03-28 15:23:59 +08:00
Kartikaya Gupta 3956a6bca3 Merge m-c to graphics
MozReview-Commit-ID: FT418lFT961
2017-03-24 10:10:11 -04:00
Carsten "Tomcat" Book 7419b36815 merge mozilla-inbound to mozilla-central a=merge 2017-03-24 14:24:21 +01:00
Cameron McCormack d140502cb4 Bug 1349487 - stylo: Eagerly style content appended in a ShadowRoot. r=bholley
MozReview-Commit-ID: FnTwSW8YF2p

--HG--
extra : rebase_source : c6b3fded16466bd140b01e57bb471630dd633ffc
2017-03-24 14:44:11 +08:00
Cameron McCormack e945f00cd0 Bug 1350671 - stylo: Allow resolving out of date styles when explicitly reconstructing frames for an element. r=bholley
MozReview-Commit-ID: A7ssy7ygWLh

--HG--
extra : rebase_source : 7f8fa109f1a739b68525e3ff662024267189d93f
2017-03-28 13:46:59 +08:00
L. David Baron 7e875bb62c Bug 1350149 - Make display-reflow print reflow status in more cases. r=dholbert
This makes the display-reflow information for
layout/reftests/w3c-css/submitted/css21/pagination/moz-css21-float-page-break-inside-avoid-4.html
more clear, since it means we include previously-omitted
inline-break-before statuses (not really inline in this case!), such as:
  status=[Complete=Y,NIF=N,Truncated=N,Break=B,FirstLetter=N]

It was useful when debugging various tests for bug 1308876.

MozReview-Commit-ID: AL38FH6wuOa

--HG--
extra : transplant_source : 15%21%86%3C%1B%5C%C5s%7C9%26%FEo%B5%20%F7%E6%E4x
2017-03-23 23:36:53 -07:00
Hiroyuki Ikezoe 55c2a5ea95 Bug 1351145 - Enable reftest for CSS animation on pseudo element. r=boris
MozReview-Commit-ID: 102ccHdfLPh

--HG--
extra : rebase_source : 4461b7e7870ef4c0d9367405cbe0fb9e5474f383
2017-03-28 11:10:11 +09:00
Cameron McCormack ab48ee3d46 Bug 1350789 - Make CSSStyleSheet::SizeOfIncludingThis correctly check for shared inners. r=bradwerth
MozReview-Commit-ID: 3hsuiR5SwZT

--HG--
extra : rebase_source : db1a2eb4fd604655102fc031abb1e26e35f92bc1
2017-03-27 16:49:37 +08:00
Mason Chang 72173b1708 Bug 1348414 Always snapshot after no more paints are pending if WR is enabled. r=mattwoodrow 2017-03-22 12:20:00 -07:00
Kartikaya Gupta 0fee7584e7 Merge m-c to graphics
MozReview-Commit-ID: 1rTRVEHequ9
2017-03-23 10:01:31 -04:00
Carsten "Tomcat" Book 492970c342 merge mozilla-inbound to mozilla-central a=merge 2017-03-23 13:44:09 +01:00
Carsten "Tomcat" Book 9b6d088496 merge autoland to mozilla-central a=merge
--HG--
rename : browser/components/preferences/in-content/tests/browser_advanced_siteData.js => browser/components/preferences/in-content-old/tests/browser_advanced_siteData.js
rename : dom/media/mediasink/DecodedAudioDataSink.cpp => dom/media/mediasink/AudioSink.cpp
2017-03-23 13:42:40 +01:00
cku 38afa468c3 Bug 1349462 - Part 2. one line for static function. r=jwatt
MozReview-Commit-ID: 9jVkHtLouVN

--HG--
extra : rebase_source : 8a512a93e562129475c68feba1e50f6b28edd37e
2017-03-23 16:53:47 +08:00
cku a52259bf72 Bug 1349462 - Part 1. Rename IsSVGText as IsInSVGTextSubtree. r=heycam
MozReview-Commit-ID: LTo6c8tTtaf

--HG--
extra : rebase_source : bc6913c42cca141d7a3098fdd4dcc72fbf146b5a
2017-03-23 15:29:11 +08:00
Wes Kocher b31e9e6a39 Merge inbound to central, a=merge
MozReview-Commit-ID: EQ7w1Gld1K2
2017-03-22 17:10:01 -07:00
Kartikaya Gupta 622a049d19 Bug 1349675 - Update webrender annotations for tests that no longer crash or produce random results. r=rhunt
MozReview-Commit-ID: KZPbrqWsFtc
2017-03-22 15:47:39 -04:00
Jeff Muizelaar 49eb5ba0b6 Bug 1285533. Remove non-fontconfig platform fontlist codepath. r=lsalzman
This has been disabled for two years. It's time for it to die.
2017-03-22 14:58:19 -04:00
Kartikaya Gupta 47c42c47ea Bug 1322816 - Re-enable some skipped reftests now that WebRender handles them. r=rhunt
MozReview-Commit-ID: 1egwR8QAZ2O
2017-03-22 13:56:33 -04:00
Kartikaya Gupta 9608ac4946 Merge m-c to graphics
MozReview-Commit-ID: Ci50iHfzKbA
2017-03-22 09:55:38 -04:00
Carsten "Tomcat" Book 62f6c37109 merge mozilla-inbound to mozilla-central a=merge 2017-03-22 14:26:27 +01:00
Wes Kocher 8c7c009cdf Merge m-c to autoland, a=merge
MozReview-Commit-ID: 87ulQGa6DgN
2017-03-27 17:19:20 -07:00
Wes Kocher ed79d988f0 Merge autoland to central, a=merge
MozReview-Commit-ID: 4DDSNU4ABBB
2017-03-27 17:03:30 -07:00
Bobby Holley ffdc76986b Bug 1351026 - Followup build bustage fix. rpending=froydnj CLOSED TREE
MozReview-Commit-ID: FnzU7d5Emq1
2017-03-27 14:34:46 -07:00
Nazım Can Altınova f876204de1 Bug 1350714 - Increase expected assertion range to 8 for background-draw-nothing-malformed-images.html r=emilio
MozReview-Commit-ID: 3aCyMzvNqeT

--HG--
extra : rebase_source : 8bb014a70b63e2543819675aec9d1303397f6c2b
2017-03-27 20:37:26 +03:00
Carsten "Tomcat" Book 534f3aebc6 Merge mozilla-central to mozilla-inbound 2017-03-22 16:13:03 +01:00
Kartikaya Gupta 7fc02188d8 Merge m-c to graphics
MozReview-Commit-ID: AxmKwI9dnre
2017-03-21 09:21:34 -04:00
Carsten "Tomcat" Book 6fd1303c2a merge mozilla-inbound to mozilla-central a=merge 2017-03-21 12:04:43 +01:00
Andrea Marchesini 507c00cb9f Bug 1343933 - Renaming Principal classes - part 4 - ContentPrincipal, r=qdot
--HG--
rename : caps/nsPrincipal.cpp => caps/ContentPrincipal.cpp
rename : caps/nsPrincipal.h => caps/ContentPrincipal.h
2017-03-22 11:39:31 +01:00
Andrea Marchesini f91cb666bb Bug 1343933 - Renaming Principal classes - part 3 - SystemPrincipal, r=qdot
--HG--
rename : caps/nsSystemPrincipal.cpp => caps/SystemPrincipal.cpp
rename : caps/nsSystemPrincipal.h => caps/SystemPrincipal.h
2017-03-22 11:39:08 +01:00
Andrea Marchesini 1fd1bc3935 Bug 1343933 - Renaming Principal classes - part 2 - NullPrincipal, r=qdot
--HG--
rename : caps/nsNullPrincipal.cpp => caps/NullPrincipal.cpp
rename : caps/nsNullPrincipal.h => caps/NullPrincipal.h
rename : caps/nsNullPrincipalURI.cpp => caps/NullPrincipalURI.cpp
rename : caps/nsNullPrincipalURI.h => caps/NullPrincipalURI.h
2017-03-22 11:38:40 +01:00
Timothy Nikkel 5587bb56c5 Bug 1346109. Set a displayport base rect in MobileViewportManager::UpdateDisplayPortMargins when we are setting displayport margins. r=botond
It's easy to calculate because it's always a root content document.
2017-03-21 00:16:41 -05:00
Bobby Holley cbcf9903c7 Bug 1351026 - Whitelist the compositor thread in DO_RESET. r=emilio
MozReview-Commit-ID: 3k6Rrq7mbWx
2017-03-27 13:11:10 -07:00
JerryShih e4e7794105 Bug 1347164 - set expected-fail for css-color-4 test with stylo. r=xidorn
Currently, stylo doesn't have css-color-4 implementation. Set expected-fail for these tests.

--HG--
extra : rebase_source : 7740e267deed0482a25289704868cadd30e35e0f
2017-03-20 17:26:06 +08:00
JerryShih bd940f844f Bug 1347164 - css-color specified style test. r=dholbert
MozReview-Commit-ID: 6RRhz8ftEVO

--HG--
extra : rebase_source : f9f2ce3b84384d3b265d4da7b965dce147165688
2017-03-20 17:26:06 +08:00
JerryShih 72a3987a48 Bug 1347164 - rewrite mochitest test_specified_value_serialization.html to look more like test_computed_style.html. r=dholbert
MozReview-Commit-ID: 4XSBQXtYSth

--HG--
extra : rebase_source : e412de66d6cafa3246036df19185b7be270fb026
2017-03-20 17:26:06 +08:00
JerryShih d54436c0d2 Bug 1347164 - css-color computed style test. r=dholbert
MozReview-Commit-ID: 36qT5LxhB9Z

--HG--
extra : rebase_source : b1bfc7113e93566b940449c4970f4a96cdc122e4
2017-03-20 17:26:06 +08:00
JerryShih 5094f3ce80 Bug 1347164 - serialize colors using "rgba()" as the color-function, if they have a non-opaque alpha channel. r=dholbert
MozReview-Commit-ID: 44T8gy7UWFJ

--HG--
extra : rebase_source : 58f8621c70e0acff99f95d3305ef7ef0cc11c870
2017-03-20 17:26:05 +08:00
Tooru Fujisawa c5a8c23dab Bug 1331092 - Part 4: Add release_or_beta variable to reftest condition. r=jmaher 2017-03-27 23:20:18 +09:00
Kris Maglione 29d2dd60eb Bug 1348442: Part 2a - Asynchronously load and cache content script CSS. r=aswan
MozReview-Commit-ID: 1BzLNbdXMfU

--HG--
extra : rebase_source : fbbf411098ad111056816e24f50c2e3e03ea80ae
2017-03-23 18:51:38 -07:00
Kris Maglione dabd327027 Bug 1348442: Part 1 - Allow loading preloaded stylesheets asynchronously. r=heycam
These changes allow us to asynchronously load pre-loaded stylesheets, in a way
that's similar to ChromeUtils.compileScript. The new method returns a Promise
which resolves to the preloaded sheet once it's finished loading.

This will allow us to remove the last remaining use of synchronous channels in
moz-extension: URLs.

MozReview-Commit-ID: 7J52ff93YKT

--HG--
extra : rebase_source : 20fa013cdc7f5fbedb5ce671ede17765a2abbac2
2017-03-19 19:33:49 -07:00
Mason Chang d1c245a2c8 Bug 1348408 - Only create inset box shadow WR layers for cases WR supports. r=rhunt 2017-03-15 13:40:00 -07:00
Kartikaya Gupta 0a0a696241 Merge m-c to graphics
MozReview-Commit-ID: 2CbNs260zlf
2017-03-20 10:07:29 -04:00
Ethan Lin 803515ec05 Bug 1347871 - Do not create webrender commands if the image renderer doesn't have image container. r=mattwoodrow
--HG--
extra : rebase_source : 4b796a83e76b0dc812208a408570a63618ef47a1
2017-03-20 16:27:55 +08:00
Cameron McCormack 52f712bba2 Bug 1338461 - Pass eRestyle_StyleAttribute through to Servo_NoteExplicitHints. r=bholley
MozReview-Commit-ID: C7HIOTs1SSY

--HG--
extra : rebase_source : 638fe3e1c9ecf47dcd9b175ae03344450417c7da
2017-03-20 14:42:31 +08:00
Ethan Lin 58f9109c72 Bug 1343450 - Convert nsDisplayCanvasBackgroundColor to WebRenderDisplayItemLayer. r=mattwoodrow 2017-03-20 14:41:55 +08:00
Mason Chang f47b17cdff Bug 1347727. Detect box shadow outer cases that WR doesn't support and don't enable a layer for it in WR. r=rhunt 2017-03-17 15:06:57 -07:00
Kartikaya Gupta 99947c2a87 Merge m-c to graphics
MozReview-Commit-ID: 3MU0IxcKSwo
2017-03-17 15:37:52 -04:00
Wes Kocher ee28f4ee71 Merge inbound to central, a=merge
MozReview-Commit-ID: Fq7B78wD7Wv
2017-03-17 11:03:59 -07:00
Kartikaya Gupta 0485af4853 Merge m-c to graphics
MozReview-Commit-ID: 5m04vXUTlsy
2017-03-17 11:03:02 -04:00
Carsten "Tomcat" Book 3e0a5441c6 Merge mozilla-central to mozilla-inbound 2017-03-17 14:55:15 +01:00
Jeremy Chen 9a60f77d80 Bug 1343516 - clean up the mess of PropertyProvider and its implementations. r=jfkthame
The cleanup work includes:

part 1: make all methods 'const' for the abstract class of PropertyProvider.

part 2: make nsFontMetrics's StubPropertyProvider final.

part 3: make nsTextFrame's PropertyProvider final.

  Make some methods 'const' and some variables 'mutable', so we could let all the
  overridden methods stay const.

  We also need to make the pass-in parameter of gfxFontGroup's GetHyphenWidth const.
  Note that the comment of GetHyphenWidth seem outdated, so I fixed it as well.

part 4: make the member variables in nsTextFrame's PropertyProvider to be 'const'.

  Make all the member variables 'const' except mStart, mLength,
  mJustificationArrayStart, and mJustificationSpacings.

  The static function AdvanceToNextTab is fixed since we only use 2 of the 4 parameters.

part 5: coding style fix for nsTextFrame's PropertyProvider.

MozReview-Commit-ID: 1kbWPwx27aQ
2017-03-17 18:53:15 +08:00
Jeremy Chen 39b7492e90 Bug 1348615 - [stylo] update mochitest expections for text-size-adjust. r=xidorn
MozReview-Commit-ID: 1jgt9fE6lab

--HG--
extra : rebase_source : 7c51c6ff243cb64163ad2ad0bfcd2805c8c5acc2
2017-03-20 11:56:17 +08:00
Miko Mynttinen 6e4add711b Bug 1346777 - Transform layer geometry properly when intermediate surface is used r=mattwoodrow
MozReview-Commit-ID: H3YmadD8sFz

--HG--
extra : rebase_source : 8bd9f9b58d8e50fd925299fec6fc464ee50886c0
2017-03-16 21:51:54 +01:00
Ethan Lin 45be150fbd Bug 1347445 - Create border layer for non-QR case. r=mchang 2017-03-16 16:54:12 +08:00
Sebastian Hengst 0f9e0165a3 Bug 1341102: Adjust expectations for servo/servo#15604 and servo/servo#16028: Fix reftest expectation format. r=reftest-fix on a CLOSED TREE
--HG--
extra : amend_source : 673cc7490524789c15a9dca831c70b6cfe1fe8c4
2017-03-20 00:22:39 +01:00
Cameron McCormack 9f3f895b0e Bug 1349134 - stylo: Style newly appended children of an element with a binding through their flattened tree parents. r=bholley
MozReview-Commit-ID: 3fQouTm2bw4

--HG--
extra : rebase_source : 599fe1e790c9fb352eb0e81f8f9b08e4012541f2
2017-03-24 14:27:22 +08:00
Ting-Yu Lin 2e6fb1ff59 Bug 1322570 Part 9 - Print StyleContext parents in frame tree dump only if they're gecko rule nodes. r=bholley
MozReview-Commit-ID: 7BrvmTPJqhe

--HG--
extra : rebase_source : 386897e5d82543f94f5de3696c7d613a242a5f1d
2017-03-22 17:43:40 +08:00
Ting-Yu Lin 9e0bdb7f1e Bug 1322570 Part 8 - Run debug code only if the style source is a gecko rule node. r=bholley
Per bug 1322570 comment 27, the debug code is only useful in Gecko-backed
style system. To prevent the assertion in nsStyleContext::GetParent() when
running stylo, run them only in gecko.

MozReview-Commit-ID: DOcJ3T7vS1J

--HG--
extra : rebase_source : 33fd6caaa4ada9530fe8d874b827d91ac355e0c1
2017-03-20 17:05:16 +08:00
Ting-Yu Lin fd01a09628 Bug 1322570 Part 7 - Use GetParentAllowServo() in nsMathMLChar. r=bz
The nsMathMLChar has SetStyleContext() that can change nsStyleContext. It's
not obvious how to get parent style context other than calling GetParent().
So white-list this case for now.

Fixed tests like layout/reftests/bugs/347348-1.xhtml.

MozReview-Commit-ID: JZU1IzcMxs8

--HG--
extra : rebase_source : 41880ffdc6064dd06e1cee6046a4cf64535d77b2
2017-03-20 14:14:30 +08:00
Ting-Yu Lin 0a2de7f987 Bug 1322570 Part 6 - Use GetParentAllowServo() in RestyleManager. r=bz
Fixed tests like layout/reftests/bidi/670226-1.html.

MozReview-Commit-ID: DuEXNZhFC7M

--HG--
extra : rebase_source : c738d3457a2e1caac6a09df90ec29d6337deae56
2017-03-20 14:14:01 +08:00
Ting-Yu Lin b8a643b87e Bug 1322570 Part 5 - Use GetParentAllowServo() related to first letter frame. r=bz
::first-letter is not support by stylo yet. (bug 1324618)

MozReview-Commit-ID: KwQk2jhn53c

--HG--
extra : rebase_source : 9bafad53a38fd11aae7be09780ee7680d9a40e1c
2017-03-20 14:13:32 +08:00
Ting-Yu Lin 954acaddd0 Bug 1322570 Part 3 - Get StyleContext from parent frame in nsFlexContainerFrame::Init(). r=dholbert
In stylo, nsStyleContext::GetParent() is not valid.

MozReview-Commit-ID: 5FbgUwobG3U

--HG--
extra : rebase_source : 47910f056eaf59af4e68276dd8e48b2a86634874
2017-03-20 14:12:28 +08:00
Ting-Yu Lin 5696ee9603 Bug 1322570 Part 2 - Resolve {align,justify}-self using StyleContext from alignment container frame in ReflowInput::InitConstraints(). r=dholbert
Per bug 1322570 comment 46, it's not easy to replace ComputedJustifyItems()
and UsedJustifySelf()'s internal nsStyleContext::GetParent() without
correctness penalty, so we use GetParentAllowServo() for now.

Also, fix the reftest.list added in bug 1334403 which incorrectly wrote test
page as reference page.

MozReview-Commit-ID: 6kAAWSFojd5

--HG--
extra : rebase_source : 2d03302115dd40281cec27bc18750b6933682855
2017-03-20 14:12:08 +08:00
Ting-Yu Lin b71ec494d5 Bug 1322570 Part 1 - Add MOZ_ASSERT in nsStyleContext::GetParent() to disallow usage by stylo. r=bz
Also, add GetParentAllowServo() to whitelist the usage in servo-backed style
system in subsequent parts so that we could revisit them later.

MozReview-Commit-ID: JthU18Ftx02

--HG--
extra : rebase_source : b8840adcc4959f96cd429db65584f3e83c09c597
2017-03-20 14:11:06 +08:00
cku 41457fd44b Bug 1345946 - Part 2. Test that an SVG mask applied to an outer-<svg> uses its frame bounds. r=jwatt
MozReview-Commit-ID: 6wFsawrHqWi

--HG--
extra : rebase_source : 4c25b93136bc7b72fef060a0258010ace6756d31
2017-03-24 10:43:17 +08:00