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

59293 Коммитов

Автор SHA1 Сообщение Дата
Ehsan Akhgari dd8fbce0c9 Bug 1386411 - Part 6: Add a more efficient nsISelectionController::GetSelection() API for retrieving native Selection objects; r=bzbarsky
This API avoids needless refcounting and QueryInterface overhead.
2017-08-03 17:05:24 -04:00
Ehsan Akhgari ad87011a1d Bug 1386411 - Part 5: Make BaseEditor::GetSelectionController() return nsISelectionController*, and inline it; r=masayuki
This method can be extremely hot, so we need to remove all sources of XPCOM
overhead from it.  This includes the usages of weak pointers (thanks to the
previous parts), refcounting, and QueryInterface.

I kept the callers hold the selection controller alive by assigning the
return value to an nsCOMPtr in places where the methods called on it could
have a remote chance of messing with the lifetime of objects.
2017-08-03 17:05:22 -04:00
Ehsan Akhgari 064dd8f2a2 Bug 1386468 - Only register SelectionChangeListener for plaintext controls when dom.select_events.textcontrols.enabled is turned on; r=mystor 2017-08-03 17:01:40 -04:00
Kartikaya Gupta c474e2d82f Bug 1386747 - Put the scroll thumb's animation id in the scroll data for APZ. r=ethlin
MozReview-Commit-ID: fELBQVHky6
2017-08-03 15:32:01 -04:00
Kartikaya Gupta 7a68e63770 Bug 1386747 - Ensure that scroll thumb display items generate animation IDs. r=ethlin
We need to create a WebRenderAnimationData item in order to preserve the
animation id on the frame - this allows to re-use the same animation id
over multiple display list building phases.

MozReview-Commit-ID: 5Uj5sv6FUgt
2017-08-03 15:31:50 -04:00
Joel Maher 141ab7e8ee Bug 1379810 - Intermittent layout/base/tests/test_scroll_snapping_scrollbars.html. disable for windows. r=gbrown
MozReview-Commit-ID: 86Rgb0QZzlI
2017-08-03 14:47:13 -04:00
Sebastian Hengst 5cfce14aba merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-03 12:17:50 +02:00
Sebastian Hengst 50d2d60772 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5MywkQxECqB
2017-08-03 11:46:00 +02:00
Ethan Lin c80dac96f4 Bug 1386188 - Support filter for layers-free mode. r=kats
MozReview-Commit-ID: LuPnaSjhjgk

--HG--
extra : rebase_source : 2cf28919048683cdb446c5456a933651d2689fa1
2017-08-03 17:41:41 +08:00
Ethan Lin 2f3e874c80 Bug 1386553 - Move boundary calculations from each item's CreateWebRenderCommands to StackingContextHelper constructor. r=kats
MozReview-Commit-ID: 7PJIghki2g2

--HG--
extra : rebase_source : cc54e11719239814eee6f6e6f7360fbc0d10f0ad
2017-08-03 17:41:41 +08:00
Bevis Tseng 61fa6f6636 Bug 1376796 - Label the nsCaret::CaretBlinkCallback_timer. r=xidorn
--HG--
extra : amend_source : 0e9012d46f61f594d3d64d5800fddf1531726fb9
2017-08-03 11:03:05 +08:00
Bevis Tseng 5a23fe849a Backed out changeset 3367ef7283a1 2017-08-03 16:47:49 +08:00
Bevis Tseng 31897831a5 Bug 1376796 - Label the nsCaret::CaretBlinkCallback_timer. r=heycam 2017-08-03 11:03:05 +08:00
Sebastian Hengst a1ff1e3d1d Backed out changeset e5b859d66536 (bug 1386553) for Windows bustage at layers/StackingContextHelper.h(50). r=backout on a CLOSED TREE 2017-08-03 09:57:53 +02:00
Sebastian Hengst 2caa31713d Backed out changeset 4020e23649ea (bug 1386188) for Windows bustage at layers/StackingContextHelper.h(50). r=backout on a CLOSED TREE 2017-08-03 09:56:54 +02:00
Ethan Lin b9a34ae816 Bug 1386477 - Add nullptr check for layerManager->GetRoot() to prevent crash when dumping display list data. r=kats
MozReview-Commit-ID: 6o0PwKvs0HQ
2017-08-03 15:41:01 +08:00
Ethan Lin d2103026b7 Bug 1386188 - Support filter for layers-free mode. r=kats
MozReview-Commit-ID: LuPnaSjhjgk
2017-08-03 15:24:25 +08:00
Ethan Lin a05d601f59 Bug 1386553 - Move boundary calculations from each item's CreateWebRenderCommands to StackingContextHelper constructor. r=kats
MozReview-Commit-ID: 7PJIghki2g2
2017-08-03 15:24:25 +08:00
Cameron McCormack 3c2086d486 Bug 1384398 - Separate family names in font-family serialization with ", ". r=emilio
MozReview-Commit-ID: 9DBCXoy59g3

--HG--
extra : rebase_source : 2dbabd5e0e9426d1e5c943904d313e6e30dc62b6
2017-08-01 23:01:57 +08:00
Sebastian Hengst 8c82624aa1 merge mozilla-central to autoland. r=merge a=merge 2017-08-05 11:59:12 +02:00
Emilio Cobos Álvarez c7b665bcf3 Bug 1382568: Test. r=heycam
MozReview-Commit-ID: DLvVBoXubGT

--HG--
extra : rebase_source : 1edc227048565d9bfb8ba342195ac3b7ff9b06d5
2017-08-05 08:53:03 +02:00
Brad Werth d073eb9bda Bug 1383296 Part 1: Remove all uses of the nsCSSValue::Serialization enum, now that it no longer has multiple values. r=heycam
MozReview-Commit-ID: n6px5hNHtB

--HG--
extra : rebase_source : 6269a9d52e0282d0391276dc1b9ee26dbde7b985
2017-07-21 17:26:35 -07:00
Morris Tseng 65beb79d45 Bug 1379920 - Support canvas in layers free mode. r=kats
MozReview-Commit-ID: 42jOb3fzodb
2017-08-03 13:55:15 +08:00
Morris Tseng f3d4ff499f Bug 1379920 - Introduce CanvasRenderer and its derived classes. r=nical,jrmuizel
This patch move common canvas interfaces out of layer. So I create a
base class CanvasRenderer which move interfaces from CanvasLayer.
CopyableCanvasRenderer from CopyableCanvasLayer, ClientCanvasRenderer
from ClientCanvasLayer and WebRenderCanvasRenderer from
WebRenderCanvasLayer. And finally, WebRenderCanvasRendererSync for the
non layers free mode and WebRenderCanvasRendererAsync for the layers
free mode.

Summary all changes in this patch.
* Move class CanvasLayer::Data to CanvasRenderer.h and rename it to
CanvasInitializeData. Because this class not only use by layer but also
* Move BasicCanvasLayer::UpdateSurface to
CopyableCanvasRenderer::ReadbackSurface.
* CanvasClient::Update now accepts ShareableCanvasRenderer as parameter.
not CanvasLayer.
use by layers-free mode. Move it out of layer's class makes more sense.
* Add InitializeCanvasRenderer in the canvas related classes to
initialize CanvasRenderer without involved layer.
* All canvas layer has function "CreateCanvasRendererInternal" that
initialize corresponding CanvasRenderer.

* Description of all CanvasRenderer classes:
** CanvasRenderer: Based classes.
** CopyableCanvasRenderer: Can readback canvas content to a
SourceSurface. Use by BasicCanvasLayer.
** ShareableCanvasRenderer: Provide IPC capabilities that allow sending
canvas content over IPC. This is pure virtual class because the IPC handling is
different in different LayerManager.
** ClientCanvasRenderer: Implement IPC handling for ClientLayerManager.
Use by ClientCanvasLayer.
** WebRenderCanvasRenderer: Implement IPC handling for
WebRenderLayerManager.
** WebRenderCanvasRendererSync: Use by WebRenderCanvasLayer.
** WebRenderCanvasRendererAsync: Use by layers-free mode in WebRender.

class diagram shows below:

                      +--------------+
                      |CanvasRenderer|
                      +-------+------+
                              ^
                              |
                  +----------------------+
                  |CopyableCanvasRenderer|
                  +----------------------+
                              ^
                              |
                  +-----------+-----------+
                  |ShareableCanvasRenderer|
                  +-----+-----------------+
                        ^      ^
          +-------------+      +-------+
          |                            |
