Commit Graph

507 Commits

Author SHA1 Message Date
Robert Longson
5b2f441cf2 Bug 1419764 - change mHadTransformBeforeLastBaseValChange to mRequiresFrameReconstruction in order to better reflect its purpose r=dholbert 2018-01-27 21:39:08 +00:00
Robert Longson
4e0dcdc8da Bug 1419764 - Improve performance where a transform is set by direct matrix manipulation. r=dholbert
MozReview-Commit-ID: zzDTSXtRiU
2018-01-26 10:21:34 -08:00
Andrea Marchesini
35c2c8122a Bug 1431000 - Introduce nsINode::InsertChildBefore, r=catalinb 2018-01-25 15:59:42 +01:00
Csoregi Natalia
f9dc75cd65 Backed out changeset 640595d09e90 (bug 1419764) for reftest failures. a=backout 2018-01-25 12:23:02 +02:00
Robert Longson
d339da0191 Bug 1419764 - Improve performance where a transform is set by direct matrix manipulation. r=dholbert 2018-01-24 07:07:02 +00:00
Andrea Marchesini
85b163bc38 Bug 1430998 - Rename nsINode::InsertChildAt to InsertChildAt_Deprecated, r=catalinb 2018-01-23 14:30:18 +01:00
Andrea Marchesini
41d4da5cef Bug 1425440 - Introduce nsINode::RemoveChildNode, r=catalinb 2018-01-15 17:18:38 +01:00
Chris Peterson
37efe4d0e6 Bug 1428535 - Add missing override specifiers to overridden virtual functions. r=froydnj
MozReview-Commit-ID: DCPTnyBooIe

--HG--
extra : rebase_source : cfec2d96faeb11656d86d760a34e0a04cacddb13
extra : intermediate-source : 6176724d63788b0fe8caa3f91607c2d93dbaa7ec
extra : source : eebbb0600447f9b64aae3bcd47b4be66c02a51ea
2017-11-05 19:37:28 -08:00
Boris Zbarsky
02eaa145e7 Bug 1429531. Add MOZ_CAN_RUN_SCRIPT annotations to SVG methods that can call GetPrimaryFrame. r=mystor
MozReview-Commit-ID: KoXEBUa2OjR
2018-01-11 23:01:20 -05:00
Cameron McCormack
8731df3c34 Bug 1427512 - Part 29: Remove nsIDOMCSSDeclaration. r=xidorn,jryans,bz
This removes the .style attribute from nsIDOMSVGElement, but there
shouldn't be any users of that.

MozReview-Commit-ID: LOBSFo85Utn
2018-01-11 16:17:57 +08:00
Robert Longson
14221de940 (no bug): Fix typo in code-comment, in nsSVGElement.cpp. r=dholbert
DONTBUILD because comment-only
2018-01-08 14:17:25 -08:00
Jon Coppeard
bc9a97d964 Bug 1361369 - Allow async attribute on inline module scripts r=smaug 2018-01-08 15:17:34 +00:00
Boris Zbarsky
9874643dc6 Bug 1423492 part 4. Stop overring UnsetAttr in SVGElement. r=bytesized
There are now no more overrides of UnsetAttr, so it can stop being virtual.

MozReview-Commit-ID: 4QzAKCkRfgs
2018-01-03 21:03:50 -05:00
Boris Zbarsky
834c47ec08 Bug 1423492 part 3. Stop overring UnsetAttr in SVGMarkerElement. r=bytesized,qdot
This changes behavior some, by moving the code involved from "before we remove
the attribute" to AfterSetAttr.  But I think it should be OK, and SVG elements
can't sanely implement BeforeSetAttr right now...

MozReview-Commit-ID: KQGIDQOMGne
2018-01-03 21:03:45 -05:00
Boris Zbarsky
95e7db08f7 Bug 1423492 part 2. Stop overring UnsetAttr in SVGMPathElement. r=bytesized
MozReview-Commit-ID: JdjEuESAsD9
2018-01-03 21:03:29 -05:00
Boris Zbarsky
fc8179478c Bug 1423492 part 1. Stop overring UnsetAttr in SVGAnimationElement. r=bytesized
MozReview-Commit-ID: Ih8QmVkoOFZ
2018-01-03 21:03:27 -05:00
Boris Zbarsky
2414b4dea3 Bug 1423490 part 2. Stop overriding SetAttr in SVGStyleElement. r=bytesized
This aligns the behavior with HTMLStyleElement.

There are no more overrides, so SetAttr can become non-virtual.

MozReview-Commit-ID: 9PFrHg7x0nY
2018-01-03 14:21:23 -05:00
Boris Zbarsky
39d7ed06f0 Bug 1423490 part 1. Stop overriding SetAttr in SVGAElement. r=bytesized
This aligns SVGAElement with HTMLAnchorElement in terms of how they handle
attribute changes.

