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

64394 Коммитов

Автор SHA1 Сообщение Дата
Miko Mynttinen 10427be70b Bug 1464065 - Avoid unnecessary work in nsIFrame::IsStackingContext() when frame is visually atomic r=mattwoodrow
MozReview-Commit-ID: 3g5PqD65I2p

--HG--
extra : rebase_source : 7427ed54043bfa312c20acd887b31f7a22be13f7
2018-05-24 15:24:49 +02:00
Emilio Cobos Álvarez 441ab566e4 No bug - Fix some bogus indentation. r=me
MozReview-Commit-ID: 6G7oS6MkJ0Y
2018-05-25 14:18:29 +02:00
Gurzau Raul c406b410bc Backed out changeset 5bb547481faf (bug 1451973) for testChild failures on a CLOSED TREE 2018-05-25 14:16:34 +03:00
Bogdan Tara 597ad02dc7 Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032.html
2018-05-25 13:01:23 +03:00
Xidorn Quan ee0c05df56 Bug 1463687 - Apply scrollbar style of root element to scrollbars of viewport. r=heycam
MozReview-Commit-ID: GWmhehtqO1U

--HG--
extra : rebase_source : 18e73bb269c9a0b1fd7d3c4ab25f4ad788d1a065
2018-05-24 16:34:58 +10:00
Brad Werth 39c314e889 Bug 1463794: Move new WPT reftests to correct source-of-truth directory. r=dbaron+3881
MozReview-Commit-ID: DcM0kVCAsZn

--HG--
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-circle-056.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-circle-056.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-ellipse-052.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-ellipse-052.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032-ref.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032-ref.html
rename : testing/web-platform/tests/css/vendor-imports/mozilla/mozilla-central-reftests/shapes1/shape-outside-polygon-032.html => layout/reftests/w3c-css/submitted/shapes1/shape-outside-polygon-032.html
extra : rebase_source : add4f42d16a770eac4915b26fb4a7fffd5ac6ac4
2018-05-23 12:53:34 -07:00
Matt Woodrow 55904c6b43 Bug 1462497 - Follow-up to fix code that was accidentally inside a MOZ_DIAGNOSTIC_ASSERT_ENABLED block.
--HG--
extra : rebase_source : b83d1cba9ae77e01d7e972aae2d9611d1d5cac00
2018-05-25 09:56:28 +12:00
Brindusan Cristian 309ff0bd1f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-25 03:08:34 +03:00
Yusuf Sermet 3b2bfe587d Bug 1460787 - Change fatal assertion to warning for extremely large sized pages. r=dholbert
MozReview-Commit-ID: 8MpvqbecU2k

--HG--
extra : rebase_source : a4d4552780e916a3fde0a454238fc069722b5604
2018-05-23 10:06:57 -07:00
Peter Van der Beken 3659b3ea86 Bug 1451973 - Split off process from non-process message managers. r=bz.
Process and non-process managers have different script loader interfaces
(ProcessScriptLoader/GlobalProcessScriptLoader vs FrameScriptLoader). The WebIDL
conversion used the same interface for some process and
non-process managers, but because of the different script loader interfaces they really
should be using separate interfaces.

--HG--
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/MessageBroadcaster.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/MessageBroadcaster.h
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/ParentProcessMessageManager.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/ParentProcessMessageManager.h
rename : dom/base/ChromeMessageSender.cpp => dom/base/ProcessMessageManager.cpp
rename : dom/base/ChromeMessageSender.h => dom/base/ProcessMessageManager.h
extra : rebase_source : 6694ae975bc2af1b496db6b8cef645ec62582d9a
2018-04-16 15:18:48 +02:00
Emilio Cobos Álvarez 3aea548f0f Bug 1462272: Minor cleanup of nsImageListener's ctor / dtors. r=dholbert
MozReview-Commit-ID: BHipMKnFQvA
2018-05-25 12:09:56 +02:00
Emilio Cobos Álvarez ac48d4a2a8 Bug 1462272: Remove handling for an impossible condition. r=asuth
The frame is notified via its mListener, which is an observer of the
nsImageLoadingContent (mContent).

This last one only notifies for the current and pending requests, otherwise it's
a bug we need to fix there, not wallpaper here, since that'd mean that we forgot
to cancel the previous request. Added assertions to that effect.

Notify() is only called with the this object as a first argument from
imgRequestProxy, so it'd better be non-null, too.

