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

67131 Коммитов

Автор SHA1 Сообщение Дата
Ryan Hunt 47ee617d1e Bug 1305957 part 5 - Add implementation of scroll anchor selection and invalidation. r=hiro,dbaron,dholbert
This commit implements candidate selection for a scroll frame using a frame tree
traversal. It roughly tries to follow the algorithm given in the scroll
anchoring draft specification, adapted to operate on the frame tree [1].

Some details, such as not selecting an anchor if the user hasn't scrolled are
not currently in the specification but will be to match Blink's implementation.

Once a scroll anchor has been selected, we maintain a bit on it and its ancestor
frame's states. This is used in a later commit to detect changes to position
during a reflow so the scroll frame can perform an adjustment.

A scroll anchor will be invalidated when the user scrolls the frame or the
scroll anchor is destroyed. Later commits will add logic to drive selection and
invalidation appropriately.

[1] https://drafts.csswg.org/css-scroll-anchoring/#anchor-node-selection

Differential Revision: https://phabricator.services.mozilla.com/D13268

--HG--
extra : rebase_source : e05ba48662aafef5957322def33ddc5d93f3ca5a
extra : source : bdb766faa8679386bf4e9740781262ea4bb36544
2018-11-27 15:45:16 -06:00
Ryan Hunt 91f41f3a0a Bug 1305957 part 4 - Add basic ScrollAnchorContainer implementation. r=hiro
This commit adds a barebones class called 'ScrollAnchorContainer' that will
contain most of the logic for scroll anchoring. It is owned as a member of
ScrollFrameHelper, and has the same lifetime.

Differential Revision: https://phabricator.services.mozilla.com/D13267

--HG--
extra : rebase_source : 41f6f7691af60401f18f98a89f1878cfad2e74d3
extra : source : 3033401ef320414ef5f489c53526d015c38a89d7
2018-11-27 15:18:03 -06:00
Ryan Hunt 3627f69c8f Bug 1305957 part 3 - Add IsStickyPositioned() method to nsStyleDisplay. r=emilio
This commit is used in a later commit to exclude frames that are sticky positioned
from being scroll anchors.

Differential Revision: https://phabricator.services.mozilla.com/D13266

--HG--
extra : rebase_source : efa0b81269dbf55d14d5702e4e4d4970cce2e5cb
extra : source : 6b96050386f6e9bae6b61747145e204d12cd7cf3
2018-11-21 22:35:23 -06:00
Ryan Hunt 9f09201ef2 Bug 1305957 part 2 - Add 'overflow-anchor' CSS property. r=emilio
https://drafts.csswg.org/css-scroll-anchoring/#exclusion-api

Differential Revision: https://phabricator.services.mozilla.com/D13265

--HG--
extra : rebase_source : 14d4a6282274b125a6153a05daff5d93e34a29b7
extra : source : c66c00f7329619d53bc14ec615a0d92f06b6a892
2018-11-21 22:33:15 -06:00
Emilio Cobos Álvarez 2fdc41fadf Bug 1518954 - Three-value position syntax uses calc() as its computed value representation. r=heycam
This restores the previous behavior of using calc().

Note that background-position / object-position, which test this, weren't
hitting the assertion because they use another codepath.

I didn't add more extensive tests for this because it's well tested for those
two properties, and because this is legacy anyway, see the comment in the test.

I did add the assertion to the codepath those two properties hit.

Differential Revision: https://phabricator.services.mozilla.com/D16176
2019-01-11 01:19:13 +01:00
Brindusan Cristian 4d62b74678 Merge inbound to mozilla-central. a=merge 2019-01-07 18:43:04 +02:00
Olli Pettay 2dc267cbf3 bug 1516426, null check touch target before trying to access it's frame, r=masayuki 2019-01-07 15:05:11 +02:00
Emilio Cobos Álvarez b78489b8af Bug 1518098 - Rename LengthOrPercentage to LengthPercentage. r=jwatt#style
It does not represent `<length> | <percentage>`, but `<length-percentage>`, so
`LengthOrPercentage` is not the right name.

This patch is totally autogenerated using:

rg 'LengthOrPercentage' servo | cut -d : -f 1 | sort | uniq > files
for file in $(cat files); do sed -i "s#LengthOrPercentage#LengthPercentage#g" $file; done

Differential Revision: https://phabricator.services.mozilla.com/D15812

--HG--
extra : moz-landing-system : lando
2019-01-07 12:42:42 +00:00
longsonr 6c649bdee4 Bug 1518000 - Move nsSVGString and nsSVGViewBox to the mozilla namespace r=jwatt
--HG--
rename : dom/svg/nsSVGString.cpp => dom/svg/SVGString.cpp
rename : dom/svg/nsSVGString.h => dom/svg/SVGString.h
rename : dom/svg/nsSVGViewBox.cpp => dom/svg/SVGViewBox.cpp
rename : dom/svg/nsSVGViewBox.h => dom/svg/SVGViewBox.h
2019-01-06 17:52:55 +00:00
Masayuki Nakano 7138d062d2 Bug 1325850 - part 1: Create ScriptableContentIterator to make each concrete class of nsIContentIterator scriptable r=smaug
The concrete classes of nsIContentIterator are enough complicated, but they
are not tested simply.  Therefore, it's dangerous to touch them even if we
meed bugs of them.  Additionally, it's used in some hot paths, therefore,
I'd like to keep them simple as far as possible.

Therefore, this patch creates a mediator class between script and each
nsIContentIterator instance.  So, this change shouldn't affect any of
actual behavior nor performance.

Differential Revision: https://phabricator.services.mozilla.com/D15285

--HG--
extra : moz-landing-system : lando
2019-01-03 22:19:04 +00:00
longsonr 5530126c12 Bug 1517938 - Move nsSVGIntegerPair and nsSVGNumberPair to the mozilla namespace r=jwatt
--HG--
rename : dom/svg/nsSVGIntegerPair.cpp => dom/svg/SVGIntegerPair.cpp
rename : dom/svg/nsSVGIntegerPair.h => dom/svg/SVGIntegerPair.h
rename : dom/svg/nsSVGNumberPair.cpp => dom/svg/SVGNumberPair.cpp
rename : dom/svg/nsSVGNumberPair.h => dom/svg/SVGNumberPair.h
2019-01-06 08:22:55 +00:00
Brian Hackett c73140a5cf Bug 1177346 Part 1 - Add setSuppressedEventListener interface, r=smaug.
--HG--
extra : rebase_source : a01b747e49f06fe6ef7724e38648ea28601b2793
2019-01-03 06:39:12 -10:00
Emilio Cobos Álvarez cc3bfeef51 Bug 1484915 - Throw instead of keep going if cbindgen fails. r=boris
I think this should do. This still prints out stderr when it fails pointing to
the solution, and doesn't fail the build.

Differential Revision: https://phabricator.services.mozilla.com/D15784

