Robert Longson
f627214d56
Bug 1448774 - part 1 r=dholbert
2018-03-29 03:12:05 +01:00
Gurzau Raul
8d268c6ce7
Merge mozilla-central to inbound. a=merge CLOSED TREE
...
--HG--
rename : toolkit/components/extensions/ext-permissions.js => toolkit/components/extensions/parent/ext-permissions.js
2018-03-29 01:00:42 +03:00
Robert Longson
46442efe5d
Bug 1449075 - comma and/or whitespace should be mandatory to separate transform values r=dholbert
2018-03-28 19:05:39 +01:00
Cosmin Sabou
619e0c5b90
Backed out 3 changesets (bug 1449321, bug 1449566, bug 1449565) as per developer request.
...
Backed out changeset c31de7e26809 (bug 1449565)
Backed out changeset 72f9188800af (bug 1449566)
Backed out changeset 763277b299e4 (bug 1449321)
--HG--
extra : rebase_source : 212b357a3079dff30845a5f82e47b94e2d7f93cd
2018-03-28 18:10:11 +03:00
Jonathan Watt
41622cb3a7
Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio
2018-03-23 16:01:34 +00:00
Xidorn Quan
efc0cdde02
Bug 1447828 part 8 - Remove remaining uses of StyleBackendType as well as the type itself. r=emilio
...
MozReview-Commit-ID: 6sh4eKvDpRF
--HG--
extra : rebase_source : 7d83f2b2d4e2739333016ed82754bf3a4a700de4
extra : source : 147ca562a24652c3f30add793213db70aff65e9e
2018-03-29 02:34:34 +11:00
Xidorn Quan
d81392eca1
Bug 1447828 part 6 - Have only a single nsLayoutStylesheetCache instance. r=emilio
...
MozReview-Commit-ID: BjCgc8MZjIq
--HG--
extra : rebase_source : 104140c2eed5987b5568aca89a72bc7d5e3ed839
extra : source : cd66e264953865b0604054fb9d0b741d0ae19ebf
2018-03-29 02:34:34 +11:00
Jonathan Watt
68e78b291f
Bug 1449321 - Remove the IsServo and IsGecko methods from the style system code. r=emilio
...
--HG--
extra : source : 763277b299e42d8ee7eafede027ee690b66a7a2a
2018-03-23 16:01:34 +00:00
Xidorn Quan
1962625a79
Bug 1448728 part 1 - Make popular headers not include nsWindowSizes.h. r=njn
...
MozReview-Commit-ID: EC5J9Im3gfu
--HG--
extra : source : 9fa9209aeeb00009143c5c21f21210c93184e61f
2018-03-28 10:44:49 +11:00
Botond Ballo
c390635e19
Bug 1443092 - Avoid calling SVGAnimatedEnumeration::AnimVal() from nsSVGUtils::GetBBox(). r=jwatt
...
AnimVal() is a DOM getter, and it flushes animations, which we don't want
in GetBBox() which is called from display list building cide and
FrameLayerBuilder.
2018-03-09 17:26:24 -05:00
Jonathan Watt
82ebebe276
Bug 1448714 - Fix up comments referring to 'style context' after the rename of nsStyleContext. r=emilio
2018-03-23 13:49:21 +00:00
Jonathan Watt
384c345f21
Bug 1448294 - Clean up naming of 'styleContext' variables after the big nsStyleContext rename. r=emilio
...
Reviewers: emilio
Bug #: 1448294
Differential Revision: https://phabricator.services.mozilla.com/D796
MozReview-Commit-ID: KJq2i9nrg7y
2018-03-25 20:49:58 +02:00
Narcis Beleuzu
47581f78e2
Backed out 2 changesets (bug 1448294, bug 1448337) for wpt and reftest failures on /mathml
...
Backed out changeset 180051cfe357 (bug 1448294)
Backed out changeset c188176f3289 (bug 1448337)
2018-03-25 21:31:08 +03:00
Jonathan Watt
21bff4e120
Summary: Bug 1448294 - Clean up naming of 'styleContext' variables after the big nsStyleContext rename. r=emilio
...
Reviewers: emilio
Bug #: 1448294
Differential Revision: https://phabricator.services.mozilla.com/D796
2018-03-22 13:49:21 +00:00
Noemi Erli
1270a21724
Merge mozilla-central to inbound. a=merge CLOSED TREE
2018-03-23 01:00:18 +02:00
Emilio Cobos Álvarez
e341b20ec4
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt on a CLOSED TREE
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 20:06:24 +01:00
Emilio Cobos Álvarez
5dd797f154
Back out changeset b683bb3f22a1 (Bug 1447483) for not landing with all the files. r=me on a CLOSED TREE
...
This reverts commit 1808914126bb9f9e4a82d2c3d7ac961885fe7d62.
MozReview-Commit-ID: 5skESBseEvo
2018-03-22 20:05:22 +01:00
Emilio Cobos Álvarez
ca5ac79cca
Bug 1447483: Merge nsStyleContext and ServoStyleContext, rename to ComputedStyle. r=jwatt
...
MozReview-Commit-ID: JPopq0LudD
2018-03-22 19:48:42 +01:00
arthur.iakab
161c0e01f4
Merge mozilla-central to mozilla-inbound
2018-03-22 02:02:06 +02:00
Boris Zbarsky
258352c8a8
Bug 1447098 part 2. Rename the NS_IMPL_FROMCONTENT macros to NS_IMPL_FROMNODE. r=mystor
2018-03-21 17:39:04 -04:00
arthur.iakab
fda9fc4c79
Merge mozilla-central to autoland
2018-03-21 21:28:49 +02:00
Emilio Cobos Álvarez
f7522ae728
Bug 1447358: Unifdef the old style system code. r=jwatt
...
Summary:
This has been automatically generated using:
http://dotat.at/prog/unifdef/
And:
find $OBJDIR -type f -name '*.h' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
find $OBJDIR -type f -name '*.cpp' |
while read FILE; do
echo "$FILE"
unifdef -m -DMOZ_STYLO -UMOZ_OLD_STYLE "$FILE";
done
MozReview-Commit-ID: I4NdKqbMXzJ
Reviewers: jwatt
Bug #: 1447358
Differential Revision: https://phabricator.services.mozilla.com/D779
2018-03-21 10:20:34 +01:00
Daniel Holbert
eb0a672707
Bug 1335266: In test_fragments.html, don't set iframe src attribute until *after* we've set up its load handler. r=longsonr
...
This will hopefully fix some intermittent timeouts that we're hitting in this
test. (The theory is that without this patch, maybe we're firing the iframe's
load event before we've set up the load handler.)
MozReview-Commit-ID: 183ogex73SX
--HG--
extra : rebase_source : a4daf9b87828725c25e728ad8bc86eb9004ca159
2018-03-21 10:50:19 -07:00
Robert Longson
cfec2a2890
Bug 1446802 - use codespell -w -q4 to fix some spelling mistakes r=jwatt
2018-03-18 18:09:51 +00:00
Robert Longson
32c95b809e
Bug 1443314 - remove the svg.path-caching.enabled pref r=jwatt
2018-03-18 14:05:28 +00:00
Robert Longson
202cc35695
Bug 1446584 - Make SVG use the same definition of whitespace as HTML/CSS r=jwatt
2018-03-18 07:14:32 +00:00
Boris Zbarsky
46fc331568
Bug 1446097. Switch to "set" as the canonical nsGkAtoms name of the string "set", so it matches the actual tag name "set" in SVG. r=hsivonen,njn
...
Most of the noise is from the fact that clang-format on parser/html/*.{h,cpp}
reformatted all sorts of stuff. Not running it caused lots of format changes
from the generator... I guess we changed the format rules since the last time
this got run?
MozReview-Commit-ID: IA2G87zUIKN
2018-03-16 11:26:06 -04:00
Nicholas Nethercote
d41188c796
Bug 1445117 - Remove duplicates from nsGkAtoms. r=froydnj
...
In each case, the atom had an obvious name and a weird name. Where possible, I
kept the obvious name and commented out the weird name, viz:
- `mixed` over `_mixed` for "mixed"
- `el` over `el_` for "el"
- `other` over `other_` for "other"
- `remote` over `Remote` for "remote"
But for several of them I didn't do that, because the weird name is used
within the HTML5 parser -- which is a huge pain to modify because it involves
code generated by code from another repo -- so I kept the weird name and
commented out the obvious name, viz:
- `list_` over `list` for "list"
- `svgSwitch` over `_switch` for "switch"
- `set_` over `set` for "set"
MozReview-Commit-ID: Jp3CpdWXNDm
--HG--
extra : rebase_source : 421ce5316772f1951488307e81f2ceee696d363d
2018-03-14 10:27:25 +11:00
Robert Longson
898ce47974
Bug 1446650 - support the SVG 2 side attribute for textPaths r=dholbert
2018-03-22 18:43:50 +00:00
Robert Longson
797f6cb1a6
Bug 1325320 part 3 - move GetPathLengthScale to SVGGeometryElement and convert callers of SVGPathElement methods to work on the base SVGGeometryElement class and work for all shapes, not just paths r=dholbert
2018-03-13 19:52:03 +00:00
Robert Longson
bda3ae0619
Bug 1325320 part 2 - change shapes so they implement SVGGeometryElement and implement SVGGeometryElement::GetOrBuildPath r=dholbert r=mystor (DOM Peer)
2018-03-13 19:20:43 +00:00
Emilio Cobos Álvarez
de099db7bd
Bug 1444905: Remove scoped style support from the old style system. r=xidorn,smaug
...
Summary: It uses two node bits that can be better suited for something else.
Reviewers: xidorn, smaug
Bug #: 1444905
Differential Revision: https://phabricator.services.mozilla.com/D709
MozReview-Commit-ID: HIPDtHm6xpM
2018-03-13 10:26:13 +01:00
Robert Longson
7709e9b3e1
Bug 1444666 - get rid of nsSVGUtils version of GetStrokeDashData and replace by SVGContentUtils::GetStrokeOptions r=jwatt
2018-03-11 16:11:24 +00:00
Robert Longson
81b5779eda
Bug 1325320 - change SVGGeometryElement::GetOrBuildPath to take DrawTarget as a pointer since all its callers have drawTarget as a pointer themselves.
...
This is consistent with most other methods that take a drawTarget parameter r=dholbert
--HG--
extra : amend_source : 77aa7f7d9cb19f9aa08014fff3b209dc151b75f3
2018-03-09 07:36:13 +00:00
Robert Longson
46c74e15ed
Bug 1443685 - GetPointAtLength should not take into account the pathLength attribute r=dholbert
2018-03-09 04:35:37 +00:00
Robert Longson
430037e723
Bug 1442972 - DOMSVGPoint constructor checks that mX is finite twice and mY finite not at all r=dholbert
2018-03-09 04:29:52 +00:00
Brindusan Cristian
eb51abf4fb
Merge inbound to mozilla-central. a=merge
2018-03-08 20:00:36 +02:00
Eric Rahm
2271bd0424
Bug 1442483 - Part 2: Store SVGContentCreatorFunctions directly in sTagAtomTable. r=dholbert
...
This gets rid of the somewhat odd setup of looking up an array offset in the
hashtable and then pulling a callback out of the array. Instead we just store
the function pointers directly in the hashtable.
--HG--
extra : rebase_source : c8cd1109e6edaf8924fc68933212bc7ad506b648
2018-03-01 17:07:16 -08:00
Eric Rahm
722cbde9a8
Bug 1442483 - Part 1: Convert SVG's sTagAtomTable to nsDataHashtable. r=dholbert
...
--HG--
extra : rebase_source : 22a8de17ec9a542f90f66baa07e572bc40098326
2018-03-01 16:49:32 -08:00
Eric Rahm
38563e186d
Bug 1442480 - Switch nsNodeInfoHash to a nsDataHashTable. r=smaug
...
This switches `nsNodeInfoHash` to a nsDataHashTable. The hash function and
equality operator are moved to NodeInfoInner so that they can be easily reused.
--HG--
extra : rebase_source : d2e42447a77ffdde620508da28554528ebd78bf8
2018-03-01 15:33:52 -08:00
Emilio Cobos Álvarez
73a6a2096e
Bug 1443797: Remove SVGTests::IsInChromeDoc. r=dholbert
...
Summary: It's effectively the same as AsSVGElement()->IsInChromeDocument().
Reviewers: dholbert
Bug #: 1443797
Differential Revision: https://phabricator.services.mozilla.com/D695
MozReview-Commit-ID: 8f8fUsPfdnm
2018-03-08 09:26:04 +01:00
Emilio Cobos Álvarez
2988d4e66d
Bug 1442207: Remove unneeded arguments to nsIMutationObserver. r=smaug
...
aDocument is always content->OwnerDoc().
aContainer is always content->GetParent().
Differential Revision: https://phabricator.services.mozilla.com/D664
MozReview-Commit-ID: 4xwPCOnhyIL
2018-03-01 22:45:17 +01:00
Emilio Cobos Álvarez
9f26540cc4
Bug 1441547: Make character data change notifications use a const reference for the info parameter. r=smaug
...
It's not intended to be mutated.
MozReview-Commit-ID: 5nkD1YkidlV
--HG--
extra : rebase_source : 810d429208fa3eaf30e220e77a7d27107cb77346
2018-02-27 15:30:27 +01:00
Emilio Cobos Álvarez
0ad7abf15e
Bug 1441009: Don't null-check OwnerDoc. r=smaug
...
Can't return null.
MozReview-Commit-ID: JzcNwmsCxIu
2018-02-26 00:31:42 +01:00
Emilio Cobos Álvarez
7dffe29d8f
Bug 1432490: Make nsComputedDOMStyle::GetStyleContext / GetStyleContextNoFlush not take a presShell. r=bz
...
Everyone calls them with the shell of the current composed document, and this
allows the multi-presShell stuff to just be in UpdateCurrentStyleSources /
DoGetStyleContextNoFlush.
The only reason we need to use OwnerDoc()->GetShell() instead of the composed
doc in GetStyleContext / GetStyleContextNoFlush is Element::GetBindingURL, which
does expect to get the binding URL for stuff outside of the composed doc (and
changing that gave me a useless browser).
That's technically a behavior change on the cases that used to pass nullptr, but
I think all callers are fine with that. I could also just add a special function
for that particular case, it may be worth it.
MozReview-Commit-ID: 2XlnkgdgDCK
2018-02-25 02:23:59 +01:00
Hiroyuki Ikezoe
1b0cba9367
Bug 1417354 - Introduce nsIDocument::GetPresContext(). r=smaug
...
It would be convenient to get nsPresContext from nsIDocument.
MozReview-Commit-ID: Ei6V3UE8XGr
--HG--
extra : rebase_source : 8d2a917eb62cf341e4e1810451fd01c01dbc3bad
2018-02-21 07:00:10 +09:00
Dorel Luca
f41b03eca9
Backed out changeset 38577c007450 (bug 1424371) for Marionett test failure on testing/marionette/harness/marionette_harness/tests/unit/test_window_maximize.py. CLOSED TREE
2018-02-19 22:15:23 +02:00
Milan Sreckovic
7571df7e7c
Bug 1424371: Use BaseRect access methods instead of member variables in dom/ r=qdot
...
MozReview-Commit-ID: HXWhggOMIEK
--HG--
extra : rebase_source : 9c9eacf80d2b7f78faa82a1549170b98d12cdaa8
2018-02-19 12:56:10 -05:00
Cosmin Sabou
6e3859bfa5
Merge mozilla-central to autoland. a=merge on a CLOSED TREE
2018-02-19 00:00:43 +02:00
Robert Longson
728a3f36fc
Bug 1435477 - Make the SVG dom code use the WebIDL constants from the bindings r=jwatt
2018-02-18 15:53:13 +00:00