+--------------------+       +---------+-------------+
|ClientCanvasRenderer|       |WebRenderCanvasRenderer|
+--------------------+       +--------+--+-----------+
                                      ^  ^
              +-----------------------+  +----+
              |                               |
+-------------+-------------+   +-------------+--------------+
|WebRenderCanvasRendererSync|   |WebRenderCanvasRendererAsync|
+---------------------------+   +----------------------------+

MozReview-Commit-ID: 5hqQ19W169r
2017-08-03 13:55:14 +08:00
cku cfc9533381 Bug 1378710 - (followup) Correct typo in the comment. r=me DONTBUILD
MozReview-Commit-ID: 9dCcRx4heLz

--HG--
extra : amend_source : 0ff279a86b8943e101db6423fe605aaef8e49734
2017-08-03 11:42:54 +08:00
Morris Tseng fbee651cc7 Bug 1378606 - Support mix-blend-mode in layers-free mode.
MozReview-Commit-ID: LNORKj1bUYq
2017-08-03 11:27:45 +08:00
Morris Tseng 59fc42a812 Bug 1384000 - Call TriggerPendingAnimations in layers-free mode. r=ethlin,kats
MozReview-Commit-ID: 6Jae5rfQ8k2
2017-08-03 11:25:07 +08:00
Wes Kocher d350602e58 Backed out changeset 3b7a0f888294 (bug 1386468) for failures in browser_contentSearchUI.js a=backout
MozReview-Commit-ID: 7XhVgq5C4Ar
2017-08-02 18:09:12 -07:00
Wes Kocher 851b59bdbe Merge m-c to inbound a=merge
MozReview-Commit-ID: 1p4eNdfSz9p
2017-08-02 17:46:32 -07:00
Wes Kocher baf6cddc4c Merge inbound to central, a=merge
MozReview-Commit-ID: 9NFjSEt96iT
2017-08-02 17:11:51 -07:00
Ehsan Akhgari 7a5a9f6fd7 Bug 1386468 - Only register SelectionChangeListener for plaintext controls when dom.select_events.textcontrols.enabled is turned on; r=mystor 2017-08-02 19:58:07 -04:00
J. Ryan Stinnett f9a182567a Bug 1386416 - Move all reftest vars above sandbox dump. r=kats
MozReview-Commit-ID: HDIr0FTbDNK

--HG--
extra : rebase_source : 7d43cb71154299b2cbdf42962a01c3e9cb6ca9e5
2017-08-01 16:16:17 -05:00
Masatoshi Kimura f143125cc2 Bug 1326520 - Rename nsIURI.path to pathQueryRef. r=valentin.gosu
MozReview-Commit-ID: DqJdTGopR9G

--HG--
extra : rebase_source : e8c9eb03468c075b79013b6e0bd8b367229c24cd
2017-07-29 20:50:21 +09:00
Jonathan Watt 80f63e5249 Bug 1377188, part 2 - Add a reftest to check the default value of 'box-sizing' on <hr>. r=dholbert
MozReview-Commit-ID: 9Ss8KdcwL8X
2017-07-26 12:06:16 +01:00
Jonathan Watt 720999f3d7 Bug 1377188, part 1 - Change the UA 'box-sizing' style to 'content-box' for <hr>. r=dholbert
MozReview-Commit-ID: 4s5Cj5FhkDe
2017-07-26 11:44:16 +01:00
Jonathan Watt bcaeb4d9e8 Bug 1379474 - Update various ReflowInput variable names to match the new type name. r=xidorn
MozReview-Commit-ID: 1pMLInpeMGY
2017-07-25 12:02:35 +01:00
Jonathan Watt ddea429d1c Bug 1379269, part 2 - Invalidate and notify when clearing cached media features for Windows accent color changes. r=dholbert
MozReview-Commit-ID: 66tP4la4xy9
2017-07-24 15:57:29 +01:00
Emilio Cobos Álvarez 809cec316c Bug 1386602: Avoid recreating the stylist in RebuildAllStyleData. r=heycam
MozReview-Commit-ID: 31G9BLgqEmm
2017-08-03 18:10:06 +02:00
Ting-Yu Lin 7fb634c3d5 Bug 1381851 - Add mIsChrome to URLExtraData for querying on servo side. r=heycam
MozReview-Commit-ID: HTCmAcKNefG

--HG--
extra : rebase_source : 196bc82ce8013c7a4667198370625a6e42ca892a
2017-07-31 17:57:56 +08:00
Sebastian Hengst d9f6b67320 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-04 19:32:45 +02:00
Jonathan Kew 19ca86872b Bug 1316770 - Add text-rendering:optimizeLegibility to reftests for bug 1089388, to try and ensure we get proper glyph bounds. r=gbrown 2017-08-04 15:26:50 +01:00
cku 5be215b9d0 Bug 1385861 - Part 4. Reduce usage of SetMatrix in SVGTextFrame::PaintSVG. r=mattwoodrow
In while-loop [1],
1. The first SetMatrix call that I remvoed in this patch is totally useless,
we can just pass initialMatrix to contextPaint, instead of set initialMatrix
to aContenxt and read back from aContext and then pass it to contextPaint.

2. This function, SVGTextFrame::PaintSVG, is the only caller of
SetupStrokeGeometry, and it does not need SetupStrokeGeometry to setup matrix at
all, since it will be overwritten the transform matrix of aContext at several
lines below[2].

[1]
https://hg.mozilla.org/mozilla-central/file/5115e2dea29a/layout/svg/SVGTextFrame.cpp#l3658
[2]
https://hg.mozilla.org/mozilla-central/file/5115e2dea29a/layout/svg/SVGTextFrame.cpp#l3685

MozReview-Commit-ID: AlKQh4abbpa

--HG--
extra : rebase_source : e0dfd66ff25be0d7cffadecf9e3333bba10cff9b
2017-07-31 20:47:39 +08:00
cku bd1d92639d Bug 1385861 - Part 3. Rename nsSVGUtils::SetupCairoStrokeGeometry as nsSVGUtils::SetupStrokeGeometry. r=mattwoodrow
(This patch is not relative to performance)

Rename this function since it has not relation with cario at all.

MozReview-Commit-ID: DHvrsVZAJ7B

--HG--
extra : rebase_source : 4994c9058bd93c7d6671e57ce7f204185e679a1a
2017-07-31 20:20:28 +08:00
cku dbcc86a392 Bug 1385861 - Part 2. Save the state of input context in SVGTextFrame::PaintSVG only when need. r=mattwoodrow
Unless we need to draw stroke of glyphs, which will change the state of the
target context, we only need to save & restore transform matrix of the target
context.

MozReview-Commit-ID: LLKnxrKrDaT

--HG--
extra : rebase_source : 1226c48d283a04cb0ea6959f12fd6938fece49d2
2017-07-31 20:17:06 +08:00
cku fbf32edd9e Bug 1385861 - Part 1. Remove redundant gfxContext::Save/Restore in nsDisplaySVGText::Paint. r=mattwoodrow
nsDisplaySVGText::Paint calls SVGTextFrame::PaintSVG, and we already save/restore
context state in SVGTextFrame::PaintSVG.

I also filed Bug 1385929 to find a solution to prevent duplicated
gfxContext::Save/Restore.

MozReview-Commit-ID: 4WxdFZzvmvF

--HG--
extra : rebase_source : 752d5d027776538edc1ab043ad2e90e1de22a079
2017-07-31 17:36:06 +08:00
Xidorn Quan 03e036aff2 Bug 1338764 part 3 - Update test expectations. r=manishearth
MozReview-Commit-ID: HzN5WP210G7

--HG--
extra : rebase_source : c3585958cb5159a242515a80f226e43f506319d8
2017-08-01 16:38:27 +10:00
Xidorn Quan 63d6f06939 Bug 1338764 part 2 - Add context-{fill,stroke}-opacity support to {fill,stroke}-opacity. r=manishearth
MozReview-Commit-ID: HzUHmZb8ICl

--HG--
extra : rebase_source : b8746c4d9d4cfc3abe6645f583dc08d0f7c75341
2017-08-01 16:05:04 +10:00
Xidorn Quan 0e98738d78 Bug 1338764 part 1 - Use const rather than enum for context flags of nsStyleSVG. r=manishearth
MozReview-Commit-ID: KzORnfVXgLJ