--HG--
extra : moz-landing-system : lando
2019-01-05 15:42:47 +00:00
Gurzau Raul 959d44414e Merge inbound to mozilla-central. a=merge 2019-01-05 14:37:09 +02:00
Andrea Marchesini 4712d40e55 Bug 1514697 - Lazy loading for URL-Classifier features, r=dimi 2019-01-05 09:11:06 +01:00
Timothy Guan-tin Chien 28b5c3416c Bug 1514040 - Dispatch events to hidden datetimebox UA Widget r=smaug
The XBL binding implementation relied on nsDateTimeControlFrame to call into
its nsIDateTimeInputArea implementation. This is correct because the XBL binding
is only constructed when the element has a frame. If the value is set while the
element is hidden, the XBL binding will pick up the correct value during construction.

That is not the case for UA Widget. As it is constructed when the DOM is attached,
relying on nsDateTimeControlFrame to send an event when attributes change means
the event won't be sent to the already constructed UA Widget.

This patch fixes that by moving the event dispatching calls originating from
HTMLInputElement out of nsDateTimeControlFrame, so they will behave correctly in
the absence of the frame.

I've also moved the gut of nsDateTimeControlFrame::HasBadInput() to
DateTimeInputTypeBase::HasBadInput(). Content script should be allowed to validate
the input without the frame.

Sadly this means the XBL implementation and the UA Widget implementation
have further diverged. The complexity should go away when we could finally
remove the XBL implementation.

nsDateTimeControlFrame still dispatches a few events to UA Widget, in
AttributeChanged() and SyncDisabledState(), as they are originated from the layout.

The name of the events in AttributeChanged() are incorrect though -- I am correcting
that in this patch too.

Differential Revision: https://phabricator.services.mozilla.com/D15601

--HG--
extra : moz-landing-system : lando
2019-01-04 21:53:51 +00:00
Timothy Guan-tin Chien bd38b39f8a Bug 1512048 - Convert tabmodalprompt binding to JSM module r=Gijs
This converts the tabmodalprompt binding to a class, to be constructed along side with the element
by TabModalPromptBox.

TabModalPromptBox will keep the instances in a map and pass it to the callers, instead of the element.
The tests and callers can access the class instance by passing the element reference to the map.

Differential Revision: https://phabricator.services.mozilla.com/D15505

--HG--
rename : toolkit/components/prompts/content/tabprompts.xml => toolkit/components/prompts/content/tabprompts.jsm
extra : moz-landing-system : lando
2019-01-04 19:29:34 +00:00
Ting-Yu Lin da7650abaa Bug 1517297 - Fix nsIFrame::IsColumnSpanInMulticolSubtree(). r=emilio
After Bug 1507244 Part 2 landed, only block or inline frames can have
NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit set. We need to fix
IsColumnSpanInMulticolSubtree() for other types of frames.

In multi-column formatting context, every frame having a
"column-span:all" style will be wrapped by a -moz-column-span-wrapper
frame. We can use this to check whether a non-inline and non-block frame
is in a multi-column subtree or not.

Differential Revision: https://phabricator.services.mozilla.com/D15709

--HG--
extra : moz-landing-system : lando
2019-01-04 19:16:28 +00:00
Miko Mynttinen 91278a0c3b Bug 1512244 - Part 8: Use common path in more cases r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13837

--HG--
extra : moz-landing-system : lando
2019-01-04 18:33:15 +00:00
Miko Mynttinen 234fe21fd4 Bug 1512244 - Part 7: Check the force SC flag first before calling IsStackingContext() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13836

--HG--
extra : moz-landing-system : lando
2019-01-04 18:32:46 +00:00
Miko Mynttinen 8f92194a8e Bug 1512244 - Part 6: Handle blend mode in BuildDisplayListForStackingContext() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13835

--HG--
extra : moz-landing-system : lando
2019-01-04 18:32:16 +00:00
Miko Mynttinen 0bb814cd60 Bug 1512244 - Part 5: Refactor OOF frame handling r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13834

--HG--
extra : moz-landing-system : lando
2019-01-04 18:31:51 +00:00
Miko Mynttinen 9b75fc291f Bug 1512244 - Part 4: Avoid call to GetContent() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13833

--HG--
extra : moz-landing-system : lando
2019-01-04 18:31:21 +00:00
Miko Mynttinen fde2ba309c Bug 1512244 - Part 3: Split BuildDisplayListForChild fast-path and early exit to separate functions r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13832

--HG--
extra : moz-landing-system : lando
2019-01-04 18:30:51 +00:00
Miko Mynttinen 1b049b748d Bug 1512244 - Part 2: Avoid style struct lookups in HasOpacity() and Extend3DContext() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13831

--HG--
extra : moz-landing-system : lando
2019-01-04 18:30:32 +00:00
Miko Mynttinen b77e6dc486 Bug 1512244 - Part 1: Cleanup DescendIntoChild r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D13830

--HG--
extra : moz-landing-system : lando
2019-01-04 18:30:27 +00:00
Hiroyuki Ikezoe 88483b9261 Bug 1517682 - Drop layout.css.background-blend-mode.enabled pref. r=heycam
It was enabled by default in bug 970600.

Depends on D15707

Differential Revision: https://phabricator.services.mozilla.com/D15708

--HG--
extra : moz-landing-system : lando
2019-01-04 07:21:32 +00:00
Hiroyuki Ikezoe 1415d28adf Bug 1517682 - Drop layout.css.scroll-behavior.property-enabled pref. r=heycam
It was enabled by default in bug 1041833 (for desktops) and
bug 1087562 (for Fennect).

Depends on D15706

Differential Revision: https://phabricator.services.mozilla.com/D15707

--HG--
extra : moz-landing-system : lando
2019-01-04 07:21:53 +00:00
Hiroyuki Ikezoe 602a0bb6c3 Bug 1517682 - Drop layout.css.mix-blend-mode.enabled pref. r=heycam
It was enabled by default in bug 952643.

Depends on D15705

Differential Revision: https://phabricator.services.mozilla.com/D15706

--HG--
extra : moz-landing-system : lando
2019-01-04 07:22:13 +00:00
Hiroyuki Ikezoe bed5a404f1 Bug 1517682 - Drop layout.css.isolation.enabled pref. r=heycam
It was enabled by default in bug 1091885.

Depends on D15704

Differential Revision: https://phabricator.services.mozilla.com/D15705

--HG--
extra : moz-landing-system : lando
2019-01-04 07:22:27 +00:00
Hiroyuki Ikezoe 9bdfa0cf64 Bug 1517682 - Drop layout.css.image-orientation.enabled pref. r=heycam
It was enabled by default in bug 825771.

Depends on D15703

Differential Revision: https://phabricator.services.mozilla.com/D15704

