Emilio Cobos Álvarez
dc336a73ba
Bug 1517241 - Rename nsIDocument to mozilla::dom::Document. r=smaug
...
Summary: Really sorry for the size of the patch. It's mostly automatic
s/nsIDocument/Document/ but I had to fix up in a bunch of places manually to
add the right namespacing and such.
Overall it's not a very interesting patch I think.
nsDocument.cpp turns into Document.cpp, nsIDocument.h into Document.h and
nsIDocumentInlines.h into DocumentInlines.h.
I also changed a bunch of nsCOMPtr usage to RefPtr, but not all of it.
While fixing up some of the bits I also removed some unneeded OwnerDoc() null
checks and such, but I didn't do anything riskier than that.
2019-01-03 17:48:33 +01:00
Sylvestre Ledru
e5a134f73a
Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format
...
# ignore-this-changeset
2018-11-30 11:46:48 +01:00
Gabriele Svelto
7e234e998c
Bug 1510582 - Remove useless inclusions of Services.h r=erahm
...
Differential Revision: https://phabricator.services.mozilla.com/D13240
2018-11-28 17:25:23 +00:00
Timothy Guan-tin Chien
fb30ec3de3
Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
...
This patch removes the following functions:
* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)
and all references of the pref.
Depends on D11183
Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-15 06:52:01 +00:00
Andreea Pavel
f667cd7449
Backed out 2 changesets (bug 1503019) for failing crashtests at dom/base/crashtests/1505811.html on a CLOSED TREE
...
Backed out changeset 06b12fd41ff1 (bug 1503019)
Backed out changeset 7b845eac9dd7 (bug 1503019)
2018-11-15 01:52:30 +02:00
Timothy Guan-tin Chien
3e86e5f53e
Bug 1503019 - Part II, Remove dom.webcomponents.customelements.enabled pref r=smaug
...
This patch removes the following functions:
* nsContentUtils::IsCustomElementsEnabled()
* CustomElementRegistry::IsCustomElementEnabled(JSContext* aCx, JSObject* aObject)
* CustomElementRegistry::IsCustomElementEnabled(nsIDocument* aDoc)
and all references of the pref.
Depends on D11183
Differential Revision: https://phabricator.services.mozilla.com/D11249
2018-11-14 19:37:42 +00:00
Emilio Cobos Álvarez and Nicholas Nethercote
29483dd4e0
Bug 1392185 - Remove dynamic HTML5 atoms. r=njn,hsivonen
...
This is a rebase + manual refcounting on some places, + cleanup of the original
patch in the bug.
Co-authored-by: Nicholas Nethercote <[email protected] >
Differential Revision: https://phabricator.services.mozilla.com/D11035
2018-11-09 14:45:30 +01:00
shindli
2eaad78461
Backed out changeset 07c23fd98229 (bug 1489437) for multiple failures in nsHtml5DocumentBuilder
2018-09-09 12:09:56 +03:00
Edgar Chen
2cd2dacf9d
Bug 1489437 - HTML parser should invoke custom element's callbacks before appending child nodes to it; r=smaug
...
Per step 3.3 of https://html.spec.whatwg.org/multipage/parsing.html#insert-a-foreign-element
Differential Revision: https://phabricator.services.mozilla.com/D5269
2018-09-07 16:56:10 +00:00
Dave Townsend
e416deef2e
Bug 1480465: Infer the namespace for custom elements at definition time by following the class hierarchy. r=smaug
...
When a custom element is defined we can check whether its class is an instance
of XULElement or HTMLElement and tag the defintion with a namespace accordingly.
This allows us to know the correct namespace for the custom element when
created.
Differential Revision: https://phabricator.services.mozilla.com/D2680
2018-08-15 10:31:16 +00:00
Andi-Bogdan Postelnicu
318baca59d
Bug 1453795 - Parser/HTML - Initialize member fields in classes/ structures. r=hsivonen
2018-06-14 11:46:13 +03:00
Emilio Cobos Álvarez
967e0989f6
Bug 1461701: Remove nsUpdateType and UPDATE_CONTENT_MODEL. r=smaug
...
MozReview-Commit-ID: 33iBMZqnkAc
2018-05-15 18:47:16 +02:00
Chris Peterson
5d6b16ea3b
Bug 1457813 - Part 2: Replace non-asserting NS_PRECONDITIONs with MOZ_ASSERTs. r=froydnj
...
s/NS_PRECONDITION/MOZ_ASSERT/ and reindent
MozReview-Commit-ID: KuUsnVe2h8L
2018-04-28 12:50:58 -07:00
Emilio Cobos Álvarez
2dbe99a0b4
Bug 1454236: Remove nsINode::eDOCUMENT_FRAGMENT. r=bz
...
MozReview-Commit-ID: D2F3LbQ1pvw
2018-04-20 01:30:12 +02:00
Sebastian Hengst
d91e9954eb
Backed out 4 changesets (bug 525063) on request from Andi. a=backout
...
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Tristan Bourvon
6095241db8
Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan
2018-04-10 21:11:02 +02:00
Masatoshi Kimura
63783eda6f
Bug 1445541 - Enable the character encoding menu when the document is decoded as UTF-8 and an error is found, instead of disabling it when no errors are found. r=hsivonen
...
MozReview-Commit-ID: 1e6kQbAxcqm
2018-04-06 06:20:28 +09:00
Boris Zbarsky
92273616c3
Bug 1449404 part 2. Get rid of nsIContent::AppendText. r=mccr8
2018-03-28 18:01:46 -04:00
Boris Zbarsky
152cd3ba6e
Bug 1447098 part 1. Rename FromContent on various DOM classes to FromNode. r=mystor
...
MozReview-Commit-ID: 202nkbmkwfR
2018-03-21 17:39:04 -04:00
Boris Zbarsky
051041fc49
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
Adrian Wielgosik
975ac50d53
Bug 1418077 - Remove nsIDOMHTMLFormElement. r=bz
...
MozReview-Commit-ID: 9eQxvfIMB22
2018-03-14 21:42:25 +01:00
Boris Zbarsky
f65a0fdfbc
Bug 1445140 part 1. Remove the XPCOM-ish version of NS_NewDOMDocumentType. r=mystor
...
MozReview-Commit-ID: 6sEFIfMgqet
2018-03-13 16:24:01 -04:00
Emilio Cobos Álvarez
7a79ccba52
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
2018-02-27 15:30:27 +01:00
Boris Zbarsky
831a04431e
Bug 1436508 part 14. Remove nsIDOMMutationEvent. r=masayuki
...
MozReview-Commit-ID: Gf59kFSIuaK
2018-02-09 11:17:10 -05:00
Edgar Chen
eb56380ce2
Bug 1430951 - Avoid element name atomizing to improve performance of LookupCustomElementDefinition; r=smaug
...
Since we are dealing with the element (nodeInfo->LocalName() and NameAtom() are the same value),
we could use nodeInfo->NameAtom() instead.
MozReview-Commit-ID: 4vIBDEM1Nwv
2018-01-17 14:55:13 +08:00
Boris Zbarsky
a04420f06a
Bug 1432186 part 19. Remove the nsIDOMNode::*_NODE constants. r=mccr8
...
MozReview-Commit-ID: KvKjeKIOB9K
2018-01-29 23:10:53 -05:00
Andrea Marchesini
afc47478e4
Bug 1431000 - Replace the use of nsINode::InsertChildAt_Deprecated with nsINode::InsertChildBefore in nsHtml5TreeOperation, r=catalinb
2018-01-25 16:00:09 +01:00
Andrea Marchesini
5cd368a179
Bug 1430998 - Rename nsINode::InsertChildAt to InsertChildAt_Deprecated, r=catalinb
2018-01-23 14:30:18 +01:00
Andrea Marchesini
8d41475807
Bug 1430997 - Rename nsINode::IndexOf to nsINode::ComputeIndexOf, r=catalinb
2018-01-23 14:30:18 +01:00
Andreea Pavel
a0a77b5e9c
Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE
2018-01-16 18:00:21 +02:00
Andrea Marchesini
148709d732
Bug 1425440 - Replace RemoveChildAt_Deprecated with RemoveChildNode in nsHtml5TreeOperation, r=catalinb
2018-01-16 14:17:10 +01:00
Edgar Chen
ca3f70242e
Bug 1420377 - Avoid atomizing 'is' value twice when the custom element is created from parser; r=smaug
...
MozReview-Commit-ID: JHw3di1Q9E9
2017-11-24 16:57:00 +08:00
John Dai
b2052d3ac6
Bug 1419662 - Fix incorrect custom element type in CustomElementData. f=echen, r=smaug
2018-01-07 18:45:00 +02:00
Jon Coppeard
69ebe1854a
Bug 1361369 - Allow async attribute on inline module scripts r=smaug
2018-01-08 15:17:34 +00:00
Andrea Marchesini
082fc2f0f2
Bug 1425321 - Renaming nsINode::RemoveChildAt to RemoveChildAt_Deprecated, r=catalinb
2018-01-03 14:01:03 +01:00
Emilio Cobos Álvarez
8a71d3197b
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
ecd202d763
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
b3956b6171
Bug 1423990: Move the last few attribute-related methods outside of nsIContent. r=bz
...
MozReview-Commit-ID: 8JZuS6O8f8W
2017-12-07 19:13:50 +01:00
Emilio Cobos Álvarez
c10ea9ea04
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
Alphan Chen
f742ba195a
Bug 980904 - Disable the Character Encoding menu when document is decoded as UTF-8 without errors. r=hsivonen,emk,Gijs
2017-11-23 15:03:41 +08:00
Edgar Chen
6013c77fa7
Bug 1415761 - Catch the exception and rethrow it after invoking custom elements reactions; r=bz
...
The spec was unclear on how CEReactions interact with thrown exceptions; see https://github.com/whatwg/html/issues/3217 .
The spec is now being clarified in https://github.com/whatwg/html/pull/3235 .
MozReview-Commit-ID: 521HprTRS7k
2017-11-17 17:44:18 +08:00
John Dai
c0e69c86ed
Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also removing parts of v0. f=echen, r=smaug
2017-11-14 19:23:00 +08:00
Henri Sivonen
bfff273da5
Bug 1364399 - Call DidBuildModel() when not flushing. r=smaug.
...
MozReview-Commit-ID: CtYHqN8myb1
2017-11-01 13:16:44 +02:00
Henri Sivonen
b94d63f4e4
Bug 1410848 - Use RAII with nsHtml5TreeOpExecutor::mFlushState. r=smaug.
...
MozReview-Commit-ID: 3a1tyYGT8u5
2017-11-01 13:16:23 +02:00
Jessica Jong
d74deb91b0
Bug 1378079 - Part 3: Complete the steps related to custom elements in "create an element for a token". r=hsivonen,smaug
2017-10-26 14:55:41 +08:00
Kyle Machulis
d02dd47205
Bug 1406224 - Remove nsIDOMHTMLImageElement; r=bz
...
MozReview-Commit-ID: GCATWRt6qMo
2017-10-06 13:27:23 -07:00
Nicholas Nethercote
7dbfdaf890
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
2017-10-03 09:05:19 +11:00
Catalin Badea
fc6ab5f0ea
Bug 651120 - Remove index argument from content removed/appended/inserted notifications. r=peterv
2017-10-03 11:09:08 +01:00
Sebastian Hengst
b36c461e52
Backed out changeset 0ce8d073a16e (bug 256180)
2017-09-28 11:30:33 +02:00
Henri Sivonen
d2c77a8997
Bug 256180 parser part - Insert elements as siblings instead of children at the Blink-defined magic depth for compatibility. r=smaug
...
MozReview-Commit-ID: K8fgv3rgklt
2017-09-12 16:57:05 +03:00