--HG--
extra : rebase_source : 365842d6e6fda4b35a5932272773a3d88bfc04c6
2017-07-17 15:10:50 +10:00
Boris Chiou 74b215eeaa Bug 1383998 - Increase animation generation if attributes are changed. r=heycam
We have to set mHaveNonAnimationRestyles if we have attributes changed
(note: we increase the animation generation only if mHaveNonAnimationRestyles
is set). Attributes changed may create a new transition, and we use the
animation generation as the order of the transition, so
Element::GetAnimations() can return transitions with correct order.

Besides, I think ContentStateChanged() will not trigger a new
transition, so we don't need to make mHaveNonAnimationRestyles there.

MozReview-Commit-ID: J5XgW8nqeLH

--HG--
extra : rebase_source : 24c4b4364935fc5a4b8437f119cbf93035262684
2017-08-02 11:43:41 +08:00
Nicholas Nethercote cc91deea30 Bug 1383977 - stylo: Measure Elements and ComputedValues. r=manishearth.
The patch provides FFI access to Gecko's SeenPtrs type from Rust, in order to
record what has already been measured when measuring Arcs. (The SeenPtrs must
be initialized on the Gecko side because the same table is reused for measuring
all Elements within a window, because Elements can share ComputedValues.) I
have confirmed with DMD that this is working correctly.

The patch also introduces MallocSizeOfRepeats, which is like MallocSizeOf but
takes a SizeOfState, which holds a SeenPtrs table.

MozReview-Commit-ID: DHS8zvCsEdQ

--HG--
extra : rebase_source : acf4d7909abf6ceb1719331ccf2e33137eb6dc91
2017-07-19 10:30:53 +10:00
Wes Kocher 5df77c43f9 Merge m-c to autoland, a=merge
MozReview-Commit-ID: IJRYyJu1sWm
2017-08-02 17:42:10 -07:00
Brad Werth 726f72274f Bug 1302513 Part 5: Simplify nsCSSValue::AppendToString, now that aSerialization can only take one value. r=dholbert
MozReview-Commit-ID: 9qJOkJTzUY2

--HG--
extra : rebase_source : 3adc39ba40ba350a965ebb7279fef2c6d498ee71
2017-07-21 18:07:14 -07:00
Brad Werth 67a09de76f Bug 1302513 Part 4: Remove the nsCSSValue::Serialization eAuthorSpecified enum, which is no longer used. r=dholbert
MozReview-Commit-ID: 1gmiFyULMsZ

--HG--
extra : rebase_source : 1d4220101105e61168eec491a242a74060f7d417
2017-07-21 14:26:36 -07:00
Brad Werth dd59628e1d Bug 1302513 Part 3: Remove declarations and implementations of getAuthoredPropertyValue. r=dholbert
MozReview-Commit-ID: LxlUfhPJUaa

--HG--
extra : rebase_source : 6fdd76d9455e2f288b8c7b4866d983023e6d92af
2017-07-21 14:18:45 -07:00
Brad Werth 10cb0e63cd Bug 1302513 Part 1: Remove test for getAuthoredPropertyValue API (since that API is being r=dholbert
removed).

MozReview-Commit-ID: CpOiobOp1jD

--HG--
extra : rebase_source : b5220220c2528e4c7dd1a737e4a4c5896fadee3f
2017-07-21 14:12:33 -07:00
Hiroyuki Ikezoe 9bf9d338f9 Bug 1385089 - Set restyle subtree restyle hint if the element animates display style from 'none' to other. r=emilio
When display style is changed from 'none' to other in animation-only restyle
we need to resolve descendant elements' style that were in the display:none
subtree.

Three possible ways to resolve the descendant elements' style;

1) Traversing unstyled elements in animation-only restyle
   We can't simply traverse unstyled elements in the animation-only restyle
   since when we decided to traverse the unstyled elements we don't know yet
   the elements will be initially styled or are in display:none subtree. It
   will result that the new elements are styled in animation-only restyle,
   it's undesirable.

2) Creating a SequentialTask and resolve the descendants' style with
   ServoStyleSet::StyleNewSubtree()
   We can't resolve the descendants' styles with ServoStyleSet::StyleNewSubtree()
   in SequentialTask since at the moment we are still in servo traversal (i.e.
   sInServoTraversal is true). That means AutoSetInServoTraversal fails
   in PrepareAndTraverseSubtree().

3) Creating a SequentialTask and set restyle subtree hint and defer descendants'
   restyle in a subsequent normal traversal
   Note that, when we process throttled animations flush, we don't process
   normal traversal so the descendants will not be traversed until normal
   restyle happens but it will not be a big problem since it's really rare
   that user clicks display animation element just at the right moment when
   display property changes from none to other.  Also, if it will be really
   a problem, we should process *only* transform animations on the compositor,
   it's ideally right thing to do. Display property never runs on the
   compositor.

This patch takes the third approach.

MozReview-Commit-ID: Krxa3kkdIq4

--HG--
extra : rebase_source : 33e9db953f21168c76716329568191625bd15896
2017-08-02 20:01:08 +09:00
Jamie Nicol ff2a920fd4 Bug 1360306 - Clamp layer scale if it has recently been animated. r=mstange
When a container layer's transform has an animated scale, we clamp it
to a near power of two so that descendent layers' resolutions do not
keep changing and we minimize repainting. The current behaviour only
clamps the scale when it has not changed with respect to the previous
transaction. In animations where the scale usually changes, but
happens to remain constant between two consecutive transactions, this
is bad.

Rather than only checking against the previous scale value, use
ActiveLayerTracker::IsScaleSubjectToAnimation() to determine whether
to clamp, as it takes into account a longer period.

--HG--
extra : rebase_source : 6bc773e387c5750746722d4a0cc5864ebf7757e2
2017-07-27 11:52:27 +01:00
Sebastian Hengst c9ff8ee666 Backed out changeset ecbeb9354c24 (bug 1383386) for mass-asserting at gfx/layers/ipc/CompositorBridgeChild.cpp:264. r=backout on a CLOSED TREE 2017-08-02 23:08:43 +02:00
Kartikaya Gupta cc3312045a Bug 1383386 - Update null checks to check the correct IPC actor. r=billm
MozReview-Commit-ID: AZlFYkuzFVb

--HG--
extra : rebase_source : f3e1836db6833783f8277a3e9f2e5927eb452f46
2017-08-02 09:53:00 -04:00
Manish Goregaokar e2ffcaa665 Bug 1358688 - Part 1: Don't unzoom text for font-size:larger/smaller ; r=emilio
This used to be necessary when larger/smaller did a table lookup.
However as of bug 1361550 these are simple ratios and should be treated
the same as em units.

MozReview-Commit-ID: 2zM7O0awynG
2017-08-02 11:28:08 -07:00
Mantaroh Yoshinaga 19dd5dd034 Bug 1377541 - Reorder shadow array when serializing. r=birtles
CSSparserImpl::ParserShadowItem stores shadow items in a different order that
does not match the order we use when serializing computed shadow items.

The items order of storing by parser:
 <length> <length> <length> <length> <color> <inset>
The items order of serializing:
 <color> <length> <length> <length> <length> <inset>

Spec of this serialized order is as follow:
5c46d78107

This patch will shuffle the order of this items in the shadow array when
serializing it.

MozReview-Commit-ID: CIawpYKKIRy

--HG--
extra : rebase_source : 9b4f5d20543980baa45c07c950fa0baa59d9cc93
2017-08-01 23:22:05 +09:00
Wes Kocher 5699744165 Merge m-c to autoland, a=merge
MozReview-Commit-ID: F1FR0irfoJU
2017-08-01 13:18:18 -07:00
Wes Kocher 0688b1b95d Merge inbound to central, a=merge
MozReview-Commit-ID: 6SriUFkS6u7
2017-08-01 13:17:21 -07:00
Sebastian Hengst 9975089d4d merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-08-01 11:26:31 +02:00
Sebastian Hengst ddd4030358 merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: IrMqWiJhwan
2017-08-01 11:23:57 +02:00
Christoph Kerschbaumer ea9c7f7996 Bug 1385805 - Convert some more tests within layout/ to comply with new data: URI inheritance model. r=smaug 2017-08-01 10:59:22 +02:00
Wes Kocher 3c2dc39278 Merge m-c to inbound, a=merge
MozReview-Commit-ID: BgPWEtPV0sy
2017-07-31 17:49:47 -07:00
Wes Kocher 179a07b6ba Merge inbound to central, a=merge
MozReview-Commit-ID: Dg4fbH8wbXt
2017-07-31 17:43:38 -07:00
Matt Woodrow 3f444dd59f Bug 1378455 - Don't minimize the visible region for the scrollbar thumb in FrameLayerBuilder since it can move asynchronously. r=mstange 2017-08-01 11:09:53 +12:00
Mason Chang 390704c977 Bug 1384300. Stop refresh driver timers after swapping refresh drivers. r=billm 2017-07-28 15:01:27 -07:00
J. Ryan Stinnett ed1565f7ca Bug 1384789 - Fix up missed rename. r=bustage
MozReview-Commit-ID: FDkUBSccQuu
2017-07-31 16:04:04 -05:00
J. Ryan Stinnett edcbffb572 Bug 1384789 - Mark import loop sheet complete. r=heycam
For an import loop sheet, set the URIs and principal, and mark it complete, so
that it can still be properly accessed via CSSOM without errors.