--HG--
extra : moz-landing-system : lando
2019-01-04 07:22:52 +00:00
Hiroyuki Ikezoe f2d516f849 Bug 1517682 - Drop layout.css.box-decoration-break.enabled pref. r=heycam
It was enabled by default in bug 1006326.

Differential Revision: https://phabricator.services.mozilla.com/D15702

--HG--
extra : moz-landing-system : lando
2019-01-04 07:23:07 +00:00
Emilio Cobos Álvarez 97bdc97293 Bug 1517521 - Handle calc() on border-image-width correctly. r=dholbert
Right now it asserts, no bueno.

Differential Revision: https://phabricator.services.mozilla.com/D15666

--HG--
extra : moz-landing-system : lando
2019-01-04 00:41:09 +00:00
Ciure Andrei 7a748ae68f Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-04 01:03:06 +02:00
Ciure Andrei a8af06aea2 Merge inbound to mozilla-central. a=merge 2019-01-04 00:04:46 +02:00
Jan Henning 519ddfc7a4 Bug 1517103 - Keep the refresh driver ticking when there are pending visual viewport events. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15559

--HG--
extra : moz-landing-system : lando
2019-01-03 13:16:20 +00:00
Ting-Yu Lin e4d6600543 Bug 1445794 Part 2 - Disallow flushing layout in reflow and scroll related callbacks. r=emilio
By disallowing flushing layout in AccessibleCaret's callbacks, we don't
need to worry about dead PresShell affect other callbacks in the system.

Differential Revision: https://phabricator.services.mozilla.com/D15537

--HG--
extra : moz-landing-system : lando
2019-01-03 10:52:51 +00:00
Ting-Yu Lin a4c41e72ef Bug 1445794 Part 1 - Preemptively fix that carets are not updated if non-default hints are used. r=emilio
Without this change, for example,
UpdateCarets(UpdateCaretsHint::DispatchNoEvent) won't update carets. We don't
have a wrong use case yet, but it's good to fix that beforehand.

Differential Revision: https://phabricator.services.mozilla.com/D15535

--HG--
extra : moz-landing-system : lando
2019-01-03 05:25:19 +00:00
Matt Woodrow 54f9f12d39 Bug 1517355 - Add CONTENT_FRAME_TIME variant that records from the vsync time. data-review=rrayborn, r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D15603

--HG--
extra : moz-landing-system : lando
2019-01-03 19:43:04 +00:00
Bogdan Tara dcb4011f3a Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-01-03 06:26:47 +02:00
Ting-Yu Lin 70b1934e2e Bug 1517069 - Make GetMultiColumnContainingBlockFor() return nsContainerFrame*. r=dholbert
GetParent() already returns nsContainerFrame*, and it's easier to use
with API like FinishBuildingColumns() demanding a nsContainerFrame*.

Differential Revision: https://phabricator.services.mozilla.com/D15549

--HG--
extra : moz-landing-system : lando
2019-01-02 22:27:43 +00:00
longsonr eb0a735bca Bug 1517185 - Move nsSVGEnum to the mozilla namespace and rename it as SVGEnum r=jwatt
--HG--
rename : dom/svg/nsSVGEnum.cpp => dom/svg/SVGEnum.cpp
rename : dom/svg/nsSVGEnum.h => dom/svg/SVGEnum.h
extra : amend_source : faf1423f0eecafceae6ede115759d06fa061faf2
2019-01-02 18:24:11 +00:00
Daniel Holbert 44acfc60f7 Backed out changeset c796403f5a29 since it landed with wrong bug number
--HG--
rename : dom/svg/SVGEnum.cpp => dom/svg/nsSVGEnum.cpp
rename : dom/svg/SVGEnum.h => dom/svg/nsSVGEnum.h
2019-01-02 10:44:12 -08:00
longsonr 69a6be5b17 Bug 1517108 - Move nsSVGEnum to the mozilla namespace and rename it as SVGEnum r=jwatt
--HG--
rename : dom/svg/nsSVGEnum.cpp => dom/svg/SVGEnum.cpp
rename : dom/svg/nsSVGEnum.h => dom/svg/SVGEnum.h
2019-01-02 18:24:11 +00:00
Jason Kratzer 58d934b6fe Bug 1517033 - Add a crashtest. r=emilio 2019-01-02 17:18:44 +01:00
longsonr ade1b15610 Bug 1517108 - Move nsSMILTimeContainer, nsSMILMilestone and nsSMILTargetIdentifier to the mozilla namespace r=bbirtles
--HG--
rename : dom/smil/nsSMILMilestone.h => dom/smil/SMILMilestone.h
rename : dom/smil/nsSMILTargetIdentifier.h => dom/smil/SMILTargetIdentifier.h
rename : dom/smil/nsSMILTimeContainer.cpp => dom/smil/SMILTimeContainer.cpp
rename : dom/smil/nsSMILTimeContainer.h => dom/smil/SMILTimeContainer.h
2019-01-02 07:21:13 +00:00
Daniel Varga f6510e6ac9 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-31 23:24:52 +02:00
Emilio Cobos Álvarez 63814207cb Bug 1516853 - Merge nsIDocument and nsDocument. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D15498

--HG--
extra : moz-landing-system : lando
2018-12-31 14:10:19 +00:00
longsonr d03099b507 Bug 1516921 - export things in the mozilla namespace properly r=jwatt 2018-12-31 11:56:52 +00:00
shindli f5d8300d24 Backed out 2 changesets (bug 1064172) for reftest failures in /tests/layout/reftests/css-ruby/intrinsic-isize-1.html
Backed out changeset a39aab288a00 (bug 1064172)
Backed out changeset 51576a3495f5 (bug 1064172)
2018-12-30 22:22:12 +02:00
Paolo Amadini 55e0dac60d Bug 1472557 - Remove the "scrollbox" anonymous element from "richlistbox". r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D15388

--HG--
extra : source : b46be9dd9fe019870b2e33b26db8204db79aad23
2018-12-30 13:48:45 +00:00
Jonathan Kew 7ea0466fdc Bug 1064172 - Prevent shaping across element boundaries when margin/border/padding is present, vertical-align is not 'baseline', or there is a bidi isolation boundary. r=jwatt 2018-12-05 00:27:47 -05:00
Jonathan Kew 5c7ab07479 Bug 1064172 - Prevent shaping across element boundaries when margin/border/padding is present, vertical-align is not 'baseline', or there is a bidi isolation boundary. r=jwatt 2018-12-05 00:27:47 -05:00
Cosmin Sabou fc229ed2c7 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-30 11:31:03 +02:00
Hiroyuki Ikezoe 79798c6cd2 Bug 1516368 - De-virtualize nsIPresShell::IsResolutionUpdated and SetResolutionUpdated. r=botond
Depends on D15342

Differential Revision: https://phabricator.services.mozilla.com/D15343