MozReview-Commit-ID: DHaOLph2EAo
2018-05-25 12:09:23 +02:00
Emilio Cobos Álvarez 9520790e72 Bug 1462272: Remove an unneeded and ugly reinterpret_cast. r=dholbert
MozReview-Commit-ID: Evip43nwNii
2018-05-25 12:09:49 +02:00
Emilio Cobos Álvarez f981370133 Bug 1462272: Introduce nsImageFrame::GetCurrentRequest. r=dholbert
MozReview-Commit-ID: IXXtYClyY2z
2018-05-25 12:09:42 +02:00
Emilio Cobos Álvarez 6332002ac0 Bug 1462272: Remove a weirdly named variable, and call LoadIcons sooner. r=dholbert
So that the imageLoader code is all grouped together. LoadIcons should probably
be a static, and the change shouldn't have any observable behavior.

MozReview-Commit-ID: Anxe8c5OfLe
2018-05-25 12:09:35 +02:00
Emilio Cobos Álvarez f09824aad6 Bug 1149357: Properly update responsive images for density changes. r=dholbert
Before that we were not notifying the image frame in any way if we ended up not
doing a load, and we were instead relying on the reflow the viewport resize
caused to get the new density in ComputeSize from the content node (but nowhere
else, since that's the bug part 1 fixes).

This was generally unsound, since you can stash random media in a sizes=
attribute, which don't necessarily needs to cause a reflow.

Now we need to notify necessarily because nsImageFrame stores the adjusted
intrinsic size.

mCurrentDensity could also get out of sync as well, when the selected image
density changed, but we ended up returning early because our source hadn't
change in the first early exit.

This patch moves us to a model where we don't re-trigger loads for density
changes if the source doesn't change (unless we pass aAlwaysLoad when we need
to, per spec).

This matches our previous behavior (without the bugginess of not updating the
intrinsic size), and also Chromium, at least.

This changes behavior in one case, which is when we don't load the same source
node, but we have the same source URL, and the density does change. This could
happen with <picture> and two <source>s with same source and different media and
sizes. This makes our behavior consistent with the behavior we have when both
the source and the density doesn't change.

Blink and WebKit do trigger a second image load both when the source changes
without changing density and when density changes. I'll file a spec issue, since
per:

  https://html.spec.whatwg.org/#reacting-to-environment-changes

We should be triggering the load when the density changes but the source
doesn't as well, but no UA does that.

I filed https://github.com/whatwg/html/issues/3709 with a little summary of the
situation and what I think the behavior should be (which is what this patch
implements). That being said, I'll update the impl if the spec people think
otherwise :).

MozReview-Commit-ID: Eqy16ygHRLo
2018-05-25 12:09:30 +02:00
Emilio Cobos Álvarez 5d4df42dc7 Bug 1149357: Make nsImageFrame::mIntrinsicSize account for density. r=dholbert
Only doing it in ComputeSize (via GetNaturalSize) is unsound, and the rest of
the users of mIntrinsicSize definitely do need scaling accounted for.

Move the adjustment to nsImageFrame for two reasons:

 * Prevents adding more dependencies from nsIImageLoadingContent, which
   otherwise would need to go away anyway in bug 215083.

 * Avoids having to duplicate the image orientation logic, since mImage is
   already an OrientedImage if needed.

MozReview-Commit-ID: EA0n0TctZhN
2018-05-25 12:09:23 +02:00
Tyson Smith 97fefc2d56 Bug 1414100: Crashtest. r=emilio
MozReview-Commit-ID: 8tQwUR8BFPk
2018-05-25 18:36:30 +02:00
Peter Van der Beken 1c4d1cd486 Bug 1451973 - Split off process from non-process message managers. r=bz.
Process and non-process managers have different script loader interfaces
(ProcessScriptLoader/GlobalProcessScriptLoader vs FrameScriptLoader). The WebIDL
conversion used the same interface for some process and
non-process managers, but because of the different script loader interfaces they really
should be using separate interfaces.

--HG--
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/MessageBroadcaster.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/MessageBroadcaster.h
rename : dom/base/ChromeMessageBroadcaster.cpp => dom/base/ParentProcessMessageManager.cpp
rename : dom/base/ChromeMessageBroadcaster.h => dom/base/ParentProcessMessageManager.h
rename : dom/base/ChromeMessageSender.cpp => dom/base/ProcessMessageManager.cpp
rename : dom/base/ChromeMessageSender.h => dom/base/ProcessMessageManager.h
extra : rebase_source : d19120fb59b413aecf4e78aee8dc845022cd84dd
2018-04-16 15:18:48 +02:00
Olli Pettay 87d2947a92 bug 1429572, touch.target retargeting in shadow DOM, r=masayuki
--HG--
extra : rebase_source : 75d837bfd7533322a10ae2f785c7efce1fe8ec68
2018-05-25 18:02:59 +03:00
Emilio Cobos Álvarez 44b34ec276 Bug 1461954: Fix nsBulletFrame's image request registration code. r=tnikkel
Ideas for a test for this welcome :).