MozReview-Commit-ID: Azr6tTBaxTT
2018-01-03 14:21:22 -05:00
Andrea Marchesini
6ee7f4e6f3 Bug 1425321 - Renaming nsINode::RemoveChildAt to RemoveChildAt_Deprecated, r=catalinb 2018-01-03 14:01:03 +01:00
Robert Longson
018c97b584 Bug 1419250 - check for division by zero in length conversions and fail the conversion in such cases r=dholbert 2017-12-30 17:07:27 +00: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
Hiroyuki Ikezoe
8c0001196d Bug 1415787 - Wait for focus before proceeding test. r=daoshengmu
To process focus handling deterministic, we need to wait for focus before
proceeding test.

MozReview-Commit-ID: 78EWlA3QuWM

--HG--
extra : rebase_source : 6473b0e1d364f9d3f8a5c43f82ee25be54a478bf
2017-12-21 10:49:06 +09:00
Hiroyuki Ikezoe
1f9e96c9dc Bug 1415787 - Add two extra elements in the SVG element to avoid losing focus. r=daoshengmu
On MacOSX, more precisely if full keyboard access is not enabled on MacOSX,
we skip focusing link elements in SVG with tab key, so if there is no more
elements to be focused in the SVG, the focus will be moved outside the SVG.
To prevent this situation, there needs more focusable elements in the SVG.

MozReview-Commit-ID: HGGMjA0Asfw

--HG--
extra : rebase_source : 5f4b951f6dfcb7572cc947744365b0609d6c92f1
2017-12-21 10:49:05 +09:00
Robert Longson
de99e463ac Bug 1420492 - avoid division by zero when constructing an nsSVGArcConverter r=dholbert 2017-12-10 22:43:23 +00:00
Sylvestre Ledru
9bfe27d903 Bug 1394734 - Replace CONFIG['GNU_C*'] by CONFIG['CC_TYPE'] r=glandium
MozReview-Commit-ID: 7duJk2gSd4m

--HG--
extra : rebase_source : 7312fe276e561e8c034a5f6749774ae812727f9c
2017-12-07 22:09:15 +01:00
Eric Rahm
07c97a5afe Bug 1423773 - Part 1: Remove usage of nsStringGlue.h. r=glandium
This removes an unnecessary level of indirection by replacing all
nsStringGlue.h instances with just nsString.h.

--HG--
extra : rebase_source : 340989240af4018f3ebfd92826ae11b0cb46d019
2017-12-06 16:52:51 -08:00
Emilio Cobos Álvarez
74b31155f7 Bug 1423167: Move most attribute-related methods from nsIContent to Element. r=bz
MozReview-Commit-ID: 6WXqNiODttD
2017-12-06 16:05:59 +01:00
Kris Maglione
9f27533bfc Bug 1415352: Part 1b - Store the subject principal when parsing style attributes. r=bz
This change stores the subject principal in the URLExtraData when parsing
style attributes, which causes it to be used as the triggering principal for
those loads rather than defaulting to the document principal.

MozReview-Commit-ID: 22tmNRRCgaj

--HG--
extra : rebase_source : d025870431a457a417523ff57bd8eac3b41d65d0
2017-11-02 13:36:14 -07:00
Kris Maglione
1c66345e09 Bug 1415352: Part 1a - Pass subject principal through to ParseAttribute. r=bz
This is necessary in order to parse style attributes using the subject
principal of the caller, rather than defaulting to the page principal.

MozReview-Commit-ID: GIshajQ28la

--HG--
extra : rebase_source : 5dba46f61d70ec647cae16383b62961ac72d2f47
2017-11-01 20:35:52 -07:00
Kyle Machulis
f25f505bc5 Bug 1415747 - Remove nsIDOMHTMLScriptElement; r=bz
MozReview-Commit-ID: 3I7qVTsKFJC
2017-11-10 13:10:00 -08:00
Botond Ballo
9b9daf3f62 Bug 1382534 - Only reuse the cached path in SVGGeometryElement::GetOrBuildPath() if it has the fill rule we want. r=longsonr
MozReview-Commit-ID: 7G99pnifbTv