--HG--
extra : moz-landing-system : lando
2018-12-30 02:17:30 +00:00
Hiroyuki Ikezoe 38fe945936 Bug 1516368 - Align boolean members in nsIPresShell. r=botond
Depends on D15341

Differential Revision: https://phabricator.services.mozilla.com/D15342

--HG--
extra : moz-landing-system : lando
2018-12-30 02:17:12 +00:00
Hiroyuki Ikezoe c8743de655 Bug 1516368 - Unite ChangeOrigin::eRestore and eOther as ChangeOrigin::eMainThread. r=botond
Depends on D15340

Differential Revision: https://phabricator.services.mozilla.com/D15341

--HG--
extra : moz-landing-system : lando
2018-12-30 02:45:47 +00:00
Hiroyuki Ikezoe 529616ef3a Bug 1516368 - Change SetResolutionAndScaleTo to take an enum instead of an nsAtoms*. r=botond
There is no reason to use nsAtoms*, it's error prone, i.e. the function
can take arbitrary nsAtoms*.

Depends on D15339

Differential Revision: https://phabricator.services.mozilla.com/D15340

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:42 +00:00
Hiroyuki Ikezoe 1cee88971a Bug 1516368 - Drop nsIDOMWindowUtils.isResolutionSet. r=botond
It's been unused since bug 1337325.

Depends on D15338

Differential Revision: https://phabricator.services.mozilla.com/D15339

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:30 +00:00
Hiroyuki Ikezoe d95e67add7 Bug 1516368 - Align boolean member variables in ScrollFrameHelper. r=botond
Depends on D15336

Differential Revision: https://phabricator.services.mozilla.com/D15338

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:12 +00:00
Hiroyuki Ikezoe e9f276f902 Bug 1516368 - Use mOuter->PresShell() directly. r=botond
Depends on D15335

Differential Revision: https://phabricator.services.mozilla.com/D15336

--HG--
extra : moz-landing-system : lando
2018-12-30 02:16:00 +00:00
Hiroyuki Ikezoe aa9e0b7720 Bug 1516368 - Rename aViewportSize to aViewportOrContentSize. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D15335

--HG--
extra : moz-landing-system : lando
2018-12-30 02:15:42 +00:00
Emilio Cobos Álvarez e2c716a29d Bug 1516366 - Move mExpandoAndGeneration from nsDocument to nsIDocument. r=smaug
Now that bindgen can represent it properly (bug 1516365) we can do this.

Differential Revision: https://phabricator.services.mozilla.com/D15357
2018-12-29 20:41:33 +01:00
Emilio Cobos Álvarez f131713362 Bug 1516366 - Move base classes from nsDocument to nsIDocument. r=smaug
This is a big step in order to merge both.

Also allows to remove some very silly casts, though it causes us to add some
ToSupports around to deal with ambiguity of casts from nsIDocument to
nsISupports, and add a dummy nsISupports implementation that will go away later
in the series.

Differential Revision: https://phabricator.services.mozilla.com/D15352
2018-12-29 20:41:28 +01:00
Emilio Cobos Álvarez ecc88f298e Bug 1516366 - Remove uses of nsCOMArray<nsIDocument>. r=bzbarsky,smaug
Just use nsTArray. They're used to keep an array of strong references to
documents, and never use nsISupports-specific methods.

Plus they're are allocated on the stack so it should be safe to access them via
ranged for, so do that.

This is needed because nsCOMArray<T> depends on the cast from T to nsISupports
not to be ambiguous. I could fix that if needed, but it seems easier to just not
use it in these two cases.

Differential Revision: https://phabricator.services.mozilla.com/D15351
2018-12-29 20:41:20 +01:00
Coroiu Cristina 2edc28a37f Backed out 2 changesets (bug 1064172) for Wr failures at /css/css-text/boundary-shaping/boundary-shaping-010.html
Backed out changeset 8126c43fb9e7 (bug 1064172)
Backed out changeset 107a4383fa0c (bug 1064172)
2018-12-29 16:43:23 +02:00
Bogdan Tara fff0a1f4f9 Merge inbound to mozilla-central. a=merge 2018-12-28 23:50:12 +02:00
Sylvestre Ledru cccdda3c2a Bug 1516555 - Reformat everything to the Google coding style r=Ehsan
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D15426

--HG--
extra : moz-landing-system : lando
2018-12-28 15:48:06 +00:00
Margareta Eliza Balazs 7a922172a9 Merge inbound to mozilla-central. a=merge 2018-12-28 11:29:35 +02:00
Ting-Yu Lin af42705511 Bug 1508762 Part 2 - Fix a restyle bug if there's column-span:all under ib-split setting. r=dholbert
This is to prevent Part 1 from breaking
testing/web-platform/tests/css/css-multicol/multicol-span-all-restyle-002.html

After introducing Part 1, we now use CreateContinuingFrame() to create
non-column-span wrapper frames, which use nsFrame::Init() rather than
InitAndRestoreFrame() to initialize them. Because the bits in
aState.mAdditionalStateBits are added to frames only when
nsCSSFrameConstructor::InitAndRestoreFrame() is called. We need a new
way to add the NS_FRAME_PART_OF_IBSPLIT to non-column-span wrapper
frames.

Note that we used to add NS_FRAME_PART_OF_IBSPLIT to both column-span
wrapper and non-column-span wrapper. After this patch, column-span
wrapper won't have NS_FRAME_PART_OF_IBSPLIT. That's fine because
column-span wrappers are not linked with other frames and they
shouldn't get this bit set.

Depends on D15134

Differential Revision: https://phabricator.services.mozilla.com/D15452

--HG--
extra : moz-landing-system : lando
2018-12-28 02:25:40 +00:00
Ting-Yu Lin 1a1d5fc4e8 Bug 1508762 Part 1 - Support column-span:all for a multi-column <details> element. r=dholbert
In CreateColumnSpanSiblings(), aInitialBlock can be a DetailsFrame.
Therefore, when creating a non-column-span wrapper, we cannot assume
it's always a block frame. We need to use CreateContinuingFrame to
ensure the correct type of continuation is created.

Differential Revision: https://phabricator.services.mozilla.com/D15134

--HG--
extra : moz-landing-system : lando
2018-12-28 02:15:58 +00:00
quasicomputational baf06c6032 Bug 1422235 - Implement the 'overflow-inline' media query. r=emilio 2018-12-28 02:16:59 +01:00
quasicomputational 20fa93316d Bug 1422235 - Implement the 'overflow-block' media query. r=emilio 2018-12-28 02:16:53 +01:00
longsonr 8b6407d4b3 Bug 1516521 - rename nsSMILCSSValueType as SMILCSSValueType and move it to the mozilla namespace r=dholbert
--HG--
rename : dom/smil/nsSMILCSSValueType.cpp => dom/smil/SMILCSSValueType.cpp
rename : dom/smil/nsSMILCSSValueType.h => dom/smil/SMILCSSValueType.h
2018-12-27 17:02:38 +00:00
longsonr cd491fca01 Bug 1516076 - Part 3 rename nsSVGAnimatedTransformList to SVGAnimatedTransformList and move it to the mozilla namespace r=dholbert
--HG--
rename : dom/svg/nsSVGAnimatedTransformList.cpp => dom/svg/SVGAnimatedTransformList.cpp
rename : dom/svg/nsSVGAnimatedTransformList.h => dom/svg/SVGAnimatedTransformList.h
2018-12-26 23:46:38 +00:00
Cameron McCormack d98341235b Bug 1516212 - Rename macro to avoid conflicts from Chromium IPC code r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15280

