Boris Zbarsky
d36e5a4ea5
Bug 1214364 part 4. Only output full-featured Init methods for dictionaries that need them. r=peterv
...
Dictionaries that we never initialize with JS values don't need a full-featured
Init() method. Instead, we output a cut-down Init() method that doesn't even
take a JSContext and Value as argument, and skips as much work as it can. It
uses constant-false for "is the value present?", but also, to avoid compilation
errors due to use of `cx` and `val` in now-dead conversion code, it tells the
native-to-JS conversion machinery that the value is always missing, which lets
it skip most of the the work it would normally try to do and just output
initialization to the default value. We only need to do this for members that
have default values; the others either remain no-passed or are required members
with no default-initialization behavior.
This saves about 330KB of codesize on Linux64 without PGO and 285KB with PGO.
Differential Revision: https://phabricator.services.mozilla.com/D48007
--HG--
extra : moz-landing-system : lando
2019-10-28 20:24:31 +00:00
Boris Zbarsky
a998830a71
Bug 1535124 part 2. Mark Web IDL callbacks MOZ_CAN_RUN_SCRIPT by default. r=qdot
...
We add a [MOZ_CAN_RUN_SCRIPT_BOUNDARY] opt-out for now to keep the tree
compiling. The naming purposefully matches the C++ annotation that has a
similar effect, top make it easy to search for.
Differential Revision: https://phabricator.services.mozilla.com/D23520
--HG--
extra : moz-landing-system : lando
2019-03-19 12:59:54 +00:00
Nika Layzell
2f7bbe21e3
Bug 1477432 - Part 11: Update CustomElementRegistry to not use nsIJSID, r=smaug
...
Differential Revision: https://phabricator.services.mozilla.com/D9733
2018-11-16 17:27:48 -05:00
Cosmin Sabou
679b5e2db1
Backed out 5 changesets (bug 1485040) for causing build bustages on test_mozwebidlcodegen. CLOSED TREE
...
Backed out changeset b417c2d937e8 (bug 1485040)
Backed out changeset c567c4c7438f (bug 1485040)
Backed out changeset 806c36cb2c4c (bug 1485040)
Backed out changeset 0fbb490ffc7f (bug 1485040)
Backed out changeset a9622e7761eb (bug 1485040)
2018-09-13 23:04:55 +03:00
Andrew McCreight
93b3b0138c
Bug 1485040, part 5 - Automatically fix mode lines in WebIDL files r=qdot
...
This patch was generated by my modeline.py script.
MozReview-Commit-ID: EbVjPLwiUAT
Depends on D4159
Differential Revision: https://phabricator.services.mozilla.com/D4161
--HG--
extra : moz-landing-system : lando
2018-09-13 19:30:51 +00:00
Neil Deakin
0cc9fd046c
Bug 1461742, add a mechanism so that custom elements can implement interfaces akin to XBL implements. This is accomplished by an additional chrome-only callback getCustomInterface that can be implemented by custom elements, r=bz
2018-07-19 08:38:45 -04:00
Csoregi Natalia
143b18ba60
Backed out 2 changesets (bug 1461742) for build bustage on CustomElementRegistry.cpp:97. CLOSED TREE
...
Backed out changeset ca5415dbc51a (bug 1461742)
Backed out changeset 30bd77de7bf5 (bug 1461742)
2018-07-19 13:36:31 +03:00
Neil Deakin
c2c722be92
Bug 1461742, add a mechanism so that custom elements can implement interfaces akin to XBL implements. This is accomplished by an additional chrome-only callback getCustomInterface that can be implemented by custom elements, r=bz
2018-07-19 06:15:26 -04:00
Boris Zbarsky
2b7be9c25a
Bug 1462453. Remove the useless, and incorrect, CheckLifeCycleCallbacks function. r=smaug
...
This check is already done by the dictionary init method. This function just
makes us do extra non-spec get operations.
For now this introduces more failures due to bug 1419323 and the spec issue at
<https://github.com/whatwg/html/issues/3580 >. The tests testing for that stuff
were passing due to exceptions getting thrown from CheckLifeCycleCallbacks.
2018-05-18 16:18:19 -04:00
Edgar Chen
9f4324f41e
Bug 1416999 - Remove document.registerElement; r=smaug
...
MozReview-Commit-ID: HiX07Vbljhk
--HG--
rename : dom/base/test/chrome/registerElement_ep.js => dom/base/test/chrome/custom_element_ep.js
rename : dom/base/test/chrome/frame_registerElement_content.html => dom/base/test/chrome/frame_custom_element_content.html
rename : dom/base/test/chrome/test_registerElement_content.xul => dom/base/test/chrome/test_custom_element_content.xul
rename : dom/base/test/chrome/test_registerElement_ep.xul => dom/base/test/chrome/test_custom_element_ep.xul
rename : dom/base/test/test_document_register.html => dom/base/test/test_custom_element.html
rename : dom/tests/mochitest/webcomponents/test_document_register.html => dom/tests/mochitest/webcomponents/test_custom_element_define.html
rename : dom/tests/mochitest/webcomponents/test_document_register_parser.html => dom/tests/mochitest/webcomponents/test_custom_element_define_parser.html
rename : dom/tests/mochitest/webcomponents/test_template_custom_elements.html => dom/tests/mochitest/webcomponents/test_custom_element_template.html
extra : rebase_source : cd2ebf166e8bd9c49910387c9136d7b83b51598d
2017-11-16 12:23:15 +08:00
Edgar Chen
698fdbc62e
Bug 1396620 - Part 1: Remove created callback for custom elements; r=jdai,smaug
...
MozReview-Commit-ID: IDovq3OZwgy
--HG--
extra : rebase_source : bae891833d4f8139fed2ed31af85173694c7eb11
2017-10-13 23:36:54 +08:00
arthur.iakab
cb136d6136
Backed out changeset ed0cc9f86583::b6b642efbb74 (bug 1396620) for static failure at dom/base/CustomElementRegistry.cpp r=backout on a CLOSED TREE
...
Backed out changeset b6b642efbb74 (bug 1396620)
Backed out changeset ed0cc9f86583 (bug 1396620)
2017-11-17 01:22:14 +02:00
Edgar Chen
fd6b408209
Bug 1396620 - Part 1: Remove created callback for custom elements; r=jdai,smaug
...
MozReview-Commit-ID: IDovq3OZwgy
--HG--
extra : rebase_source : 34b67e07a7e15af815c6921a41272ee0fddfb93d
2017-10-13 23:36:54 +08:00
John Dai
25f8ec6929
Bug 1121994 - Implement adopted callback for custom elements. r=smaug
2017-10-02 00:42:00 -04:00
Jessica Jong
9c73bf3115
Bug 1334044: Replace detached callback (v0) with disconnected callback (v1). r=smaug
...
MozReview-Commit-ID: 8jxFK1fze15
2017-09-26 13:56:11 +08:00
Jessica Jong
dca1a68e1a
Bug 1334043 - Part 1: Replace attached callback (v0) with connected callback (v1). r=smaug
...
MozReview-Commit-ID: 3qQh4viyvBX
2017-09-26 13:55:58 +08:00
Jessica Jong
acd0223fec
Bug 1334051 - Part 1: Include namespace in attributeChangedCallback. f=jdai, r=smaug
...
Per spec [1], we should include namesapce in attributeChangedCallback argurment
list.
[1] https://html.spec.whatwg.org/multipage/custom-elements.html#concept-upgrade-an-element , step 3
MozReview-Commit-ID: 3K6SeIr3FJX
2017-08-27 23:25:00 -04:00
William Chen
181b287ab2
Bug 978398 - Rename custom element callbacks from enteredView/leftView to attached/detached. r=mrbkap
2014-02-28 17:45:31 -08:00
William Chen
e78ac9ead3
Bug 856140 - Sync our document.registerElement implementation to the current version of the spec. r=mrbkap
2014-02-23 13:01:26 -08:00
Boris Zbarsky
e335c1f797
Bug 869014. Don't allow name collisions between external interfaces and other objects. r=khuey
2013-05-09 13:08:29 -04:00
Ryan VanderMeulen
9edc2f4aa0
Backed out 6 changesets (bug 868996, bug 867903, bug 869014, bug 870219, bug 861587) for PGO bustage.
...
CLOSED TREE
2013-05-09 17:11:59 -04:00
Boris Zbarsky
53db24c110
Bug 869014. Don't allow name collisions between external interfaces and other objects. r=khuey
2013-05-09 13:08:29 -04:00
William Chen
a9e43bd562
Bug 783129 - Implementation of document.register without shadow DOM support. r=mrbkap
2012-11-01 11:18:08 -07:00