--HG--
extra : rebase_source : 7a585b57308eeefe00c2cb5c334bcfa39f11ab93
2017-09-25 16:58:19 -04:00
Andrew Osmond
95ee2e55dc Bug 1404422 - Part 4. Remove imgIOnloadBlocker and related from tree as redundant. r=tnikkel 2017-11-01 06:59:10 -04:00
Nicholas Nethercote
8ad99dd7fa Bug 1411893 - Introduce nsStaticAtom. r=emilio,froydnj.
It's a sub-class of nsAtom, useful for cases where you know you are dealing
exclusively with static atoms. The nice thing about it is that you can use
raw nsStaticAtom pointers instead of RefPtr<>. (In fact, the AddRef/Release
implementations ensure that we'll crash if we use RefPtr<nsStaticAtom>.)

MozReview-Commit-ID: 4Q6QHX5h44V

--HG--
extra : rebase_source : e4237f85b4821b684db0ef84d1f9c5e17cdee428
2017-10-27 10:31:13 +11:00
Andrew McCreight
298aa82710 Bug 1412125, part 2 - Fix dom/ mode lines. r=qdot
This was automatically generated by the script modeline.py.

MozReview-Commit-ID: BgulzkGteAL

--HG--
extra : rebase_source : a4b9d16a4c06c4e85d7d85f485221b1e4ebdfede
2017-10-26 15:08:41 -07:00
Emilio Cobos Álvarez
dd634e3981 Bug 1411612: Kill nsINode::eCONTENT. r=bz
MozReview-Commit-ID: ESlOqlwhcHI

--HG--
extra : rebase_source : fe6a02469dca1e50c24ba166e15e39160ab4551b
2017-10-25 17:19:11 +02:00
Tom Schuster
d3b457113a Bug 638054 - Remove or fix tests outside JS using watch/unwatch. r=bz,fitzgen 2017-10-24 20:48:14 +02:00
Hiroyuki Ikezoe
22eab18afc Bug 1409633 - Drop mClone in SVGUseElement. r=heycam
It has been moved into nsSVGUseFrame in bug 1393791.

MozReview-Commit-ID: B5ReYZA4AyR

--HG--
extra : rebase_source : 87f01b6dc9fdd3d1f9de39ffdf096ec8c8b6d4dd
2017-10-18 14:28:47 +09:00
Markus Stange
3d6a13ead7 Bug 1409132 - Handle fX == 0 and fY == 0 appropriately when converting the frequency from user space to filter space. r=longsonr
MozReview-Commit-ID: 1kXGaXoE4ss

--HG--
extra : rebase_source : 325312615142e8f917b2a4acc19b8947ee44a805
2017-10-16 15:14:22 -04:00
Robert Longson
0e21ecb9e3 Bug 1398806 - GetCtx and GetNearestViewport should return the nearest svg or symbol element which is now an SVGViewportElement rather than only returning the nearest svg element because a symbol establishes a viewport too. r=dholbert 2017-10-10 07:58:34 +01:00
Kris Maglione
9c145b38f6 Bug 1406278: Part 8b - Use subject principal as triggering principal in style <link> "href" attribute. r=bz
MozReview-Commit-ID: LWMkBcB4WIg

--HG--
extra : rebase_source : fa2daf25c58190cee7e55798347d4eaffa0d5250
extra : histedit_source : f2887c9e53c572aa5e675600cd1aeb6c5a72becc%2Ce7a84ac505319ca24e65c73a4df13014a0a0cdc0
2017-10-05 19:40:48 -07:00
Kris Maglione
4275cd1039 Bug 1406278: Part 1 - Pass subject principal to SetAttribute and friends. r=bz
In order to tailor certain security checks to the caller that is attempting to
load a particular piece of content, we need to be able to attach an
appropriate triggering principal to the corresponding requests. Since most
HTML content is loaded based on attribute values, that means capturing the
subject principal of the caller who sets those attributes, which means making
it available to AfterSetAttr hooks.

MozReview-Commit-ID: BMDL2Uepg0X

--HG--
extra : rebase_source : 25e438c243700a9368c393e40e3a6002d968d6c8
2017-10-09 14:33:38 -07:00
Nicholas Nethercote
d225f7151b Bug 1400460 - Rename nsIAtom as nsAtom. r=hiro.
(Path is actually r=froydnj.)

Bug 1400459 devirtualized nsIAtom so that it is no longer a subclass of
nsISupports. This means that nsAtom is now a better name for it than nsIAtom.

MozReview-Commit-ID: 91U22X2NydP

--HG--
rename : xpcom/ds/nsIAtom.h => xpcom/ds/nsAtom.h
extra : rebase_source : ac3e904a21b8b48e74534fff964f1623ee937c67
2017-10-03 09:05:19 +11:00
Sebastian Hengst
fd1c572923 merge mozilla-central to mozilla-inbound. r=merge a=merge on a CLOSED TREE 2017-10-05 11:47:25 +02:00
Jonathan Watt
e102e14d75 Bug 1403500, part 4 - Document and do some renaming for SVGAnimationElement's TargetReference. r=longsonr
MozReview-Commit-ID: 6vcMQAoJ9em
2017-09-12 20:14:17 +01:00
Jonathan Watt
957895f090 Bug 1403500, part 3 - Document and do some renaming for SVGMPathElement's PathReference. r=longsonr
MozReview-Commit-ID: ILBHXwF4FkR
2017-09-12 14:37:10 +01:00
Jonathan Watt
33a64073fd Bug 1403500, part 2 - Document and do some renaming for SVGUseElement's SourceReference. r=longsonr
MozReview-Commit-ID: EEQzeHoBZP9
2017-09-12 10:43:16 +01:00
Catalin Badea
f8162c4bfd Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv 2017-10-03 11:09:08 +01:00
cku
30669a5437 Bug 1343147 - Part 2. A crash test of painting elements with both perspective and transform in generate text mask for background-clip:text. r=mstange
MozReview-Commit-ID: 6KKo9ap2VZu

--HG--
extra : rebase_source : 8c780d6b95389f8b1ba76655c0562246a11b894d
extra : source : 42907ee02b4c09f29283c330389811df5c8a2570
2017-09-08 14:24:17 +08:00