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

18231 Коммитов

Автор SHA1 Сообщение Дата
Cameron McCormack c4663ea0f0 Bug 1427419 - Part 22: Move inIDOMUtils.getUsedFontFaces to InspectorUtils. r=bz
This also changes the function to return a sequence (JS Array) instead of
an nsFontFaceList object, and converts nsFontFace/nsIDOMFontFace into a
Web IDL implemented object too.

MozReview-Commit-ID: 1iAW3DYe5kO

--HG--
rename : layout/inspector/nsFontFace.cpp => layout/inspector/InspectorFontFace.cpp
2018-01-11 12:38:01 +08:00
Cameron McCormack abddba8b81 Bug 1427419 - Part 3: Move inIDOMUtils.getCSSStyleRules to InspectorUtils. r=bz
MozReview-Commit-ID: 3pcxsYhguOk
2018-01-11 12:37:59 +08:00
Emilio Cobos Álvarez c35e2eca7d Bug 1429088, Bug 1429125: Add a comment about why we can't remove the XUL check, at least yet. r=me
MozReview-Commit-ID: wzzzGQpXVV
2018-01-10 05:50:31 +01:00
Emilio Cobos Álvarez 659200a710 Bug 1429125: Enable lazy frame construction in the browser chrome, but not XUL yet. r=heycam,tnikkel
This is on top of the patch to re-enable them in shadow trees for bug 1429088.

MozReview-Commit-ID: 3dwQ9J5nFcS
2018-01-10 05:47:13 +01:00
Emilio Cobos Álvarez 078f548313 Bug 1429088: Enable lazy frame construction for shadow trees. r=bz
There's no reason it wouldn't work after bug 1404789.

MozReview-Commit-ID: 28X5x2rDqYn
2018-01-10 05:47:05 +01:00
Daniel Holbert e2cb60d64a Bug 1429215: Null-check pointer before using it in assertion in GetFloatFromPlaceholder() (to avoid crashing during assertion). r=mats
MozReview-Commit-ID: 7pWq8nr1mqQ

--HG--
extra : rebase_source : c4cb90d7f865a3ab52889b53695f94f3e4157298
2018-01-09 12:54:21 -08:00
Kartikaya Gupta 44c882edb5 Bug 1426653 - Stop calling SchedulePaint uselessly when bumping the APZ focus sequence number. r=rhunt
MozReview-Commit-ID: Hq8QXLjDWL

--HG--
extra : rebase_source : aaa9e7479eace007b2b81ac210fe3d5f66ed439e
2018-01-09 14:02:42 -05:00
Emilio Cobos Álvarez 339814eda4 Bug 1427677: Get rid of nsContentUtils::HasDistributedChildren. r=bz
The whole function doesn't have much sense.

I killed its only DOM use in bug 1427511.

Now it only has two callers in nsCSSFrameConstructor, which basically only want
to know whether the children of the same node can have different flattened tree
parents.

So let's check that directly instead (checking whether the element has a binding
or a shadow root), and simplify a bit other surrounding code while at it.

Leave the XUL popup / menubar code doing the broken thing they were doing
beforehand, because it doesn't look to me like it's trivial to fix... They're
effectively assuming that the children of the menupopup end up in a single
insertion point, which is true, but doesn't need to be. Maybe they should walk
the DOM tree? Don't want to dig into that right now, since XUL insertion points
can be filtered and all that... Not fun.

Also, this removes the broken optimization that used to check
mParentFrame->GetContent()->HasChildren(), because it's pretty broken. It used
to be relevant before bug 653881, because <children> element used to not exist,
but now the insertion point at least needs to contain the <children> element all
the time.

There even used to be a XXX comment saying that the optimization didn't work,
which was removed in:

  https://hg.mozilla.org/mozilla-central/rev/2d8585ec74b3

We could still check for "no insertion points", and optimize that, but it
doesn't seem worth it.

MozReview-Commit-ID: L4lspkxKENr
2018-01-09 20:50:17 +01:00
Margareta Eliza Balazs 5a9938931a Backed out changeset b047f4782ae2 (bug 1423331) for 4 failures in layout/base/tests/test_reftests_with_caret.html r=backout on a CLOSED TREE 2018-01-09 17:48:14 +02:00
Emilio Cobos Álvarez 70064701e8 Bug 1423331: Tests. r=mats
MozReview-Commit-ID: Ay4tUwSH0Iq