MozReview-Commit-ID: 1IpUlakeKXm

--HG--
extra : rebase_source : 54ef3968cb868b998cd161e70786c84304099729
2018-05-16 15:05:54 +02:00
Noemi Erli 3180433f81 Backed out changeset 07344dd47432 (bug 1217748) for increasing the frequency of https://bugzilla.mozilla.org/show_bug.cgi?id=1439979 a=backout 2018-05-24 18:44:44 +03:00
Noemi Erli 9205eb539e Merge inbound to mozilla-central. a=merge 2018-05-24 18:40:38 +03:00
Margareta Eliza Balazs ae2fc24a7c Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-24 12:44:13 +03:00
Margareta Eliza Balazs 03394c438d Merge inbound to mozilla-central. a=merge 2018-05-24 12:37:58 +03:00
Boris Zbarsky b134958200 Bug 1452666. Implement nsISerializable on expanded principals. r=kmag 2018-05-24 02:43:14 -04:00
Hiroyuki Ikezoe 265c5c817a Bug 1463605 - A reftest that IB sibling frames are correctly marked as 'NeedsDisplayItemRebuild' when there is an animation on the frames. r=mattwoodrow
MozReview-Commit-ID: FG7SQYKOq3r

--HG--
extra : rebase_source : a42ffc7a601b4dc872f4a2dae83d2ea1366b2f86
2018-05-23 18:15:12 +09:00
Hiroyuki Ikezoe c4fb9d14c7 Bug 1463605 - Check mMayHaveOpacityAnimation in nsFrame::HasOpacityInternal(). r=birtles
If the mMayHaveOpacityAnimation is false there, we don't need to check opacity
animations at all.

MozReview-Commit-ID: LTYPPXzF8V6

--HG--
extra : rebase_source : ee2c90e04003140944fb4cc255aa3c6f1c07f0b0
2018-05-23 18:15:12 +09:00
Xidorn Quan cfe970a04f Bug 1463408 part 2 - Add profiler feature seqstyle for forcing sequential styling when profiling. r=emilio,mstange
MozReview-Commit-ID: 6fm8j7z1EbJ

--HG--
extra : rebase_source : 1715b6af2c72323f320ff3da8e46d1634f5f7367
2018-05-23 19:35:03 +10:00
Miko Mynttinen c6432bd30e Bug 1463752 - Part 2: Avoid allocating AutoTArray when there are no items that can be merged together r=mattwoodrow
MozReview-Commit-ID: 2t0ehABBPy4

--HG--
extra : rebase_source : 4b53bd8845b39da023eca44ba9afd6ac9727ba15
2018-05-22 23:46:11 +02:00
Emilio Cobos Álvarez fb4762b5e6 Bug 1461749: Fix slow path for finding the next sibling frame for appending in presence of Shadow DOM. r=mats
In this case we have a shadow hoot with display: contents, with no children.
Those children wouldn't be flattened tree children of the shadow host.

Instead of using the last light dom child and seek to it, use
FlattenedChildIterator's reverse iteration.

MozReview-Commit-ID: 18XL5Ong7ww

--HG--
extra : rebase_source : 2d34bd5b1fdd509a069ffa5052a7b7b3302be24c
2018-05-23 18:20:33 +02:00
Emilio Cobos Álvarez 10167dbcac Bug 1419802: Bailout from ScheduleViewManagerFlush if already destroying the shell. r=mats
MozReview-Commit-ID: Ixq9jwX2kET

--HG--
extra : rebase_source : c4fe85307a4247209bf085a20a913d577cf15788
2018-05-23 17:20:14 +02:00
Andreea Pavel 2c92aa2095 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-05-24 01:03:40 +03:00
Andreea Pavel 0dada2bb52 Merge inbound to mozilla-central. a=merge 2018-05-24 01:00:23 +03:00
Jonathan Kew 71787557ea Bug 1392147 - Test/expectation adjustments for the change in default font on Android. r=xidorn 2018-05-23 13:52:08 +01:00
Andreea Pavel 4f7d00d030 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-05-24 01:08:00 +03:00
Jonathan Kew 07d3fd7107 Bug 1392147 followup, remove obsolete fuzzy() annotation that was inadvertently left in the patch. r=me 2018-05-23 20:03:18 +01:00
Sebastian Hengst e88db8b986 Backed out 2 changesets (bug 1460041) for failing new reftests on a CLOSED TREE
Backed out changeset 55bf0e045b5e (bug 1460041)
Backed out changeset b80e4986ecfe (bug 1460041)