--HG--
extra : moz-landing-system : lando
2018-12-24 01:34:49 +00:00
Cameron McCormack c9b528e045 Bug 1516211 - Use UserAgentStyleSheetList.h to declare StyleSheet members on nsLayoutStylesheetCache r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15281

--HG--
extra : moz-landing-system : lando
2018-12-24 01:34:37 +00:00
sharath ba62a9414a Bug 1516221 - changes to implement enum class for #define NS_STYLE_COLOR_ADJUST. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D15284

--HG--
extra : moz-landing-system : lando
2018-12-24 15:28:11 +00:00
arthur.iakab 9ec754d7c3 Merge mozilla-central to inbound 2018-12-22 23:57:12 +02:00
arthur.iakab 49e5be726a Merge inbound to mozilla-central a=merge 2018-12-22 23:54:25 +02:00
longsonr 779726cbdc Bug 1516076 - Part 1 correct one of the include file for SVGGeometryFrame.cpp r=dholbert 2018-12-22 20:06:21 +00:00
Andreea Pavel 9adc37e4a2 Bug 1465260 - disable box-sizing-replaced-002.xht on Android opt for frequent failures r=jmaher 2018-12-21 14:28:00 +02:00
Andreea Pavel a4a6ecec31 Backed out changeset 37feb66e0984 (bug 1465260) for failing reftests on a CLOSED TREE 2018-12-22 12:53:44 +02:00
Ciure Andrei de0be877fa Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-12-22 11:53:32 +02:00
Coroiu Cristina e4511f53d0 Merge mozilla-central to autoland a=merge 2018-12-22 06:20:28 +02:00
Daniel Holbert 9543fab953 Bug 695385 followup: use pixel-valued sizes (not %) for rects in new mochitest. (no review; just tweaking a new test for robustness)
This hopefully will address the test-verify failures that were reported in bug 1516006.

--HG--
extra : rebase_source : d01139f16469c631eb047d21e998dfaf0d58c3a5
extra : amend_source : 8543fd2e10bf485cabaf45dfac156e6b9094ea41
2018-12-21 15:51:44 -08:00
Kartikaya Gupta 09dccca832 Bug 1496194 - Ensure the inner sticky rect stays inside the outer sticky rect. r=botond
Depends on D15136

Differential Revision: https://phabricator.services.mozilla.com/D15137

--HG--
extra : moz-landing-system : lando
2018-12-21 22:37:28 +00:00
Timothy Nikkel b5a536d9ae Bug 1415987. Use ChooseScale to choose a scale in WebRender. r=jrmuizel 2018-12-21 16:07:21 -06:00
Jeff Muizelaar a2d5d62f9c Bug 1415987. Factor out ChooseScale from ChooseScaleAndSetTransform in FrameLayerBuilder. r=tnikkel 2018-12-21 16:07:18 -06:00
Coroiu Cristina bbc7fc4e7c Merge inbound to mozilla-central a=merge 2018-12-21 23:55:45 +02:00
Gurzau Raul fcb3be1b9f Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-12-21 18:40:39 +02:00
Gurzau Raul 55697e5bce Merge inbound to mozilla-central. a=merge 2018-12-21 18:36:36 +02:00
longsonr 646517ef56 Bug 1515936 - Part 2 Move nsSVGStringInfo to mozilla::dom and rename the nsSVGFilters files to SVGFilters r=dholbert
--HG--
rename : dom/svg/nsSVGFilters.cpp => dom/svg/SVGFilters.cpp
rename : dom/svg/nsSVGFilters.h => dom/svg/SVGFilters.h
2018-12-21 16:24:17 +00:00
longsonr f276e2f01e Bug 1515935 - Add newlines to the end of nsSVGSymbolFrame files r=dholbert 2018-12-21 16:16:50 +00:00
longsonr e160f38d5f Bug 1515607 - Move nsSVGFE into the mozilla::dom namespace r=dholbert 2018-12-21 12:32:35 +00:00
Cristina Coroiu cc534321e8 Bug 1465260 - disable box-sizing-replaced-002.xht on Android opt for frequent failuires r=jmaher 2018-12-21 14:28:00 +02:00
Emilio Cobos Álvarez 99521806a2 Bug 1513749 - Modernize a bit nsLayoutUtils::GetFrameForPoint / GetFrameForArea. r=mats
Also add an IsElement check in GetElementFromPoint in the APZ code since I think
the element cast is unsound in presence of Shadow DOM.

Differential Revision: https://phabricator.services.mozilla.com/D14355

--HG--
extra : moz-landing-system : lando
2018-12-21 11:22:07 +00:00
Jan Henning 7fb92b8c44 Bug 1478776 - Part 10: Add internal VisualViewport resize/scroll events. r=botond,nika
The VisualViewport events are all nice and shiny, but unfortunately not quite
what is needed for the session store.

Firstly, the spec wants the "scroll" event to be fired only when the *relative*
offset between visual and layout viewport changes. The session store however
records the absolute offset and as such is interested in when *that* changes.

Secondly, again as per the spec the events don't bubble, and with the default
DOMEventTargetHelper implementation they don't escape the VisualViewport during
capturing, either. This means that any event listener must be added directly on
the VisualViewport itself in order to capture any events.

This might have been intended because the events use the same names as the
normal "scroll"/"resize" events, and as such you cannot specify separate event
listeners for VisualViewport and non-VisualViewport "scroll" events if both
events end up being dispatched to the same element (you can only try to filter
after the fact by looking at the originalTarget of the event).

At the same time, the VisualViewport is attached to the inner Window, and so
each time you navigate, you also get a different VisualViewport object.
All of this might be totally fine from the perspective of a page script, because
in that case you won't care anyway about what happens when the current page goes
away.

From the session store perspective on the other hand (especially Fennec's non-
e10s session store design), this is rather unfortunate because we don't want to
have to keep registering event listeners
a) manually for each subframe
b) each time the page navigates

The event target chain problem could be solved by letting the scroll events
escape the VisualViewport during the capturing phase (which the spec doesn't say
anything about), but this would mean that any scroll listener attached to a
window/browser/... that uses capturing will now catch both layout and visual
viewport scroll events.