--HG--
extra : rebase_source : 7105701c7117b7b0826591187bf4b8879a805945
2017-12-17 02:48:49 +01:00
Margareta Eliza Balazs fe2caaa266 Merge inbound to mozilla-central r=merge a=merge 2018-01-09 11:52:55 +02:00
KuoE0 e3413cd8d2 Bug 1425088 - (Part 3) Put the dropdown frame's placeholder into the principal child list of the combobox frame when content-select is enabled. r=mats
MozReview-Commit-ID: HJrltVmJCOj

--HG--
extra : rebase_source : 0ae4eefc39d43b1e8b08dfaa71aac264ab2d55bd
2018-01-05 17:50:38 +08:00
KuoE0 0bcba466df Bug 1425088 - (Part 2) Change the dropdown frame to a top-level absolute frame when content-select is enabled. r=mats
MozReview-Commit-ID: E77XdiELqhm

--HG--
extra : rebase_source : 19cc0bccf5dc4160e2b8dff9a710961d0cc38adc
2017-12-13 17:59:29 -06:00
Matt Woodrow 71de2763a6 Bug 1427476 - Don't try to retain display lists for popups since their display root isn't the root frame of a document. r=miko
--HG--
extra : rebase_source : a924322e5cae1ba25526bc258ab18af50d37d66a
2018-01-03 18:31:31 +13:00
Kartikaya Gupta c6e614c39a Bug 1413618 - Avoid possible division by zero. r=xidorn
MozReview-Commit-ID: JSTvMb3mM4P

--HG--
extra : rebase_source : 646429f399c47efef56ee9ae4e3b3bed410a9864
2018-01-08 05:59:08 -05:00
KuoE0 1de9a1005f Bug 1428276 - Make ExpectedOwnerForChild deal with abs.pos. anon boxes. r=heycam
For an OOF frame, the parent frame that's associated with our parent
style context is the *placeholder's* parent -- not the OOF frame's
parent.

MozReview-Commit-ID: CUSBkWDqxWz

--HG--
extra : rebase_source : 96dfef60ed87b94fe7ec1ea5c3104658e283b3ea
2018-01-05 16:26:01 +08:00
Emilio Cobos Álvarez 91be560d9c Bug 1427292: [css-display] Update display: contents on Unusual Elements to the spec. r=mats
This will pass[1] whenever the next WPT sync happens.

See: https://drafts.csswg.org/css-display/#unbox-html

[1]: https://github.com/w3c/web-platform-tests/blob/master/css/css-display/display-contents-unusual-html-elements-none.html

MozReview-Commit-ID: 19dqDSxVm7A
2018-01-06 21:52:51 +01:00
Emilio Cobos Álvarez a68efc4059 Backout two changesets (Bug 1427677) until I prove they have no negative performance implication. r=backout
MozReview-Commit-ID: 3xuUAXVfEHd
2018-01-06 19:01:48 +01:00
Emilio Cobos Álvarez 872ec24ce1 Bug 1428353: Allow undisplayed maps to be queried for elements out of the document. r=mats
MozReview-Commit-ID: 69lQNFk5vhG

--HG--
extra : rebase_source : 693f2537039045f765f8a40da84792bc1b60327f
2018-01-06 00:50:58 +01:00
Emilio Cobos Álvarez 7f7f3991e3 Bug 1427677: Get rid of nsContentUtils::HasDistributedChildren. r=bz
The whole function doesn't have much sense.

I killed its only DOM use in bug 1427511.

Now it only has two callers in nsCSSFrameConstructor, which basically only want
to know whether the children of the same node can have different flattened tree
parents.

So let's check that directly instead (checking whether the element has a binding
or a shadow root), and simplify a bit other surrounding code while at it.

Leave the XUL popup / menubar code doing the broken thing they were doing
beforehand, because it doesn't look to me like it's trivial to fix... They're
effectively assuming that the children of the menupopup end up in a single
insertion point, which is true, but doesn't need to be.