--HG--
extra : amend_source : 53b04f877c09838715d46124d1186630caa4099b
2018-05-23 20:35:58 +03:00
Joel Maher 5bff4baed5 Bug 1392106 - random-if many tests on win7 to avoid missing letters. r=RyanVM 2018-05-23 13:06:50 -04:00
L. David Baron a9986f687b Bug 1460041 Part 2 followup: reland the correct version of the patch. r=jfkthame 2018-05-23 09:57:35 -07:00
Dorel Luca dc6d856805 Merge mozilla-inbound to mozilla-central. a=merge 2018-05-23 12:51:22 +03:00
Jeff Muizelaar b67abeee17 Bug 1458968. Adjust fuzz for webrender tests r=mstange
MozReview-Commit-ID: 73Rs8QPn1xl
2018-05-22 21:41:33 -04:00
Markus Stange 84a6ade868 Bug 1458968 - Create the nsDisplaySVGWrapper item in nsSVGOuterSVGAnonChildFrame, not in nsSVGOuterSVGFrame. r=mattwoodrow
This ensures that the nsDisplaySVGWrapper's mFrame and its reference frame are the same frame: the nsSVGOuterSVGAnonChildFrame.
It'll also cause the nsDisplaySVGWrapper to be *inside* the nsDisplayTransform for the <svg> element's viewbox transform.