In some cases this might even be beneficial, but in others (e.g. bug 1498812
comment 21) I'd like to specifically decide which kind of scroll event to
capture. Having to look at event.originalTarget to distinguish the two kinds
might be defensible in test code, but in case this distinction would be needed
in production code as well, given the existence of a C++-based filtering helper
in nsSessionStoreUtils for another use case where (scroll) events need to be
filtered, JS-based scroll event filtering might be a bad idea.

Additionally, in any case this wouldn't solve the fundamental conflict between
the spec and the session store about *when* the "scroll" event should be fired
in the first place.

Hence I'd like to introduce a separate set of events with distinct event names,
which will be dispatched according to the requirements of our internal users
(i.e. currently the session store). To avoid potential web compatibility issues
down the road, for now these events will be dispatched only to event listeners
registered in the system group (allowing *all* Chrome event listeners cannot be
done because checking the Chrome status of each event target might be too
expensive for frequently dispatched events).

Differential Revision: https://phabricator.services.mozilla.com/D14046

--HG--
extra : moz-landing-system : lando
2018-12-20 22:14:42 +00:00
Jan Henning fb0460d033 Bug 1478776 - Part 9: Helper function for layout viewport scroll position in PresShell. r=botond
This changes the semantics of the relative visual viewport offset calculation in
the PresShell slightly, in that a missing root scroll frame will no longer
force the relative offset to zero, even if the visual viewport itself has a non-
zero scroll position [1].
On the other hand, the visual viewport's own relative offset calculations
already work that way today, in that layout and visual viewport scroll positions
are retrieved separately and then subtracted from one another regardless of
whether those values are actually valid or merely a fallback because the
PresShell/scroll frame weren't available.

[1] Though I'm not sure under what circumstances this could really be relevant.

Differential Revision: https://phabricator.services.mozilla.com/D14686

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:55 +00:00
Jan Henning 29e0e9331a Bug 1478776 - Part 7: Tune scroll events to only fire when the *relative* offset changes. r=botond
Internally, Gecko stores and updates the *absolute* offset between the visual
viewport and the page, however the spec demands that the scroll event be fired
whenever the *relative* offset between visual and layout viewport changes.

Differential Revision: https://phabricator.services.mozilla.com/D14044

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:38 +00:00
Jan Henning 6011bbb22c Bug 1478776 - Part 6: Initial Visual Viewport event implementation. r=botond
The event rate throttling mechanism is modelled on the logic for "scroll" events
in nsGfxScrollFrame.cpp.

That is
1. When a request to fire an event is posted to the VisualViewport, we create a
   new runnable for this and register it with the RefreshDriver. If we already
   have a pending runnable, calling VisualViewport->Post...Event() becomes a
   no-op.
2. When the RefreshDriver is ready, it executes the runnable, which in turn
   fires the actual event and then cleans itself up.

To keep this patch manageable, we simply fire a scroll event every time the
stored visual viewport offset is changed. Because we are storing the absolute
offset of the viewport relative to the page, this behaviour doesn't match the
spec, which demands that scroll events are fired only when the relative offset
between visual and layout viewport changes. We'll fix this up in the next patch.

Differential Revision: https://phabricator.services.mozilla.com/D14043

--HG--
extra : moz-landing-system : lando
2018-12-20 21:35:26 +00:00
Gurzau Raul d939455801 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-12-21 18:39:42 +02:00
Daniel Holbert 234ebbeea8 Bug 695385: Add a mochitest to validate that cross-origin svg filters are blocked. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D13844

--HG--
rename : layout/reftests/filters.svg => layout/svg/tests/filters.svg
extra : moz-landing-system : lando
2018-12-21 06:46:19 +00:00
Ting-Yu Lin 6f3aaacaec Bug 1515740 - Restore two flags passed to GetFrameForPoint() in SelectWordOrShortcut() on Android. r=emilio,botond
Differential Revision: https://phabricator.services.mozilla.com/D15226

--HG--
extra : moz-landing-system : lando
2018-12-22 08:18:10 +00:00
Margareta Eliza Balazs 7dee48cc9b Backed out changeset 0564666f34b2 (bug 1507674) for crashtests in reftest/tests/dom/base/crashtests/1397795.html CLOSED TREE
--HG--
extra : amend_source : 0827eb3d6a4ed61ef99b71ad25d9b9170d23d63e
2018-12-21 12:58:34 +02:00
Emilio Cobos Álvarez b2b62ed289 Bug 1507674 - Flush the overflow changed tracker earlier. r=jwatt
So we do it while we're still handling re-entrant changes for SVG, since SVG can
post change hints from UpdateOverflow().

Differential Revision: https://phabricator.services.mozilla.com/D12102

--HG--
extra : moz-landing-system : lando
2018-12-20 22:50:28 +00:00
Sylvestre Ledru ext:(%20and%20Karl%20Tomlinson%20%3Ckarlt%2B%40karlt.net%3E) c7b59395f2 Bug 1515556 comment fix-ups for the tree reformat (layout/) r=Ehsan,heycam
Differential Revision: https://phabricator.services.mozilla.com/D13125

--HG--
extra : moz-landing-system : lando
2018-12-21 03:07:05 +00:00
Emilio Cobos Álvarez d3bbe9f4ac Bug 1515707 - Reformat the files touched in the previous commit. r=Ehsan
Depends on D15125

Differential Revision: https://phabricator.services.mozilla.com/D15126

--HG--
extra : moz-landing-system : lando
2018-12-20 19:33:09 +00:00
Emilio Cobos Álvarez 0447125d68 Bug 1515707 - Use NS_INTERFACE_MAP_END_INHERITING in some CSSStyleDeclaration implementations. r=Ehsan
This has no behavior change, since it just expands to
NS_IMPL_QUERY_TAIL_INHERITING, but it's clearer, and clang-format understands
it.

Also, these are the only uses of this macro, so I don't think we should make
clang-format understand it.

Differential Revision: https://phabricator.services.mozilla.com/D15125

--HG--
extra : moz-landing-system : lando
2018-12-20 19:32:51 +00:00
Margareta Eliza Balazs 9528360768 Merge inbound to mozilla-central. a=merge 2018-12-20 17:26:03 +02:00
Boris Chiou 0605a25f5e Bug 1322780 - Part 5: Adjust reftests to be fitted into 600x600. r=dholbert
If the size is larger than 600x600, we cannot test all the rendering
results, and it seems there is a bug related the inactive windows,
https://github.com/web-platform-tests/wpt/issues/13563, which may causes
that the scroll bar has different color.

Differential Revision: https://phabricator.services.mozilla.com/D15055

--HG--
extra : moz-landing-system : lando
2018-12-20 07:00:15 +00:00
Ting-Yu Lin 473998be7d Bug 1506314 - Fix reframing ColumnSetWrapperFrame when it already has column-span children. r=dbaron
If a ColumnSetWrapperFrame already has column-span children,
ColumnSetWrapperFrame::GetContentInsertionFrame() will return itself to
let WipeContainingBlock() aware this is the case to reframe.