MozReview-Commit-ID: 1oO1LoaPk8V

--HG--
extra : rebase_source : 2de1e8e03a2e8934710c2f2631f771bc067923d3
2017-07-27 17:03:42 -05:00
Wes Kocher b11975d1ad Merge m-c to autoland, a=merge
MozReview-Commit-ID: L5cEw8jWPNI
2017-07-31 17:53:14 -07:00
Xidorn Quan 7f38dbe964 Bug 1383075 part 2 - Update CSS lexer in devtools to match the change. r=jryans
MozReview-Commit-ID: LO7ZMeLgJdJ

--HG--
extra : rebase_source : 31f898bf70fa2c025dc0d8c7f744165a14450586
2017-07-31 09:23:01 +10:00
Xidorn Quan d2d67f1449 Bug 1383075 part 1 - Handle URL token in a closer way to the spec. r=dbaron
MozReview-Commit-ID: B31txMs8fVw

--HG--
extra : rebase_source : 771228551feba014da47fa576685864be94cb856
2017-07-28 13:20:37 +10:00
Kartikaya Gupta c3e4aef0b4 Bug 1384616 - Save APZ-relevant scrollbar data into the WR scroll data for layers-free transactions. r=jrmuizel
MozReview-Commit-ID: 6DQz9N6Wq0H

--HG--
extra : rebase_source : 8a113d4a53e1562b55cc05a0bc411675a2ca9eb1
2017-07-31 15:27:30 -04:00
Kartikaya Gupta 4ed905c664 Bug 1384616 - Save APZ-relevant data from fixed-pos items in the WR scroll data for layers-free transactions. r=jrmuizel
MozReview-Commit-ID: HAFnrCVM9pZ

--HG--
extra : rebase_source : 9b7f5f7a3487501061b0526bfc92b06ef5593a88
2017-07-31 15:27:29 -04:00
Kartikaya Gupta 3b8aaa896a Bug 1384616 - Change how display items put their APZ-relevant info into the WebRenderScrollData. r=jrmuizel
Instead of the WebRenderLayerScrollData code knowing about all the
different display item types, it makes more sense to move this logic
into the display items.

In addition to avoiding dis-encapsulating the data from nsDisplayItem subclasses,
this makes it easier to handle two specific scenarios:
(1) the case where an nsDisplayItem A subclasses another nsDisplayItem B, but A
and B have different types returned by GetType(). Previously A and B would have
to be handled explicitly in the WebRenderLayerScrollData switch statements,
which doesn't scale well if new types are added. With the new approach the
virtual function is shared down from A to B and so takes care of it. This is
particularly relevant for types like nsDisplayOwnLayer which have a number of
subclasses.

(2) the case where a display item *might* have APZ-relevant information.
In this case the type of the item alone is not sufficient to determine
if we need to create a new WebRenderLayerScrollData for it. Instead, we
need to access specific state inside the display item. This is now
handled by the UpdateScrollData function returning true when passed
nullptr arguments, and replaces the switch statement in
WebRenderLayerManager that updated forceNewLayerData.

MozReview-Commit-ID: FlfHlgSccSn

--HG--
extra : rebase_source : d1fe841724cc6020433aea31ffb5214d8a44d0a9
2017-07-31 15:27:29 -04:00
Kartikaya Gupta 72688d935e Bug 1384616 - Fix indentation. r=jrmuizel
MozReview-Commit-ID: ArkCmZieGum