Maybe they should walk the DOM tree? Don't want to dig into that right now,
since XUL insertion points can be reordered and all that... Not fun.

MozReview-Commit-ID: L4lspkxKENr
2018-01-06 11:39:16 +01:00
Emilio Cobos Álvarez 6b2dceda02 Bug 1427908: Never reenter synchronously into frame construction. r=bz
We remove async from the DOM all the time now since bug 1389743.

We could, before this patch, recurse into frame construction in a sync way, due
to the way we handle the weird insertion cases for <fieldset>, <details>, and
<mathml>.

This patch makes those also async, making the IssueSingleInsertNotifications
condition unnecessary.

MozReview-Commit-ID: LujPaYPwA4G

--HG--
extra : rebase_source : 3fc9dc9589a0c43f9f211e22873bf6b960d416f7
2018-01-03 05:51:12 +01:00
Sebastian Hengst d52c7b3231 merge inbound to central. r=merge a=merge 2018-01-06 00:27:10 +02:00
Emilio Cobos Álvarez bab6ad290a Bug 1427824: Remove invalid assertion in presence of display: contents. r=bz
MozReview-Commit-ID: 4jFGHcD5wds

--HG--
extra : rebase_source : 23afb26dd3a93d4693def423a7ee3f3f95ed91a7
2018-01-05 19:12:42 +01:00
Emilio Cobos Álvarez 9cd802936b Bug 1428164: Restyle owned anon boxes after processing children. r=bz
MozReview-Commit-ID: 4QcJPY9hkSm
2018-01-05 11:57:47 +01:00
Jonathan Watt 04cbca1e20 Bug 1425641, part 3 - Remove nsIWebBrowserPrint.GetCurrentChildDOMWindow. r=bobowen
MozReview-Commit-ID: EZHNKvyUT42
2017-12-06 16:02:34 +00:00
Andrea Marchesini e771eaea7c Bug 1425440 - Get rid of GetChildAt_Deprecated in nsPresContext, r=catalinb 2018-01-05 14:36:47 +01:00
Jonathan Kew 489e9ad994 Bug 1426042 - Ensure we don't forget to set bidi data when required on a zero-length trailing frame. r=dholbert 2018-01-05 13:58:51 +00:00
Botond Ballo 54882430dc Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh

--HG--
extra : rebase_source : de145e653f553a41763ae1ba461478709cb7d905
2017-12-20 15:16:18 -05:00
Margareta Eliza Balazs c06fd8b9d6 Merge mozilla-central to autoland. r=merge a=merge CLOSED TREE 2018-01-04 10:07:11 +02:00
Stone Shih 653167e88f Bug 1426728 - Don't cache the event target of pointer events when they are generated from touch. r=smaug.
The event targets of touch events are not necessarily to be the same as their corresponding pointer events. So we don't have to cache the event target of pointer events when they are generated from touch.

MozReview-Commit-ID: 9Gd6ion7NXf
2017-12-22 12:27:05 +08:00
Cosmin Sabou 81a8319b46 Merge mozilla-central to autoland. r=merge a=merge on a CLOSED TREE
--HG--
rename : dom/xul/templates/nsXULSortService.cpp => dom/xul/nsXULSortService.cpp
2018-01-03 23:59:59 +02:00
Cosmin Sabou eff09826f7 Backed out changeset 9a95b205f3e8 (bug 1427635) for cl failures at dom/browser-element/mochitest/test_browserElement_oop_CopyPaste.html r=backout a=backout 2018-01-03 23:48:48 +02:00
Olli Pettay 811a9c30ca backout Bug 1414204 because of regressions, r=backout
--HG--
extra : rebase_source : 97927ab24b0f24e4cfce8ce9199dda24857cfd3b
2018-01-03 18:42:50 +02:00
Andrea Marchesini 06cf5a6213 Bug 1425440 - Get rid of GetChildAt_Deprecated in nsCSSFrameConstructor, r=catalinb 2018-01-03 16:30:15 +01:00
Andrea Marchesini 00e79ef07b Bug 1425321 - Renaming nsINode::GetChildAt to GetChildAt_Deprecated, r=catalinb
We want to deprecate nsINode::GetChildAt as the first step of removing DOM node
child array storage. See bug 651120.
2018-01-03 13:59:54 +01:00
Gijs Kruitbosch 613d9c6f17 Bug 1425356 - remove some tests that only make sense when XUL templates are supported, r=mrbkap
MozReview-Commit-ID: 6mhHJ6bBkHz