To make this work, we need to move the reframe condition prior to check
NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit because the top level
ColumnSetWrapperFrame never has NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR bit
set.

Differential Revision: https://phabricator.services.mozilla.com/D14819

--HG--
extra : moz-landing-system : lando
2018-12-20 00:11:26 +00:00
Ting-Yu Lin 69209e69b9 Bug 1507196 - Find first ColumnSetFrame in the child lists of ColumnSetWrapperFrame (and it's continuations). r=dbaron
ColumnSetFrame is always created by
nsCSSFrameConstructor::BeginBuildingColumns(). We search for it in the
possible child lists of ColumnSetWrapperFrame and its continuations.

Differential Revision: https://phabricator.services.mozilla.com/D14501

--HG--
extra : moz-landing-system : lando
2018-12-20 00:07:59 +00:00
Ting-Yu Lin fa4ee54fff Bug 1433039 - Rename ImageLoader::DoRedraw to ImageLoader::RequestPaintIfNeeded. r=dholbert
The function doesn't do painting synchronously but schedule painting if
certain conditions are met. Hence the rename.

Differential Revision: https://phabricator.services.mozilla.com/D15021

--HG--
extra : moz-landing-system : lando
2018-12-19 23:01:38 +00:00
Botond Ballo 219f191a40 Bug 1430787 - Handle position:sticky inside a transform in AsyncCompositionManager. r=kats
Also enable tests that were previously disabled due to this.

Differential Revision: https://phabricator.services.mozilla.com/D15025

--HG--
extra : moz-landing-system : lando
2018-12-20 05:13:45 +00:00
Razvan Maries f658ebcbab Merge mozilla-inbound to mozilla-central a=merge 2018-12-20 07:04:06 +02:00
Andreea Pavel 61fb758142 Backed out changeset 538c59c855db (bug 1515392) for chrome failures at about_preferences_basic on a CLOSED TREE 2018-12-20 02:01:50 +02:00
Geoff Brown e5e351a5a2 Bug 1515189 - Consolidate ADBDevice and ADBAndroid classes; r=bc 2018-12-19 14:04:02 -07:00
Markus Stange 487f1c0c07 Bug 1515392 - Ignore the viewport background color for the purposes of detecting non-blank paints. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D14995

--HG--
extra : moz-landing-system : lando
2018-12-19 19:06:19 +00:00
Hiroyuki Ikezoe 948c96ad86 Bug 1514962 - Use nsDisplayItem::GetPaddingRect(). r=mattwoodrow
Depends on D14833

Differential Revision: https://phabricator.services.mozilla.com/D14834

--HG--
extra : moz-landing-system : lando
2018-12-18 07:06:12 +00:00
Hiroyuki Ikezoe 4c7d7e3d0d Bug 1514962 - Use GetPaddingRectRelativeToSelf() instead of `GetPaddingRect() - GetPosition()`. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D14833

--HG--
extra : moz-landing-system : lando
2018-12-19 17:14:45 +00:00
Margareta Eliza Balazs ca776030e5 Merge inbound to mozilla-central. a=merge 2018-12-19 17:46:11 +02:00
Brian Hackett 490b175062 Bug 1044074 - Don't run resize or scroll events while documents have events suppressed, r=smaug.
--HG--
extra : rebase_source : 47b98b215d3131fa3e6e88948fdd67aaf41524a9
2018-12-18 15:38:45 -10:00
Ting-Yu Lin 6cf6eb81f5 Bug 1515192 - Replace handcrafted FrameChildListIDs class with EnumSet. r=mats
The following APIs are changed.
1. Contains() needs to become contains(). (EnumSet's methods have lowercase names.)
2. Use list constructor rather than "|" like a plain enum.
3. Use operator+= instead of operator|=.

Differential Revision: https://phabricator.services.mozilla.com/D14908

--HG--
extra : moz-landing-system : lando
2018-12-19 00:50:09 +00:00
Bogdan Tara 91d742d138 Merge inbound to mozilla-central. a=merge 2018-12-19 06:50:57 +02:00
Razvan Maries 81c417dbbf Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-12-20 07:09:51 +02:00
Mats Palmgren 40bed6405a Bug 1513959 - Make <input type=range> deal with "percentage inline-size implies zero min-content size" properly. r=dholbert 2018-12-20 02:01:01 +01:00
Ting-Yu Lin 45814e9ae8 Bug 1511535 - Add a crashtest that sets "column-span:all" to an element under "position:fixed" subtree. r=dbaron
The <iframe> in the test case is getting the "column-span:all" style,
but it's under a position:fixed frame subtree. After the patch in bug
1507244 landed, NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR won't be added
incorrectly to the out-of-flow subtree.

Differential Revision: https://phabricator.services.mozilla.com/D14626

--HG--
extra : moz-landing-system : lando
2018-12-15 00:33:52 +00:00
Boris Chiou 647706e4fd Bug 1322780 - Part 4: Add tests. r=dholbert
1. Test the most simple cases when we use max-content/min-content on
   width/height/block-size.
   * block-size-with-min-or-max-content-1a.html
   * block-size-with-min-or-max-content-1b.html
2. Test base cases when we use max-content/min-content on
   width/height/block-size inside the table element.
   * block-size-with-min-or-max-content-table-1a.html
   * block-size-with-min-or-max-content-table-1b.html
3. For {horizontal|vertical} writing mode, we use max-content/min-content on
   {min-|max-}{height|width} and {min-|max-}block-size on the inner element.
   * hori-block-size-small-or-larger-than-container-with-min-or-max-content-1.html
   * vert-block-size-small-or-larger-than-container-with-min-or-max-content-1.html
4. For {horizontal|vertical} writing mode, we use max-content/min-content on
   {min-|max-}{height|width} on the outer element (i.e. the container).
   * hori-block-size-small-or-larger-than-container-with-min-or-max-content-2a.html
   * vert-block-size-small-or-larger-than-container-with-min-or-max-content-2a.html
5. For {horizontal|vertical} writing mode, we use max-content/min-content on
   {min-|max-}block-size on the outer element (i.e. the container).
   * hori-block-size-small-or-larger-than-container-with-min-or-max-content-2b.html
   * vert-block-size-small-or-larger-than-container-with-min-or-max-content-2b.html

Depends on D14320

Differential Revision: https://phabricator.services.mozilla.com/D13485

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:41 +00:00
Boris Chiou 5c91563dc1 Bug 1322780 - Part 3: Let logical height, block-size, accept keywords. r=emilio
We should let block-size/min-block-size/max-block-size accept keywords as the
initial value, just like width in vertical writing mode or height in horizontal
writing mode.

Depends on D7536

Differential Revision: https://phabricator.services.mozilla.com/D14320

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:39 +00:00
Boris Chiou c35f47093e Bug 1322780 - Part 2: Support unprefixed min-content and max-content. r=mats,emilio
Support unprefixed min-content and max-content and treat the prefixed
version as aliases for
1. width, min-width, max-width if inline-axis is horizontal, and
2. height, min-height, max-height if inline-axis is vertical, and
3. inline-size, min-inline-size, max-inline-size, and
4. flex-basis.

Besides, update the test cases to use unprefixed max-content and
min-content.

Depends on D7535

Differential Revision: https://phabricator.services.mozilla.com/D7536

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:37 +00:00
Boris Chiou 17c2c5c3c4 Bug 1322780 - Part 1: Use cbindgen for ExtremumLength. r=emilio
ExtremumLength is the keyword type for css sizing properties, so we
could use cbindgen.

In Gecko, we use nsStyleCoord to store the sizing properties, and use
integer values to check the enum values, so I keep the macros in nsStyleConsts.
Even though we need to convert the enum type into integer, we still have
benefits to reduce the complexity of converting Rust into C++, and leave
the simplified mappings in C++ for better readability.

Differential Revision: https://phabricator.services.mozilla.com/D7535

--HG--
extra : moz-landing-system : lando
2018-12-18 18:47:35 +00:00
Cameron McCormack 59475d7fc5 Bug 1512597 - Resolve currentcolor in fill and stroke against visited-dependent color r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D14706

--HG--
extra : moz-landing-system : lando
2018-12-18 09:39:07 +00:00
Ting-Yu Lin 1e0598caea Bug 1507244 Part 2 - Suppress column-span descendants under a new block formatting context. r=dbaron
Bug 1506163 fixed only part of the issue. There are more types of frames
such as table, grid, flex, etc. that create their own block formatting
context.

Instead of propagating NS_FRAME_HAS_MULTI_COLUMN_ANCESTOR to the
children, we explicit carry the bit over to block and inline frames by
checking that their parent doesn't suppress column-span descendants.

Also, remove the unused "onload" from <body> in the tests.

Differential Revision: https://phabricator.services.mozilla.com/D13597

--HG--
extra : moz-landing-system : lando
2018-12-18 00:40:58 +00:00
Ting-Yu Lin 122e7483c6 Bug 1507244 Part 1 - Add block formatting context bits for column-span in nsBlockFrame::Init(). r=dbaron
That's the common place where the bits are added.

Differential Revision: https://phabricator.services.mozilla.com/D13596

--HG--
extra : moz-landing-system : lando
2018-12-17 18:41:01 +00:00
Margareta Eliza Balazs a5ee709df7 Backed out changeset 90db69624281 (bug 1495962) for reftest failures in reftests/position-sticky/nested-sticky-2.html DONTBUILD 2018-12-18 11:41:34 +02:00
Kartikaya Gupta 66e5cee8aa Bug 1495962 - Add reftests for nested sticky-positioning r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D14764

--HG--
extra : moz-landing-system : lando
2018-12-18 03:07:36 +00:00
Hiroyuki Ikezoe f0fe14fe8d Bug 1514679 - Drop `aFirstPass` from ReflowScrolledFrame. r=botond
It hasn't been used since bug 300030.

Depends on D14715

Differential Revision: https://phabricator.services.mozilla.com/D14716

--HG--
extra : moz-landing-system : lando
2018-12-17 21:54:41 +00:00
Hiroyuki Ikezoe d864a9f8f1 Bug 1514679 - Move vScrollbarActualWidth inside the if block where the value is used. r=botond
Depends on D14714

Differential Revision: https://phabricator.services.mozilla.com/D14715

--HG--
extra : moz-landing-system : lando
2018-12-17 21:54:24 +00:00
Hiroyuki Ikezoe 0a0f595df0 Bug 1514679 - Use layers::ScrollDirection instead of boolean. r=botond
Depends on D14713

Differential Revision: https://phabricator.services.mozilla.com/D14714

--HG--
extra : moz-landing-system : lando
2018-12-17 21:54:11 +00:00
Hiroyuki Ikezoe f46451eef5 Bug 1514679 - Drop `aVertical` from GetScrollbarMetrics. r=botond
The argument has never been used since the function the function was introduced
in bug 240276.

Differential Revision: https://phabricator.services.mozilla.com/D14713

--HG--
extra : moz-landing-system : lando
2018-12-17 21:53:59 +00:00
Julian Descottes e046e9a177 Bug 1502346 - Retrieve ::slotted rules in InspectorUtils getCSSStyleRules;r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D14759

--HG--
extra : moz-landing-system : lando
2018-12-17 21:33:40 +00:00
Jonathan Kingston 943bc1976a Bug 903372 - Removal of xml:base. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D13457
2018-12-13 15:16:52 +00:00
Mark Banner 8fc9eab7b3 Bug 1503674 - Remove now unused nsIScriptableUnescapeHTML.idl. r=hsivonen
Differential Revision: https://phabricator.services.mozilla.com/D14680

--HG--
extra : moz-landing-system : lando
2018-12-17 09:33:28 +00:00
Cameron McCormack e8db2c5f88 Bug 1194856 - Remove UA style sheet load crash report annotations r=gsvelto,dbaron
This backs out the main patch landed earlier in bug 1194856 and the
patch from bug 1225004.

Differential Revision: https://phabricator.services.mozilla.com/D14050

--HG--
extra : moz-landing-system : lando
2018-12-15 00:02:56 +00:00
Cosmin Sabou 00b9cd5e1e Merge mozilla-central to autoland. 2018-12-17 02:08:52 +02:00
Cosmin Sabou b9bad8ace2 Merge mozilla-inbound to mozilla-central. a=merge 2018-12-17 02:01:29 +02:00
Matt Woodrow f278a7e08c Bug 1500864 - Cull items within opacity:0 containers when merging with retained display lists. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D14304

--HG--
extra : moz-landing-system : lando
2018-12-16 23:35:42 +00:00
Matt Woodrow f0ee7a9279 Bug 1500864 - Don't record a display list mutation based on the partial build rect, rely on comparisons during merging. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D14303

--HG--
extra : moz-landing-system : lando
2018-12-16 23:34:20 +00:00
Emilio Cobos Álvarez 7204b38327 Bug 1514338 - Remove unneeded special case in nsHTMLButtonControlFrame. r=bzbarsky
This is a followup to bug 1089326.

The other kind of elements other than <button> that use this frame are
input[type="reset|submit|button"], via nsGfxButtonControlFrame. And that frame
is a leaf, so it can only contain anonymous content (which is chromeonly
content and thus doesn't show up in event.target and co.).

This changes behavior for event.originalTarget, I suppose, but that's what we
do elsewhere as well, and that's a Gecko-specific thing.

Differential Revision: https://phabricator.services.mozilla.com/D14604

--HG--
extra : moz-landing-system : lando
2018-12-16 22:17:44 +00:00