--HG--
extra : rebase_source : de6d006d63947b9ca8b972c70e6e8517073cd28c
2017-07-31 15:27:29 -04:00
Sebastian Hengst 915c63c332 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-31 11:28:37 +02:00
Nicholas Nethercote 72c884bf74 Bug 1384835 (part 3, attempt 2) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
--HG--
extra : rebase_source : d317b25be2ec21d1a60d25da3689e46cdce0b649
2017-07-31 14:28:48 +10:00
Nicholas Nethercote d4f9aa5530 Bug 1384835 (part 2, attempt 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
--HG--
extra : rebase_source : 6c24fbacb03d4adebe5f22b5e7fc60b069913f20
2017-07-31 14:23:50 +10:00
Sebastian Hengst bbe32b6bed merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 44WBcWjnVo
2017-07-30 11:19:17 +02:00
Christoph Kerschbaumer f18673d8e8 Bug 1383672 - Convert test_windowminmaxsize.xul to comply with new data: URI inheritance model. r=gijs 2017-07-28 13:09:04 +02:00
Sebastian Hengst 0e9fddbda6 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-07-29 11:49:53 +02:00
Sebastian Hengst 22f1bfd79d Backed out changeset 9a7b90cf8a63 (bug 1361618) for frequently failing accessible/tests/browser/states/browser_test_link.js (bug 1385498). r=backout a=backout
MozReview-Commit-ID: DK2CuaYBPbj
2017-07-29 11:42:39 +02:00
Wes Kocher 055bfa76de Merge autoland to central, a=merge
MozReview-Commit-ID: 1fYcqZLHcHu
2017-07-28 17:16:58 -07:00
Wes Kocher 111fa9e5a3 Backed out changeset 4e1a1565e417 (bug 1007283) for causing 1385079 a=bustage
MozReview-Commit-ID: 1FeEnNpHa8q
2017-07-28 14:28:17 -07:00
Carsten "Tomcat" Book 892bedca2e merge mozilla-inbound to mozilla-central a=merge 2017-07-28 15:24:39 +02:00
Sebastian Hengst 1d708511f0 Backed out changeset 5df4d8778602 (bug 1384835) 2017-07-28 10:29:29 +02:00
Sebastian Hengst 744a0a216b Backed out changeset ef5feef07bed (bug 1384835) 2017-07-28 10:29:24 +02:00
Carsten "Tomcat" Book 28bdd40776 Merge mozilla-central to mozilla-inbound 2017-07-28 09:48:24 +02:00
Carsten "Tomcat" Book de369deb98 Backed out changeset 284af26c1b53 (bug 1351148) 2017-07-28 09:20:27 +02:00
Wes Kocher 7149e44594 Merge autoland to m-c a=merge
MozReview-Commit-ID: 4MCb0ASsMxe
2017-07-27 16:09:49 -07:00
Carsten "Tomcat" Book 6aa98d7df0 Merge mozilla-central to autoland 2017-07-28 09:50:36 +02:00
Xidorn Quan be0b7f4c78 Bug 1385147 - Upgrade to bindgen 0.29. r=heycam
MozReview-Commit-ID: 6ceRryUBccH

--HG--
extra : rebase_source : ead13dd2093be1b48347c0aa95d97a57bca0c1ba
2017-07-28 11:40:58 +10:00
Nicholas Nethercote 200d8ec18b Bug 1384835 (part 3) - Remove the Preferences::Get*CString() variants that return nsAdoptingCString. r=froydnj.
This is similar like the previous patch, but for the 8-bit string variants.
Also, it changes assignment to Adopt() in GetCString() and GetDefaultCString()
to avoid an extra copy.

--HG--
extra : rebase_source : eba805c3a7b809d5ccd6e853b1c9010db9477667
2017-07-27 16:45:10 +10:00
Brian Birtles 913d9ceadd Bug 1374966 - Drop nsChangeHint_UpdateTransformLayer when we also have nsChangeHint_AddOrRemoveTransform; r=heycam
MozReview-Commit-ID: 2eFl7cDXNA

--HG--
extra : rebase_source : 21d44a91b1848f630500495788fb704ef260333e
2017-07-27 12:05:47 +09:00
Cameron McCormack 8939798d4b Bug 1384625 - Crash in ServoComputedValues::GetStyleVariables, which should never need to be called. r=emilio
MozReview-Commit-ID: 4HYNGMPMhsH

--HG--
extra : rebase_source : 103e892149986f23d29553700a6622eaf27012fd
2017-07-27 17:33:29 +08:00
Manish Goregaokar e632c1393e Bug 1383492: stylo: Change nscoord_MAX to 1<<30 - 1 ; r=emilio,dbaron
nscoord_MAX is (1<<30) so that we can check for overflow *after* adding
two nscoords. However, (nscoord_MAX + nscoord_MAX) will still overflow.
Subtracting one makes this no longer possible.

MozReview-Commit-ID: BtbQRMp5kWm
2017-07-27 18:57:32 -07:00
Manish Goregaokar 9fd9221a68 Bug 1383492: stylo: Bump app units version; r=emilio
MozReview-Commit-ID: JZp66wkSZc0
2017-07-27 18:57:19 -07:00
Bobby Holley c7e4963340 Bug 1384769 - Skip two smil tests due to crashes until bug 1385089 is sorted out. r=me
MozReview-Commit-ID: 4Bkav7OzvtU
2017-07-27 17:49:46 -07:00
Bobby Holley ab415510c2 Bug 1384769 - Break TraversalFlags::ForReconstruct down into several independent pieces. r=emilio
These will be useful in followup work.

MozReview-Commit-ID: Dyp9R0PG36v
2017-07-27 17:49:44 -07:00
Bobby Holley f3de753524 Bug 1384769 - Get rid of the ForNewlyBoundElement mode. r=emilio
MozReview-Commit-ID: 1IRn2iaPnVc
2017-07-27 17:49:42 -07:00
Bobby Holley 07295b450f Bug 1384769 - Clean up ForThrottledAnimationFlush stuff. r=hiro
MozReview-Commit-ID: I6xeHv65nH2
2017-07-27 17:49:40 -07:00
Bobby Holley 12955e0dde Bug 1384769 - Pass TraversalFlags from C++ into Rust. r=emilio
MozReview-Commit-ID: EVUzgnL5coN
2017-07-27 17:49:38 -07:00
Nazım Can Altınova f936b4119f Bug 1341802 - stylo: Enable the forgotten disabled grid test r=me
MozReview-Commit-ID: 6ZrPuFigxGL
2017-07-27 17:04:03 -07:00
Nazım Can Altınova a576d2cda3 Bug 1365900 - stylo: Update test expectations for @font-feature-values r=me
--HG--
extra : amend_source : 248022ea0403b5fcfe01bf3f2fba60f33a1b76e3
2017-07-27 16:53:38 -07:00
Wes Kocher 7a65251f71 Merge m-c to autoland, a=merge
MozReview-Commit-ID: KvG6hKUwF8c
2017-07-27 16:33:25 -07:00
J. Ryan Stinnett 9861677629 Bug 1380053 - Skip ua-style-sheet-input-number-1.html for Stylo. r=me
MozReview-Commit-ID: Bo8L7CaVgTk
2017-07-27 18:21:07 -05:00
Nazım Can Altınova ffc264cb6b Bug 1365900 - Create ServoFontFeatureValuesRule and bind servo data r=xidorn
Add ServoFontFeatureValuesRule for CSSOM representation of
@font-feature-values rule and wire up with bindings.

MozReview-Commit-ID: B4Lpj43bvKX

--HG--
extra : rebase_source : 6508027f88ff76784ed7d0e5420d6e174f116b38
2017-07-25 18:30:15 -07:00
Nicholas Nethercote 0574a6b496 Bug 1384835 (part 2) - Remove the Preferences::Get*String() variants that return nsAdoptingString. r=froydnj.
Because we want to remove nsAdoptingString. We have other variants that don't
use nsAdoptingString, which can be used instead. There are three basic
patterns.

1. The easiest case is when we don't check for success.

> nsAdoptingString s = Preferences::GetString("foo");
> foo(s);

becomes:

> nsAutoString s;
> Preferences::GetString("foo", s);
> foo(s);

2. The next case is when we check if the result is empty.

> nsAdoptingString s = Preferences::GetString("foo");
> if (s.IsEmpty()) { ... }

becomes:

> nsAutoString s;
> Preferences::GetString("foo", s);
> if (s.IsEmpty()) { ... }

3. The final case is when we null check the result.

> nsAdoptingString s = Preferences::GetString("foo");
> if (s) { ... }

becomes:

> nsAutoString s;
> nsresult rv = Preferences::GetString("foo", s);
> if (NS_SUCCEEDED(rv)) { ... }

The patch also avoids some UTF8/UTF16 conversions in a few places.

--HG--
extra : rebase_source : f339b1a3dda4dc93979d38c30c001fbe77485b55
2017-07-25 20:36:14 +10:00
Mason Chang cc5d07571f Bug 1381973 - Lazily create the reference DT in DrawTargetCapture. r=dvander 2017-07-26 15:43:00 -07:00
Wes Kocher 7dc0b363c1 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 1JlPbFMKbJZ
2017-07-27 16:17:40 -07:00
Nazım Can Altınova 0598921a5f Bug 1365900 - Extract CSSFontFeatureValuesRule base class r=xidorn
Extract CSSFontFeatureValuesRule from nsCSSFontFeatureValuesRule
class. This is necessary because we will create a FontFeatureValues
rule for Servo side.

MozReview-Commit-ID: GKy5wa6JLv9

--HG--
extra : rebase_source : 015f13da9a776c4ece8aa13655395afbb347b870
2017-07-24 16:12:57 -07:00
Daniel Holbert 764274fe30 Bug 1059138: add this bug's testcase as a crashtest. (no review, test-only)
This bug report became semi-obsolete after we restructured the way flex items
are reordered for the CSS 'order' property. I'm adding its testcase as a
crashtest for good measure & for regression-testing.

MozReview-Commit-ID: 9ytJymbxZx
2017-07-27 15:32:33 -07:00
Daniel Holbert 442d7cef56 Bug 876749: Remove stale asserts(0-5) annotation for crashtest that doesn't assert anymore. (no review)
I believe crashtest 876074-1.html stopped asserting (about flex item frame-list
sortedness) once we stopped reordering the flex item child-list, in bug 812687.
So we don't need this asserts() annotation anymore.

MozReview-Commit-ID: BlMoFnkLQeU
2017-07-27 12:38:16 -07:00
Ryan Hunt 9556d59a26 Bug 1382918 - Respect widget min and max size in nsMenuPopupFrame to prevent excessive compositing. r=mstange
nsMenuPopupFrame will constrain the size of its widget to its min and max size.
It will also request its nsView to resize to its frame rect. If its frame rect
is larger or smaller than the min or max size, nsView will be unable to change
the size of the widget, and each ViewManagerFlush will attempt a resize and
force a composite. When there are a lot of ViewManagerFlushes, this can
overload the compositor.

--HG--
extra : rebase_source : e32c3bb5445365ef76ea2a0700abb6911974afcc
extra : source : cadcf04ef23cee5ddbbbf216573c05d3fc0e53f2
2017-07-26 23:36:13 -05:00
Daniel Holbert ef93dc671b Bug 1228789: add this bug's testcase as a crashtest. (no review, test-only)
This bug report became semi-obsolete after the assertion it triggered was
removed (as part of CSSUnprefixingService being replaced with native code).
I'm adding its testcase as a crashtest for good measure & for
regression-testing.

MozReview-Commit-ID: GhsoI8UHqI8
2017-07-27 11:54:49 -07:00
Julian Seward 408d24da56 Bug 1382563 - Remove ns*String::AssignWithConversion. r=erahm.
This patch replaces four functions of the name AssignWithConversion which
are essentially wrappers around CopyASCIItoUTF16 and LossyCopyUTF16toASCII
with direct calls to the latter two functions.  The replaced functions are:

  void nsCString::AssignWithConversion( const nsAString& aData )
  void nsString::AssignWithConversion( const nsACString& aData )

  void nsTString_CharT::AssignWithConversion(
                            const incompatible_char_type* aData,
                            int32_t aLength = -1);

The last of the three exists inside the double-included nsTString* world and
so describes two functions, giving four in total.

This has two advantages:

* it removes code

* at the call points, it makes clear (from the replacement name) which
  conversion is being carried out.  The generic name "AssignWithConversion"
  doesn't make that obvious -- one had to infer it from the types.

The patch also removes two commented out lines from
editor/composer/nsComposerCommands.cpp, that appear to be related.  They are
at top level, where they would never have compiled.  They look like
leftovers from some previous change.

--HG--
extra : rebase_source : fb47bf450771c3c9ee3341dd14520f5da69ec4f5
2017-07-24 19:23:52 +02:00
J. Ryan Stinnett c79cb3fbb1 Bug 1380053 - Stylo reftest annotations for all OSes. r=manishearth
MozReview-Commit-ID: JNsNUOZfd2e

--HG--
extra : rebase_source : 05a71f9a0fe484c93931fb230cf0752a3b1b8b00
2017-07-20 22:02:00 -05:00
Emilio Cobos Álvarez fe9f212268 Bug 1383981: Similar crashtest for sibling combinators. r=heycam
MozReview-Commit-ID: 3Z6YD8evbOs

--HG--
extra : rebase_source : 0c7d042674ac0459de5bb9c1964eaec6a387aec4
2017-07-25 11:23:11 +02:00
Emilio Cobos Álvarez 8124db36f5 Bug 1383981: Crashtest. r=heycam
MozReview-Commit-ID: 3ZVHoRIDb0M

--HG--
extra : rebase_source : 3f2fd32d64e3ed85a5039cb835dc5e9a1977e298
2017-07-25 09:51:16 +02:00
Xidorn Quan c4b5078d48 Bug 1366956 part 3 - Update test expectations. r=heycam
MozReview-Commit-ID: 1MBPiLaNFHW

--HG--
extra : rebase_source : db06d228ef349d587f9b5b11bf0898a429176082
2017-07-18 11:20:35 +10:00
Xidorn Quan 62d02de8ce Bug 1366956 part 2 - Replace IsFramesTimingEnabled FFI function with direct pref cache access. r=heycam
MozReview-Commit-ID: 3pVCEmuxf9D

--HG--
extra : rebase_source : 5d08e4f3bba0f3955a893046b04bf137bcd7c57d
2017-07-18 10:55:36 +10:00
Xidorn Quan 9dc5b62112 Bug 1366956 part 1 - Move CSS prefs from nsCSSParser into an independent class. r=heycam
MozReview-Commit-ID: S5xaJcP1jb

--HG--
extra : rebase_source : bf483459609aa05031d68224ce17228298f3a80f
2017-07-18 10:54:32 +10:00
Jeremy Chen 394d5f000f Bug 1381235 - add reftest for transitioning on visited links. r=hiro
With this patch, we now have an automated test to verify if a transition
is run properly on a visited link. Note that the test aims to verify
the behavior in Stylo should match that in Gecko. Due to Bug 868975, we
haven't supported transitioning on visited styles yet, so the test should
be put in our own repo for now. This test can be tweaked and put into
web-platform repo once we resolve Bug 868975.

MozReview-Commit-ID: Ci1cERXkIUK

--HG--
extra : rebase_source : 7feb1229bc2dc430bc2a1e40be40047049469fbd
2017-07-28 16:52:53 +08:00
Kevin Hsieh 0397c306ab Bug 1322537 - Increase tolerance when splitting Bezier curves to prevent hang. r=bas
MozReview-Commit-ID: 3qhj9He65Bh

--HG--
extra : rebase_source : 63f37c20bec61aa21dbf6ff539a9b967a0703810
2017-07-28 23:57:04 -07:00
Kyle Machulis d812ac4e87 Bug 1279218 - Additional applet tag logic removal; r=bz
I've been having problems with interdiffs on mozreview lately, so for
ease of review, this patch is being submitted as a seperate patch for
review. Once it is r+'d, it will be folded into the first patch in
this set before landing.

MozReview-Commit-ID: CS9MngaXlBd

--HG--
extra : rebase_source : 6a86fd4f7a66e73497a756976a2562d183002a2a
2017-07-28 16:44:39 -07:00
Kyle Machulis ffa9be1bed Bug 1279218 - Remove Applet tag; r=bz
Removes applet tag interfaces, and changes HTML5 parser to output
HTMLUnknownElement when tag is found. Removes tag process from various
places in the browser.

MozReview-Commit-ID: 2zHhK2U2esX

--HG--
extra : rebase_source : d06ecaffd1cb656301e29b900bafde4c68a4606e
2017-07-10 16:00:30 -07:00
Xidorn Quan 0215b2d4e7 Bug 1385147 followup - Mark mozilla::dom::OwningNodeOrString_Value opaque.
MozReview-Commit-ID: 3yft0P0TMD3
2017-07-30 19:40:13 +10:00
Timothy Nikkel 8dddd316bb Backed out changeset 497dbf087ad5 (add diagnostic asserts) (bug 1354933) 2017-07-07 14:54:55 -05:00
Cameron McCormack d8a7128e4d Bug 1384275 - Reftest. r=emilio
MozReview-Commit-ID: 4At2CHtfeo2

--HG--
extra : rebase_source : f983fc6d872612adb08eaeeaff945fd97fd3a805
2017-07-29 15:07:49 +08:00
Xidorn Quan 168e6ca204 Bug 1385529 - Remove Gecko_GetMediaFeatures and access nsMediaFeatures::features directly. r=emilio
MozReview-Commit-ID: IbTikEgabXA

--HG--
extra : rebase_source : 3ea81bad872f675be14862f627f174912e0c79ac
2017-07-29 15:21:36 +10:00
Sebastian Hengst e7f78bec18 merge mozilla-central to autoland. r=merge a=merge 2017-07-29 11:48:40 +02:00
Boris Zbarsky ada6e6cf35 Bug 1324619 part 6. Handle dynamic restyles of ::first-line in stylo. r=emilio
MozReview-Commit-ID: 3jQhIqPuL1g

--HG--
extra : rebase_source : 094829b3cecf0549462cbe107d293a7e56ea2e5b
2017-07-28 21:20:47 -04:00
Boris Zbarsky 6c4a600617 Bug 1324619 part 5. Implement FrameForPseudoElement for ::first-line. r=emilio
MozReview-Commit-ID: JXcV58peI7T

--HG--
extra : rebase_source : 013bde490d40f409af15752f15abe04df004aad6
2017-07-28 21:20:46 -04:00
Boris Zbarsky 4bac5a04f9 Bug 1324619 part 4. Add a Servo API for reparenting a given style. r=emilio
MozReview-Commit-ID: 2rqnMjMQKlJ

--HG--
extra : rebase_source : 4e146f8aa6a04d7193c8f54ea7acd42ce0e852b6
2017-07-28 21:20:41 -04:00
Boris Zbarsky a5f876dcd4 Bug 1324619 part 3. Implement ReparentStyleContext in ServoRestyleManager, for ::first-line use. r=emilio
This doesn't actually implement style context reparenting in the style set yet; that part is next.

There is one behavior difference being introduced here compared to Gecko: we
don't reparent the first block piece of an {ib} (block-inside-inline) split
whose first inline piece is being reparented.  This is actually a correctness
fix.  In this testcase:

  <style>
    #target { color: green; }
    #target::first-line { color: red; }
  </style>
  <div id="target">
    <span>
      <div>This should be green</div>
    </span>
  </div>

Gecko makes the text red, while every other browser makes it green.

We're preserving Gecko's behavior for out-of-flows in first-line so far, but
arguably it's wrong per spec and doesn't match other browsers either.  We can
look into changing it later.

MozReview-Commit-ID: 5eC6G449Mlh

--HG--
extra : rebase_source : 8c333a0afe96c68a4e3b6aeca1b742ef8d5edd3b
2017-07-28 21:11:18 -04:00
Boris Zbarsky dbb8398bd1 Bug 1324619 part 2. Stop unnecessarily trying to reparent the style contexts of our kids in nsFirstLetterFrame::SetInitialChildList. r=emilio
The style contexts are already correct here; the frame constructor ensures that.

MozReview-Commit-ID: CWO225MB6Pe

--HG--
extra : rebase_source : ebc74ab507aaad6ac4c301cbbcdcab30ad3034d0
2017-07-28 21:11:18 -04:00
Boris Zbarsky 510ea95ba9 Bug 1324619 part 1. Skip reparenting style contexts in the frame constructor when it's not needed. r=emilio
We don't need to reparent when moving things in/out of anonymous boxes and using the stylo backend.

MozReview-Commit-ID: 8C6ScqTuR9z

--HG--
extra : rebase_source : 0f180647a39a051e2a5aabe642031134852bf95b
2017-07-28 21:11:18 -04:00
Xidorn Quan 2f534aa9d7 Bug 1381690 - Have check_allowed_in read gPropertyEabled table directly. r=manishearth
MozReview-Commit-ID: 5pwnEqxqVi6

--HG--
extra : rebase_source : 78c6702fe3260c4ac8720fbaca1de19f9b9c0b8c
2017-07-18 10:11:40 +10:00
Carsten "Tomcat" Book c4e7d0a39e merge mozilla-central to autoland
--HG--
extra : rebase_source : 0f0f666839de9bee40c2d469fd8dd7e63b266f69
2017-07-27 11:38:15 +02:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Tobias Schneider 3880ddff03 Bug 1382327 - (reftest) Rename reftest-print to reftest-paged. r=dbaron
--HG--
extra : rebase_source : c4e47e2de8d615c77e7e9ce88f6b21c9d15c92e4
2017-07-26 22:53:46 -07:00
Emilio Cobos Álvarez 5e93182540 Bug 1384868: Simplify a bit RuleNodeCacheConditions. r=heycam
MozReview-Commit-ID: 62ac5XCGLVQ

--HG--
extra : rebase_source : dd309d4383cb3637ab7b16d2054c535d7daafbaa
2017-07-27 03:07:06 +02:00
Wes Kocher ad35031103 Merge m-c to inbound, a=merge
MozReview-Commit-ID: LhiAcCiFBus
2017-07-26 18:33:18 -07:00
Ehsan Akhgari 74443cf834 Bug 1384222 - Try to avoid dynamic allocations in TreeMatchContext::InitAncestors if possible; r=bzbarsky 2017-07-26 20:00:06 -04:00
cku 14c2482fbe Bug 1301245 - Part 3. Resolve a style image if nsSVGPaintingProperty can not handle it. r=heycam
MozReview-Commit-ID: 9m7yJ4CgCvr

--HG--
extra : rebase_source : 3f0fa1a7ead8ca5ac595e1a5d3cf15bf555291e7
2017-07-26 12:02:44 +08:00
cku 321461fb26 Bug 1301245 - Part 2. Do not resolve a style image if the given url has a fragment. r=heycam
MozReview-Commit-ID: 18LFjlWZBLl

--HG--
extra : rebase_source : afbba14c09f937340bd506859cbcc829100f9e8d
2017-07-26 11:21:30 +08:00
cku d869a580cc Bug 1301245 - Part 1. Implement nsStyleImage::IsResolved. r=heycam
We need this new API in the following patch.

MozReview-Commit-ID: JSoCgzKWrfs

--HG--
extra : rebase_source : e7da0a990b991b1c417015a9cb4f9e2b1e98faae
extra : source : 8f02c1ea8448315f9284939823d66e67cdc5ad87
2017-07-20 01:02:17 +08:00
Josh Matthews ace7bd502f Bug 1381137: Append skipped/dropped message to Stylo CSS error reports. r=heycam
MozReview-Commit-ID: GUgJneVg1oy
2017-07-26 14:55:33 +02:00
Carsten "Tomcat" Book aa090c5164 Backed out changeset c25880692555 (bug 1380259) on developers request 2017-07-26 14:28:01 +02:00
Fernando Jimenez Moreno f84de8b097 Bug 1380259 - stylo: update test expectations. r=xidorn
MozReview-Commit-ID: 3lccr7l8M29

--HG--
extra : rebase_source : 8fc680b078caf79e2b4a0c559a2810a6b24815ce
2017-07-26 13:18:05 +02:00
Emilio Cobos Álvarez b6a289fe2e Bug 1384065: Tests. r=heycam
MozReview-Commit-ID: BHcyfvgBhaK

--HG--
extra : rebase_source : be5413a90c17b239c7ffc13de2daa9a2a6c75eeb
2017-07-26 02:12:05 +02:00
Manish Goregaokar cfb8c81021 Bug 1341102: Update reftest expectations from servo PR #17880; r=orange
MozReview-Commit-ID: LkO6SYQmoa6
2017-07-27 00:18:05 -07:00
Carsten "Tomcat" Book 8a74dfa905 Merge mozilla-central to autoland 2017-07-26 11:18:21 +02:00
Carsten "Tomcat" Book 198430bca2 merge mozilla-inbound to mozilla-central a=merge 2017-07-26 11:11:40 +02:00
Ryan VanderMeulen fc0b3076bb Bug 1383975 - Add crashtest. 2017-07-26 00:13:53 -04:00
Daisuke Akatsuka 000fc27d48 Bug 1379921 - Part 3: remove test fail annotations from reftest. r=hiro
Since we make "font-variant-alternates" animatable,
should remove test fail annotation from reftest.list.

MozReview-Commit-ID: ChdeSvUbTBh

--HG--
extra : rebase_source : fac9fb01a60c684d7169866964621f431b3508e3
2017-07-26 12:28:31 +09:00
Hiroyuki Ikezoe a46b077ea1 Bug 1381420 - A crash test that has an element is not restyled but has reconstruct frame damage during flushing throttled animations. r=emilio
The details element, which is a sibling of an animating element, is checked
whether the element needs to be processed in a post traversal for throttled
animation flush because the parent element has animation-only dirty bit (i.e.
the parent element is a common ancestor of the animating element and the
details element). Also at the moment of the check the details element has
reconstruct frame damage because 'open' attribute is changed. Thus in the check
the details element was not restyled but had reconstruct frame damage.

MozReview-Commit-ID: FvsyZlUjhFi

--HG--
extra : rebase_source : 80ee22e7a3092ee208ce74304c242da782f6a0f4
2017-07-26 11:50:12 +09:00
Bobby Holley 8862f9008d Bug 1341102 - Reenable some more reftests. r=me
MozReview-Commit-ID: zYSKOW3uXi
2017-07-25 21:02:32 -07:00
Kevin Hsieh 61cee79da1 Bug 1383925 - Remove unnecessary copy construction of default font in nsRuleNode.cpp. r=dholbert
MozReview-Commit-ID: 6awjBjmEBsM

--HG--
extra : rebase_source : af3055ea0bb480b58fcfd1a5c79dfcb59eec6d78
2017-07-24 17:56:54 -07:00
Wes Kocher f19f28adfd Merge m-c to autoland, a=merge
MozReview-Commit-ID: F1X8wKqbkg
2017-07-25 19:16:09 -07:00
Wes Kocher 65bbd0525a Merge inbound to central, a=merge
MozReview-Commit-ID: E4oXfAM1mtd
2017-07-25 19:04:37 -07:00
Geoff Brown 52530ae04e Bug 1380830 - Disable reftest container-with-clamping.html for frequent intermittent failures; r=me,test-only 2017-07-25 09:28:53 -06:00
Carsten "Tomcat" Book bdf7db3d13 Merge mozilla-central to mozilla-inbound
--HG--
rename : dom/tests/mochitest/chrome/test_window_getAppLocales.html => dom/tests/mochitest/chrome/test_window_getRegionalPrefsLocales.html
rename : mobile/android/app/src/main/res/drawable/as_contextmenu_divider.xml => mobile/android/app/src/main/res/drawable/as_contextmenu_divider_helper.xml
rename : testing/tools/autotry/autotry.py => tools/tryselect/selectors/syntax.py
extra : rebase_source : d74c74a654cd977d35e35de2768ada4ebe659ae4
2017-07-25 14:38:43 +02:00
Carsten "Tomcat" Book 679210723b merge mozilla-inbound to mozilla-central a=merge 2017-07-25 14:27:17 +02:00
Kartikaya Gupta 9c8e5912d3 Bug 1383204 - Allow layers-free webrender mode in chrome prescontexts. r=ethlin
MozReview-Commit-ID: 44OBpd0R5fX
2017-07-25 08:18:52 -04:00
Kartikaya Gupta f909a23c70 Bug 1383204 - Create webrender commands for the nsDisplayRemote display item. r=ethlin
This allows us to turn on layers-free mode in the firefox UI process,
and have it work better in that the content process' content actually
shows up.

MozReview-Commit-ID: qBnfueYmuf
2017-07-25 08:18:49 -04:00
Kartikaya Gupta fc9b6a3e28 Bug 1383204 - Change helper function's return type to be more strongly typed. r=mattwoodrow
No functional change here, but this makes the next patch simpler.

MozReview-Commit-ID: BzdmQ243VeI
2017-07-25 08:18:46 -04:00
Kartikaya Gupta 11bfdd333f Bug 1383204 - Remove unused function parameter. r=mattwoodrow
MozReview-Commit-ID: JtJAHdHBqNd
2017-07-25 08:18:41 -04:00
Ethan Lin 4cd23c6b8f Bug 1373530 - Clean some unused reftest annotations after enabling background color layer by default. r=kats 2017-07-25 17:49:04 +08:00
Dão Gottwald fe72da1e54 Bug 1007283 - Enable arrow panel animations on Linux. r=jaws
MozReview-Commit-ID: BUL3NWpsKll

--HG--
extra : rebase_source : b2434d6167e758a92b42a2277e5f4b63f32e7e00
2017-07-19 23:16:19 +02:00
Carsten "Tomcat" Book 0ff1ec388b Merge mozilla-central to autoland 2017-07-25 14:35:23 +02:00
Carsten "Tomcat" Book 1c55d9468a Backed out changeset 7c3ddf34fc42 (bug 1377158) for stylo failures 2017-07-25 14:34:14 +02:00
Carsten "Tomcat" Book 479379519a Backed out changeset 2fbce7c06627 (bug 1377158) 2017-07-25 14:33:42 +02:00
Fernando Jimenez Moreno f61c37ce13 Bug 1382285 - stylo: initialize missing Servo*Rule with line and column numbers. r=xidorn
MozReview-Commit-ID: 7gNTbctHYGh

--HG--
extra : rebase_source : 3a7649155311b89809470dce0121e28a465c630d
2017-07-24 15:07:07 +02:00
Xidorn Quan 4e4645bdba Bug 1382077 part 4 - Update test expectations. r=heycam
MozReview-Commit-ID: 75nHSozDSNq

--HG--
extra : rebase_source : e7db959599606db14486207eef9d9a42aff25385
2017-07-24 13:02:58 +10:00
Xidorn Quan ef7357ef4c Bug 1382077 part 3 - Record viewport unit usage and generate proper restyle hint. r=heycam
MozReview-Commit-ID: FA2TiIejUT

--HG--
extra : rebase_source : f34741f4129c669aff3588c17bb81f5feca29e67
2017-07-24 13:02:17 +10:00
Xidorn Quan d645f266b8 Bug 1382077 part 2 - Move mUsesViewportUnits into nsStyleSet. r=heycam
MozReview-Commit-ID: DQ4ZoLLNPeN

--HG--
extra : rebase_source : 789b1b58eb760e74802dfac1c5b4070f02e1185c
2017-07-24 11:51:32 +10:00
Xidorn Quan 7399a0157a Bug 1382077 part 1 - Have StyleSet::MediumFeaturesChanged return nsRestyleHint rather than a bool. r=heycam
MozReview-Commit-ID: 5g3mHU8pxXP

--HG--
extra : rebase_source : aff51be14395850620fe43d814c49e30a3048be5
2017-07-24 11:27:08 +10:00
cku 5acc1499f0 Bug 1383791 - Download an SVG resource only if the mask URL consists of a fragment. r=heycam
MozReview-Commit-ID: OT6ipv3qSj

--HG--
extra : rebase_source : 295f3de7ece6aaa2473d7efc376de078419f3e10
extra : source : cb4b39a80923ff50dc6b4c3dc0b9ff9c508e5b48
2017-07-19 19:45:34 +08:00
Cameron McCormack f7f0ad18d0 Bug 1376248 - Part 1: Use an nsAutoAnimationMutationBatch when updating animations for an element in stylo. r=birtles
MozReview-Commit-ID: 2ft7qn9iVLB

--HG--
extra : rebase_source : b24eea2c4e08b448dcbc1891339a42d3534ddc2d
2017-07-24 16:02:53 +08:00
Masayuki Nakano 8661a7547b Bug 1382118 - Make nsPrintEngine::AfterNetworkPrint() do nothing if mPtr is nullptr r=dholbert
According to the crash reports, nsPrintEngine::AfterNetworkPrint() may be called after nsPrintEngine::Destroy() is called.  In this case, the method should do nothing because it's already been destroyed.

MozReview-Commit-ID: IwY9fR1OUwU

--HG--
extra : rebase_source : 6fb2e23a1e30da59c4c8823e72b8a4460c8adb28
2017-07-22 00:43:38 +09:00
Cameron McCormack 2042375cc8 Bug 1371150 - Update test expectations. r=hiro
MozReview-Commit-ID: D6CK7LouSxO

--HG--
extra : rebase_source : 1cb4c6698575dae1c8d0e1b3894c2670d095cf75
2017-07-24 19:42:18 +08:00
cku 0919df438f Bug 1029610 - Remove b2g skip-if in forms/test/mochitest.ini. r=pyang
MozReview-Commit-ID: 2zB8es3S86b

--HG--
extra : rebase_source : e225fbbf09d5c49e3adc2d770963ca353847e3a7
2017-07-24 22:48:45 +08:00
Hiroyuki Ikezoe b096686ea6 Bug 1383589 - Process post traversal whenever StyleDocument() or StyleDocumentForThrottledAnimationFlush() returns true. r=emilio
The test case in this patch freezes without this fix.

MozReview-Commit-ID: 6Rb9XmtAmpM

--HG--
extra : rebase_source : 9a68482c77d5e77ed5733f757ed3ec021834ba2f
2017-07-25 11:49:04 +09:00
Bobby Holley d1534d15b4 Bug 1341102 - Re-enable some crashtests. r=me
MozReview-Commit-ID: 65QY7FfZQcL
2017-07-24 18:35:19 -07:00
KuoE0 29854794cf Bug 1377158 - (Part 7) Disable failed test cases. r=heycam
MozReview-Commit-ID: 75Me2Fa5qIa

--HG--
extra : rebase_source : 0b78f7aca9755071e3929169202368d962ad934d
2017-07-19 15:04:39 +08:00
Ya-Chieh Wu 2616e6e38b Bug 1375518 - Add reftest to check that border-radius is painted correctly on table. r=dbaron
MozReview-Commit-ID: KPuHtkttJim

--HG--
extra : rebase_source : 40658310460841ff95a6215bebcd3653d6fc62d1
extra : histedit_source : 0b2e14f7e4b02ed14d2266cd75ecef39d3944c79
2017-07-18 12:00:27 +08:00
ywu c02e41a36e Bug 1375518 - Add reftest to check that border radius is painted correctly on border-collapsed table. r=mattwoodrow
--HG--
extra : rebase_source : a5b43f73149a04639ffc069a38f960e58cab681c
extra : histedit_source : 9ec685177874b21bc6cd778431642bc41ce91b69
2017-07-18 11:47:17 +08:00
Morris Tseng 24047e52eb Bug 1375518 - Don't override GetBorderRadii in nsBCTableCellFrame. r=mattwoodrow
MozReview-Commit-ID: 7CSTDwuxm21

--HG--
extra : rebase_source : 769e34695412837e074b414578832afba10b58ef
2017-07-18 10:54:11 +08:00
Emilio Cobos Álvarez cd3f69980b Bug 1384020: Test. r=canaltinova
MozReview-Commit-ID: JsuNmfbHgFW

--HG--
extra : rebase_source : c4a9cf2a34cb71dd6b9cfb12e2d604ba1752d9e0
2017-07-26 00:11:16 +02:00
Yoshi Huang 7036b3761f Bug 1382531 - Part 1: rewrite crashtest for data: URI is unique opaque origin. r=smaug 2017-07-25 09:56:02 +08:00
Wes Kocher fd09155f06 Merge m-c to inbound, a=merge
MozReview-Commit-ID: 418vKEKrk3n
2017-07-24 18:10:56 -07:00
Wes Kocher 2673406be5 Merge inbound to central, a=merge
MozReview-Commit-ID: 1oTeP8uycV2
2017-07-24 18:06:39 -07:00
Samael Wang 87f7100ef3 Bug 1381933 - Retry loading blank page if gClearingForAssertionCheck but load event comes from another URL. r=jmaher
MozReview-Commit-ID: 9AIEW508oID

--HG--
extra : rebase_source : 45be11677b1414650777c5147a26b9eb69caf4e9
2017-07-20 17:15:32 +08:00
Joel Maher 6af8e7f7ac Bug 1379810 - Intermittent layout/base/tests/test_scroll_snapping_scrollbars.html. disable on windows. r=KWierso
MozReview-Commit-ID: 9V5eR0r67rr
2017-07-24 18:28:24 -04:00
Ya-Chieh Wu 4acbeaf8d1 Bug 1375518 - Fix border-radius on table row groups, rows, column groups, or columns. r=dbaron
Before bug 929484, border-radius on row groups, rows, column groups,
or columns don't apply to the background of each cell, yet the
border-radius on the cell itself does. After bug 929484, the behaviors
changed. In this patch, I tried to revert the behaviors of border-radius
on table row groups, rows, column groups, or columns back to
what happened before bug 929484.

MozReview-Commit-ID: 1Xg1qHde3lk

--HG--
extra : rebase_source : ff08f8390ff910fe8c141a75275134f77a1cec3e
2017-07-14 15:50:04 +08:00