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

66966 Коммитов

Автор SHA1 Сообщение Дата
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
Jonathan Kew 9ce81d127e 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
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