This patch reverts nsSVGOuterSVGFrame::BuildDisplayList to its pre-bug 1407938 form.
(That's the bug that introduced nsDisplaySVGWrapper.)

MozReview-Commit-ID: 3jCyP6Sj8x9
2018-05-22 21:41:32 -04:00
Markus Stange 9f5449b468 Bug 1458968 - Disable blend-difference-stacking.html because it fails now. r=mattwoodrow
This is caused by an existing bug (bug 1458353) about the fact that we treat 2d transforms in
SVG as isolated groups. In this test, that bug didn't manifest because the viewbox transform
happened to be the identity matrix. Now that we no longer treat identity viewbox transforms as
special, bug 1458353 starts affecting this test.

MozReview-Commit-ID: JEYtsqvBTwI
2018-05-22 21:41:31 -04:00
Markus Stange 1c9281028a Bug 1458968 - Make the nsSVGOuterSVGAnonChildFrame a reference frame by always returning true from IsSVGTransformed. r=mattwoodrow
This causes transforms of the <svg> contents to be unaffected by scrolling / offset changes of the <svg> element.

MozReview-Commit-ID: JtDmwppqBis
2018-05-22 21:41:30 -04:00
Markus Stange 495e546911 Bug 1165185 - Add a test for not invalidating transformed elements inside SVG during scrolling. r=roc 2018-05-22 21:41:29 -04:00
Matt Woodrow 6eda39ebfb Bug 1462497 - Part 4: Only use the MayHaveAnimation variants when computing useOpacity in case the more accurate version changes results between paints. r=hiro
I don't think this part is necessary, but putting the patch up in case we decide we want to take it.

MozReview-Commit-ID: G0JTNddvZma

--HG--
extra : rebase_source : 442a6a563044c2c510f332f881d9fab55c4455be
2018-05-23 11:03:54 +12:00
Matt Woodrow 44fcf86181 Bug 1462497 - Part 3: Don't condition useOpacity on values that might change silently between paints (HasAnimationsForCompositor, and the will-change budget). r=hiro
MozReview-Commit-ID: Kry5YIAIAHt

--HG--
extra : rebase_source : ccc1085ad534da882a9f5ef03a5b7675bc39ed08
2018-05-23 11:03:42 +12:00
Matt Woodrow c77fe6d1bd Bug 1462497 - Part 2: Invalidate the new caret frame in subdocuments, since it will result in a new nsDisplayWrapList being created. r=miko,mstange
nsDisplayListBuilder::DisplayCaret returning true means that we set canSkipWrapList to true, and then we build an nsDisplayWrapList.
We need to make sure we're invalidated for this changing in nesting level to be handled.

MozReview-Commit-ID: 4j3WIJDcHtI

--HG--
extra : rebase_source : b64d0af756c297de42aa2e164ee32ccbe01890d1
2018-05-23 10:59:53 +12:00
Matt Woodrow fa6ba0bd5b Bug 1462497 - Part 1: Don't crash if we find an item from the wrong list, and keep looking instead r=miko
We will still crash in Nightly/DevEdition builds (so that we can fix the bug), but we'll just accept the possible duplication of items (and maybe minor rendering issues) for releases.

MozReview-Commit-ID: LNzjO8vJjGp

--HG--
extra : rebase_source : 3a755c0929bba42c0f6148e50f8d16567eea87e5
2018-05-23 10:59:11 +12:00
Brad Werth 32a1652991 Bug 1460041 Part 2: Add WPT reftests for many shape-outside shapes that use an element offset from its container. r=jfkthame
This adds several tests to ensure that computation of float areas for
shape-outside shapes works for elements that are offset from their containing
block.

(Part of original patch relanded by dbaron in the correct master directory.)
2018-05-09 12:50:25 -07:00
Kartikaya Gupta 2e785a4671 Bug 1462961 - Refactor to save a nsDisplayTransform* instead of just the transform matrix. r=jrmuizel
Instead of just storing the gfx::Matrix from the nsDisplayTransform on
the stacking context for scrolldata use, we now store a pointer to the
entire nsDisplayTransform item. We will need this in the next patch.
This patch should not have any functional changes.

MozReview-Commit-ID: 7qsZpL3Ka0X

--HG--
extra : rebase_source : b42957c83ef0591e72fa5b58ceb6650fda96e0b2
2018-05-23 16:08:18 -04:00
Xidorn Quan 2b53237243 Bug 1460295 - Don't dispatch mutation event for style attribute change from CSSOM. r=bz
MozReview-Commit-ID: JWDpyg7czXI

--HG--
extra : rebase_source : 1bf116ff3c016da126dae7ba89282cf31f16660a
2018-05-22 16:34:23 +10:00
Matt Woodrow 756861ae84 Bug 1462412 - Followup - Fix reference test file to match properly.
--HG--
extra : rebase_source : f2b2c926bff4ed104afcc4888184179e1cb3e9b1
2018-05-23 13:28:17 +12:00
Miko Mynttinen 1bc60d55af Bug 1463752 - Part 1: Avoid unnecessary cast in FLBDisplayItemIterator::StartNested() r=mattwoodrow
MozReview-Commit-ID: 4oEpvVFSaU3

--HG--
extra : rebase_source : fbdf743048b212c27345139cff486682ead1023b
extra : intermediate-source : 5719eed9feccf6da6789fd347ab179e3b850ccd1
extra : source : 3cde092461e59cff7fe518742e9514f9f2346f60
2018-04-26 13:11:11 +02:00
Noemi Erli 303e1e01d9 Backed out changeset ac922efad9fd (bug 1463687) for failures in build/build/src/layout/base/nsLayoutUtils.cpp on a CLOSED TREE 2018-05-24 13:55:51 +03:00
Emilio Cobos Álvarez c2d8ef1e49 Bug 1463511: Remove impossible combinations from forms.css. r=heycam
Those classes are only applied when !IsSingleLineTextControl(). No need for the
rules.

MozReview-Commit-ID: KOIWJVaw4pt

--HG--
extra : rebase_source : f4c738b7b1637c9cc7ad6958b53705cd82966864
2018-05-22 19:54:18 +02:00
Emilio Cobos Álvarez 10ce8b38a0 Bug 1463511: Remove useless form.css rule and nsTextControlFrame anon class. r=heycam
Only <textarea> has GetWrapRows() > 0, and the rule for textarea disappeared in
bug 82711.

MozReview-Commit-ID: ERcoLVcufbH

--HG--
extra : rebase_source : 687ae89ce94e0e7f3682f434264661f7b9554819
2018-05-22 19:52:41 +02:00
Margareta Eliza Balazs 546aeaa401 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-24 12:43:17 +03:00
Xidorn Quan f34d64c3c5 Bug 1463687 - Apply scrollbar style of root element to scrollbars of viewport. r=heycam
MozReview-Commit-ID: GWmhehtqO1U

--HG--
extra : rebase_source : 76e460a6f57a4caa852ee1ada1c8e213c598bbd1
2018-05-24 16:34:58 +10:00
Matt Woodrow 95856dac21 Bug 1462412 - Correctly ignore the perspective property for frames that aren't transformable. r=dbaron 2018-05-23 10:41:19 +12:00
Csoregi Natalia acd92af57e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-23 01:02:30 +03:00
Emilio Cobos Álvarez f47a8a463b Bug 1451256: Make toolbarpaletteitem always use box layout. r=dholbert
It doesn't really need the button magic.

MozReview-Commit-ID: 390aozlyYZa
2018-05-22 21:55:01 +02:00
Emilio Cobos Álvarez 2698440ab3 Bug 1463396: Remove unused nsStyleUtil::AppendSerializedFontSrc. r=xidorn
MozReview-Commit-ID: FG6SMUQAj89
2018-05-22 17:24:44 +02:00
Jonathan Kew 57de0bfa9d Bug 1463020 followup, mark test as failing on Android due to lack of font support. r=me 2018-05-22 15:56:33 +01:00
Jonathan Kew 8d48a49b06 Bug 1463020 - Reftests for combination of letter-spacing and text-transform with supplementary-plane characters. r=m_kato 2018-05-22 13:47:30 +01:00
Jonathan Kew 149819a764 Bug 1463020 - Don't allow letter-spacing or cursor placement within a merged group of glyph records in a transformed textrun. r=m_kato 2018-05-22 13:46:54 +01:00
Narcis Beleuzu 3fae2ab3f2 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-05-22 14:24:39 +03:00
Narcis Beleuzu 7bfb685bb2 Merge inbound to mozilla-central. a=merge 2018-05-22 12:49:47 +03:00
Kris Maglione 8340513b0c Bug 1463287: Add QueryInterface helper macro for concrete class types. r=bz
Using concrete class types with static IIDs in QueryInterface methods is a
pretty common pattern which isn't supported by any existing helper macros.
That's lead to separate ad-hoc implementations, with varying degrees of
dodginess, being scattered around the tree.

This patch adds a helper macro with a canonical (and safe) implementation, and
updates existing ad-hoc users to use it.

MozReview-Commit-ID: HaTGF7MN5Cv

--HG--
extra : rebase_source : ace930129d85960d22bc3048ca3bb19bbbd4a63e
extra : histedit_source : 03a87f746d957789d41381e4e1bfcc4fd7eebaf2%2C9c5bae9feeeef7721105db67be0f83e0ded66bb7
2018-05-21 16:33:18 -07:00
Xidorn Quan 5d887e07dc Followup of bug 1392106 backout to remove reftest_writing_modes.list. 2018-05-22 13:57:30 +10:00
Xidorn Quan 99537039c5 Bug 1458159 followup - Update reftest expectations in w3c-css/received/reftest.list on CLOSED TREE 2018-05-22 13:44:15 +10:00
Kris Maglione 6b12d08f7d Bug 1462937: Update callers to use nsIFile::GetDirectoryEntries as a nsIDirectoryEnumerator. r=froydnj
MozReview-Commit-ID: Iv4T1MVAF5

--HG--
extra : rebase_source : 1c518883d082884db7f9323a5acc20361228c26b
extra : histedit_source : 70a73c23d1199d3bfbb5379c78930401166c094b
2018-05-19 20:17:45 -07:00
Xidorn Quan d9975fe508 Bug 1458159 - Use rounding instead of ceiling on max{Ascent,Descent} for DWriteFont. r=jfkthame
The ceiling was introduced in bug 549190 for improve the consistency of
underline positioning. However, removing ceiling now doesn't seem to
regress the testcases in that bug, probably thanks to improvement in
other part.

The ceiling here causes us to have different font metrics than other
browsers on Windows, and can lead to webcompat issue. We also don't do
this for other backends. So it's probably better removing it in favor
of rounding.

There are several test changes:

* min-intrinsic-with-percents-across-elements.html changes result due to
  height of wrapping div in reference page depends on line height, so a
  fixed line height is set to work around the issue.

* 368020-1.html changes result because a slightly different line-height
  triggers bug 1462514. It is changed to use fixed line-height to work
  around the issue.

* 456147.xul is disabled because it compares XUL against HTML page, but
  XUL has different approach to position text in its elements than HTML.
  Specifically, XUL elements don't seem to respect line height while
  HTML elements do. The original line height in the file was probably
  chosen to make the HTML match XUL, so it seems to be non-trivial to
  fix it in a platform-independent way.

* sizing-orthog-{vlr,vrl}-in-htb-{008,020}.xht fails due to text in <p>
  after the testing block shifts 1px up for unknown reason.

MozReview-Commit-ID: 2WJG1AigWl1

--HG--
extra : source : 653c6b7480997c4e1dbead5f0441bc06a0605b7a
2018-05-22 11:43:30 +10:00
Noemi Erli e380c579e9 Backed out changeset 1be70a3d127f (bug 1458159) for reftest failures in sizing-orthog-vlr-in-htb-008.xht on a CLOSED TREE 2018-05-22 04:23:47 +03:00
Morgan Rae Reschenberg 5e74927f09 Bug 1461979 - change faulty assert to warning r=dholbert
MozReview-Commit-ID: 1cFN6Hk2Bdj

--HG--
extra : rebase_source : 0147a6e3932abc1d672bb269b3a0b56a62302104
2018-05-21 15:35:31 -07:00
Xidorn Quan 98bfde7521 Bug 1458159 - Use rounding instead of ceiling on max{Ascent,Descent} for DWriteFont. r=jfkthame
The ceiling was introduced in bug 549190 for improve the consistency of
underline positioning. However, removing ceiling now doesn't seem to
regress the testcases in that bug, probably thanks to improvement in
other part.

The ceiling here causes us to have different font metrics than other
browsers on Windows, and can lead to webcompat issue. We also don't do
this for other backends. So it's probably better removing it in favor
of rounding.

There are several test changes:

* min-intrinsic-with-percents-across-elements.html changes result due to
  height of wrapping div in reference page depends on line height, so a
  fixed line height is set to work around the issue.

* 368020-1.html changes result because a slightly different line-height
  triggers bug 1462514. It is changed to use fixed line-height to work
  around the issue.

* 456147.xul is disabled because it compares XUL against HTML page, but
  XUL has different approach to position text in its elements than HTML.
  Specifically, XUL elements don't seem to respect line height while
  HTML elements do. The original line height in the file was probably
  chosen to make the HTML match XUL, so it seems to be non-trivial to
  fix it in a platform-independent way.

* sizing-orthog-{vlr,vrl}-in-htb-{008,020}.xht fails due to text in <p>
  after the testing block shifts 1px up for unknown reason.

MozReview-Commit-ID: 2WJG1AigWl1

--HG--
extra : rebase_source : 540e68ffff618a6dc3c14b3702b2c042988061a3
2018-05-01 15:18:55 +10:00
Emilio Cobos Álvarez 957fc20c6a Bug 1462829: followup: Re-disable the position-x / position-y tests since they're not correct. r=me to reopen the CLOSED TREE
They're not pairs, they're just either a length or a percentage.

MozReview-Commit-ID: AJK0tfC79Ue
2018-05-21 13:13:52 +02:00
Emilio Cobos Álvarez c881bfab77 Bug 1462829: Test {background,mask}-{size,position} clamping. r=hiro
These properties no longer use calc() as an intermediate value as long as the
types of the values match.

But they don't resolve percentages to pixels in getComputedStyle as
transform-origin and perspective-origin.

MozReview-Commit-ID: 1CtN10ctGPF
2018-05-21 12:07:49 +02:00
Margareta Eliza Balazs 0bb5e5ba36 Merge inbound to mozilla-central. a=merge 2018-05-19 12:39:28 +03:00
Boris Zbarsky a02a40bdb5 Bug 1462737. Make AsElement() not compile when called on Element or some subclass. r=mccr8
It's just noise if we already have an Element.
2018-05-18 23:37:56 -04:00
Boris Zbarsky 69f3dde06c Bug 894215 part 3. Make sure we don't bfcache pages that get mutated after we capture their state. r=smaug 2018-05-18 23:37:56 -04:00
Boris Zbarsky 6f273bf6d2 Bug 894215 part 2. Fix the document "disallow bfcaching" mechanism to work without asserting. r=smaug
There are two issues being fixed here.  First, if DisallowBFCaching is called
before CanSavePresentation, we should really return false from
CanSavePresentation.  Otherwise we'll end up doing a bunch of state-capturing
work for no reason.

Second, if DisallowBFCaching is called between CanSavePresentation and
nsDocumentViewer::Destroy, we need to actually tear down the viewer state.
What we do right now is avoid putting the viewer into the SHEntry, but still
not tear down its presshell and so forth, which leads to asserts in
~nsDocumentViewer when this case is hit.
2018-05-18 23:37:56 -04:00
Kartikaya Gupta 8e7e2dbdb4 Bug 1454042 - Allow missing pipeline information for cross-process iframes. r=sotaro
We should always have the pipeline information for in-process things like
async images, but for cross-process iframes we might not have the information
right away if the content process doesn't get around to sending it for a while.

MozReview-Commit-ID: 18F5nqilXoV

--HG--
extra : rebase_source : 610046cbaaefb38b8e11bda857fd64a00722df27
2018-05-18 10:31:18 -04:00
Ciure Andrei 25574392c0 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-05-19 01:10:35 +03:00
Ciure Andrei 2f509969e9 Merge inbound to mozilla-central. a=merge 2018-05-19 01:05:58 +03:00
Matt Woodrow 52baaee863 Bug 1462497 - Add assertions to try diagnose which wrapper item went away. r=mstange
MozReview-Commit-ID: BkU5tTlgFum

--HG--
extra : rebase_source : f376fb94a99adfe92ae61f6a06a79d872885a5b3
2018-05-18 20:50:04 +12:00
Matt Woodrow 58713b3583 Bug 1462477 - Always initialize the value of aOutIsTransformedFixed, even we don't have an image to paint. r=mstange
This value is used to determine whether we should create nsDisplayFixedPosition, and if the result changes without an invalidation, then retained-dl gets confused with the insertion/removal of a wrap list.

MozReview-Commit-ID: JuXwCzKOxec

--HG--
extra : rebase_source : a62a2ce003eb57582c8a11bffb6c0cb766c6db15
2018-05-18 13:16:42 +12:00
Mats Palmgren 2a64b931c6 Bug 1458902 - [css-grid] Update a few WPT / reftests to new percentage row-gap layout. r=dholbert
--HG--
rename : testing/web-platform/tests/css/css-grid/reference/grid-collapsed-row-gutters-ref.html => testing/web-platform/tests/css/css-grid/reference/grid-percentage-gap-ref.html
2018-05-18 21:09:23 +02:00
Mats Palmgren 32dff95bd8 Bug 1458902 - [css-grid] Re-resolve row-gap against the sum of row track sizes for auto-sized grid containers. r=dholbert
Per CSSWG resolution in:
https://github.com/w3c/csswg-drafts/issues/1921#issuecomment-342269371
2018-05-18 21:09:21 +02:00
Emilio Cobos Álvarez 3a031c33a3 Bug 1461070: Skip starting other transitions based on specified, not already-started transitions. r=birtles,dbaron
MozReview-Commit-ID: 3D5elrj2Ypi
2018-05-18 17:21:16 +02:00
Joel Maher 5b3afd93d3 backout 3 patches (1ee5b2531836, cac593a84f72, 95ccdb87f63f) from bug 1392106 for not fixing font rendering problems.
--HG--
extra : rebase_source : 30b2aa771eeaa978a8e3af18009f22562d764831
2018-05-18 06:40:00 +03:00
Dorel Luca 9769f2300a Merge mozilla-inbound to mozilla-central. a=merge 2018-05-18 12:56:07 +03:00
Ciure Andrei 26287d7c31 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-19 01:09:10 +03:00
Kartikaya Gupta 5cc1ce5338 Bug 1425565 - Add a reftest. r=mstange
MozReview-Commit-ID: 4LATDpITobv

--HG--
extra : rebase_source : 98d9cf068359bc2f58a06b45c7d37bbf13e1bda1
2018-05-18 15:19:47 -04:00
Kartikaya Gupta 63feb7051a Bug 1425565 - Use the container ASR for sticky items when building WebRender clips. r=mstange
Even if the sticky item has a fixed descendant, we want to use the
sticky container item's "real" ASR when computing the WR clips because
otherwise the WR item doesn't get attached to the correct scrolling
layer.

MozReview-Commit-ID: JVnzEIBeLKp

--HG--
extra : rebase_source : 806e43eb65d46eb5151e21b0a5eb09168b2df82d
2018-05-18 15:19:47 -04:00
Bogdan Tara a59328d28f Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-05-18 01:07:35 +03:00
Bogdan Tara 3287e1104c Merge inbound to mozilla-central. a=merge 2018-05-18 01:04:08 +03:00
Mats Palmgren 6e331b1d1d Bug 1461222 part 2 - Make GetWidgetPadding return LayoutDeviceIntMargin. r=emilio 2018-05-17 17:30:35 +02:00
Mats Palmgren bae2d6f225 Bug 1461222 part 1 - Make GetWidgetBorder return LayoutDeviceIntMargin. r=emilio 2018-05-17 17:30:35 +02:00