--HG--
extra : rebase_source : d44d7c801d61c53448ff535ed2a3c3221c8f5ddb
2017-12-20 14:28:28 +00:00
Emilio Cobos Álvarez e43d539775 Bug 1427635: Fix DoCompareTreePosition frame tree version with null aCommonAncestor. r=xidorn
It doesn't fill the ancestors of the first frame if aCommonAncestor is null,
which means that we get garbage afterwards.

MozReview-Commit-ID: G85dv7KM1Xd

--HG--
extra : rebase_source : 80168515b122c60461bf1cde1695fb7b98aaaa99
2017-12-22 11:01:19 +01:00
Emilio Cobos Álvarez 1cda1ad876 Bug 1427511: Make GetFlattenedTreeParent more straight-forward. r=smaug
Now that accessing nsIContent slots is not a blob of virtual function calls, we
should be able to unify logic here, and speed up the not-so-rare case for
chrome, while keeping the usual case fast.

MozReview-Commit-ID: 87iY5Cbhx4T
2018-01-02 18:00:25 +01:00
Botond Ballo 7e42a77d38 Bug 1425686 - Remove scroll input methods telemetry code. r=kats
MozReview-Commit-ID: 1PC4826SMvh

--HG--
extra : rebase_source : 0123b921159864518e92077dd81d5185816e063a
2017-12-20 15:16:18 -05:00
Noemi Erli 652fbd6270 Merge autoland to mozilla-central r=merge a=merge 2018-01-04 11:44:30 +02:00
Kartikaya Gupta c167fe8ab4 No bug - Convert some tabs to spaces. r=me and DONTBUILD
MozReview-Commit-ID: B6rvSKOXEGG
2017-12-29 10:09:26 -05:00
Emilio Cobos Álvarez c8eb630ebe Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-25 17:50:10 +01:00
Emilio Cobos Álvarez ffdf5d2cb5 Backout changeset e43f568b3e9a (bug 1423990) because some OSX-only code still doesn't build. r=me 2017-12-25 12:55:45 +01:00
Emilio Cobos Álvarez c0959b2955 Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
MozReview-Commit-ID: 8JZuS6O8f8W

--HG--
extra : rebase_source : 09b82acb4f3d69e8a4345457ab217443bc28d6e2
2017-12-07 19:13:50 +01:00
Andreea Pavel 78bc55ae1f Merge inbound to mozilla-centra r=merge a=merge 2017-12-22 11:54:07 +02:00
Emilio Cobos Álvarez 77165a9dc1 Bug 1420533: Add crashtest. r=me
MozReview-Commit-ID: EemfowpZSqp
2017-12-22 00:51:09 +01:00
Emilio Cobos Álvarez 033d6b32fc Bug 975644: Enable position sticky in table parts. r=bz
MozReview-Commit-ID: 85nCuChHdTa
2017-12-21 20:29:20 +01:00
Kartikaya Gupta 764fec3892 Bug 1426200 - Disable crashtests failing on windows QR builds. r=jrmuizel
MozReview-Commit-ID: AFZFoq1P3dI

--HG--
extra : rebase_source : dbd2cf616e856bbbd3827eb6ce39e41842159b57
2017-12-21 14:13:32 -05:00
Csoregi Natalia 12c47a01be Merge inbound to mozilla-central r=merge a=merge 2017-12-21 12:01:59 +02:00
Emilio Cobos Álvarez bae0ffb7be Bug 1420547: Fix removal of <area> elements from an image map. r=bz
This code was relying on nsImageFrame::ContentRemoved running before it.

MozReview-Commit-ID: Imjhd9exjQS

--HG--
extra : rebase_source : 7c6367f515dc140176e50d959c07250057e28354
2017-12-13 01:58:48 +01:00