gecko-dev/dom/html
Emilio Cobos Álvarez 2c6de5f038 Bug 1839223 - Remove nsMappedAttributes. r=smaug
Instead, lazily schedule evaluation of them before styling, much like we
were doing for SVG.

A subtle tweak is that we only remain scheduled while in the document.
This allows us to use the "in document" bit plus the "mapped attributes
dirty" bit to know our scheduled status. It also prevents doing silly
work for disconnected elements, and having to do hashmap lookups on
adoption and node destruction.

Differential Revision: https://phabricator.services.mozilla.com/D181549
2023-06-22 14:31:16 +00:00
..
crashtests Bug 1631441 - Remove no longer relevant tests with XBL bindings. r=emilio DONTBUILD 2022-11-23 13:41:15 +00:00
input Bug 1814870 - HTML pattern attribute should set v flag for regular expressions. r=emilio 2023-06-08 12:10:09 +00:00
reftests Bug 1444491 - Update existing internal tests based on the autofocus algorithm updates r=emilio 2023-02-15 20:08:37 +00:00
test Backed out 5 changesets (bug 1838829) for causing mochitest failures CLOSED TREE 2023-06-22 03:37:07 +03:00
ConstraintValidation.cpp
ConstraintValidation.h
ElementInternals.cpp Backed out changeset 9fb58fa7b8b6 (bug 1556358) for causing wpt failures on ElementInternals-setFormValue.html. CLOSED TREE 2023-06-20 08:16:50 +03:00
ElementInternals.h Backed out changeset 9fb58fa7b8b6 (bug 1556358) for causing wpt failures on ElementInternals-setFormValue.html. CLOSED TREE 2023-06-20 08:16:50 +03:00
HTMLAllCollection.cpp
HTMLAllCollection.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
HTMLAnchorElement.cpp Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLAnchorElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLAreaElement.cpp Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLAreaElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLAudioElement.cpp
HTMLAudioElement.h
HTMLBodyElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLBodyElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLBRElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLBRElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLButtonElement.cpp Bug 1653625 - Make the submission from default action of a submit button also deferred. r=edgar 2023-05-12 23:11:28 +00:00
HTMLButtonElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLCanvasElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLCanvasElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLDataElement.cpp
HTMLDataElement.h
HTMLDataListElement.cpp
HTMLDataListElement.h Bug 841942 - Display tick marks for <input type=range> when @list/<datalist> is used r=emilio,credential-management-reviewers,sgalich 2022-11-28 22:06:33 +00:00
HTMLDetailsElement.cpp Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLDetailsElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLDialogElement.cpp Bug 1835464 - Check dialog is modal flag instead of open attribute in 'check popover validity' algorithm. r=emilio 2023-06-20 08:49:32 +00:00
HTMLDialogElement.h Bug 1836057 - Popover: Use dialog initial focus for dialog popovers, r=emilio 2023-06-01 18:16:53 +00:00
HTMLDivElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLDivElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLDNSPrefetch.cpp Bug 1596845 - Turn nsIDNSService dns flags into a cenum r=necko-reviewers,geckoview-reviewers,kershaw,m_kato 2022-12-23 09:26:17 +00:00
HTMLDNSPrefetch.h Bug 1596845 - Turn nsIDNSService dns flags into a cenum r=necko-reviewers,geckoview-reviewers,kershaw,m_kato 2022-12-23 09:26:17 +00:00
HTMLElement.cpp Backed out changeset 9fb58fa7b8b6 (bug 1556358) for causing wpt failures on ElementInternals-setFormValue.html. CLOSED TREE 2023-06-20 08:16:50 +03:00
HTMLElement.h Backed out changeset 9fb58fa7b8b6 (bug 1556358) for causing wpt failures on ElementInternals-setFormValue.html. CLOSED TREE 2023-06-20 08:16:50 +03:00
HTMLEmbedElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLEmbedElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLFieldSetElement.cpp Bug 1829874 - Allow events on disabled fieldsets r=edgar 2023-06-13 13:11:20 +00:00
HTMLFieldSetElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLFontElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLFontElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLFormControlsCollection.cpp
HTMLFormControlsCollection.h
HTMLFormElement.cpp Bug 1550743 - Change DoSecureToInsecureSubmitCheck to use IsSecureContext; r=ckerschb 2023-06-06 15:04:41 +00:00
HTMLFormElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLFormSubmission.cpp Bug 1770094 r=freddyb,emilio 2022-08-15 14:41:10 +00:00
HTMLFormSubmission.h
HTMLFormSubmissionConstants.h
HTMLFrameElement.cpp
HTMLFrameElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLFrameSetElement.cpp Bug 1829225 - Trivially fix a typo in the previous patch. 2023-04-21 12:56:47 +02:00
HTMLFrameSetElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLHeadingElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLHeadingElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLHRElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLHRElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLIFrameElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLIFrameElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLImageElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLImageElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLInputElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLInputElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLLabelElement.cpp Bug 1782380 - Consider trusted accesskey event user activation. r=edgar 2022-08-01 13:39:53 +00:00
HTMLLabelElement.h
HTMLLegendElement.cpp
HTMLLegendElement.h
HTMLLIElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLLIElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLLinkElement.cpp Bug 1425310 - Implement modulepreload for link rel. r=yulia,smaug,jonco 2023-05-14 10:49:46 +00:00
HTMLLinkElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLMapElement.cpp
HTMLMapElement.h
HTMLMarqueeElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLMarqueeElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLMediaElement.cpp Bug 1834737 - Make RFPTarget parameter of Document::ShouldResistFingerprinting non-optional. r=tjr 2023-05-31 09:46:54 +00:00
HTMLMediaElement.h Bug 1834737 - Make RFPTarget parameter of Document::ShouldResistFingerprinting non-optional. r=tjr 2023-05-31 09:46:54 +00:00
HTMLMenuElement.cpp Bug 1372276 - Remove HTML menuitem. r=smaug,mconley,agi 2022-06-22 22:31:42 +00:00
HTMLMenuElement.h Bug 1372276 - Remove HTML menuitem. r=smaug,mconley,agi 2022-06-22 22:31:42 +00:00
HTMLMetaElement.cpp Bug 1829570 - part 2: Add an overload of AsyncEventDispatcher::RunDOMEventWhenSafe r=smaug 2023-05-15 01:07:29 +00:00
HTMLMetaElement.h Bug 1829570 - part 2: Add an overload of AsyncEventDispatcher::RunDOMEventWhenSafe r=smaug 2023-05-15 01:07:29 +00:00
HTMLMeterElement.cpp
HTMLMeterElement.h
HTMLModElement.cpp
HTMLModElement.h
HTMLObjectElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLObjectElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLOptGroupElement.cpp Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLOptGroupElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLOptionElement.cpp Bug 1837522 - HTMLOptionElement text setter should not reuse textnode, r=edgar 2023-06-09 08:10:47 +00:00
HTMLOptionElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLOptionsCollection.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLOptionsCollection.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
HTMLOutputElement.cpp Bug 1800553 - part 2: Change HTMLAnchorElement::GetText to a const method r=smaug 2022-11-16 00:21:30 +00:00
HTMLOutputElement.h Bug 1800553 - part 2: Change HTMLAnchorElement::GetText to a const method r=smaug 2022-11-16 00:21:30 +00:00
HTMLParagraphElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLParagraphElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLPictureElement.cpp Bug 1694741 - Part 6: Map width/height attributes to the style of img elements. r=emilio 2022-08-22 20:18:39 +00:00
HTMLPictureElement.h
HTMLPreElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLPreElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLProgressElement.cpp
HTMLProgressElement.h
HTMLScriptElement.cpp Bug 1834110 - Do not run script elements with whitespace type attribute values r=peterv 2023-06-02 15:24:14 +00:00
HTMLScriptElement.h Bug 1827512 - Properly handle type and src attribute changes on script tags. r=smaug 2023-06-14 04:00:09 +00:00
HTMLSelectElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSelectElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSharedElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSharedElement.h Bug 1831863 - Drive by clean-ups to HTMLSharedElement. r=smaug 2023-05-10 16:47:18 +00:00
HTMLSharedListElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSharedListElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSlotElement.cpp Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLSlotElement.h Bug 1829225 - Make BeforeSetAttr take the parsed nsAttrValue. r=smaug 2023-04-21 09:25:17 +00:00
HTMLSourceElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSourceElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSpanElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLSpanElement.h
HTMLStyleElement.cpp Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLStyleElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLSummaryElement.cpp Bug 1797957 - Fix HTMLSummaryElement::GetDetails() for XML pretty print. r=smaug 2022-10-31 10:37:33 +00:00
HTMLSummaryElement.h Bug 1308080 - Make <details> use a shadow tree as per spec. r=TYLin,smaug 2022-09-16 14:54:12 +00:00
HTMLTableCaptionElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableCaptionElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableCellElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableCellElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableColElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableColElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableRowElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableRowElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableSectionElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTableSectionElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTemplateElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTemplateElement.h
HTMLTextAreaElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTextAreaElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTimeElement.cpp
HTMLTimeElement.h
HTMLTitleElement.cpp Bug 1800553 - part 2: Change HTMLAnchorElement::GetText to a const method r=smaug 2022-11-16 00:21:30 +00:00
HTMLTitleElement.h Bug 1800553 - part 2: Change HTMLAnchorElement::GetText to a const method r=smaug 2022-11-16 00:21:30 +00:00
HTMLTrackElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLTrackElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
HTMLUnknownElement.cpp
HTMLUnknownElement.h
HTMLVideoElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
HTMLVideoElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
ImageDocument.cpp Bug 1837153 - Make RFPTarget parameter of ShouldResistFingerprinting with justification non-optional. r=tjr 2023-06-14 13:34:59 +00:00
ImageDocument.h Bug 1837153 - Make RFPTarget parameter of ShouldResistFingerprinting with justification non-optional. r=tjr 2023-06-14 13:34:59 +00:00
MediaDocument.cpp Bug 1783601 remove unused MediaDocumentStreamListener::SetStreamListener() r=chunmin 2022-08-24 02:59:25 +00:00
MediaDocument.h Bug 1783601 remove unused MediaDocumentStreamListener::SetStreamListener() r=chunmin 2022-08-24 02:59:25 +00:00
MediaError.cpp Bug 1834737 - Make RFPTarget parameter of Document::ShouldResistFingerprinting non-optional. r=tjr 2023-05-31 09:46:54 +00:00
MediaError.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
moz.build Bug 1595491 - Part 1: Make <embed> and <object> behave more like <iframe>. r=smaug,emilio 2022-08-16 16:42:58 +00:00
nsBrowserElement.cpp
nsBrowserElement.h
nsDOMStringMap.cpp Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
nsDOMStringMap.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
nsGenericHTMLElement.cpp Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
nsGenericHTMLElement.h Bug 1839223 - Remove nsMappedAttributes. r=smaug 2023-06-22 14:31:16 +00:00
nsGenericHTMLFrameElement.cpp Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
nsGenericHTMLFrameElement.h Bug 1829189 - Make OnAttrSetButNotChanged and AfterSetAttr infallible. r=smaug 2023-04-21 08:56:27 +00:00
nsHTMLContentSink.cpp Bug 1444491 - Check the number of script blocking style sheets in autofocus algorithm r=hsivonen 2023-02-15 20:08:38 +00:00
nsHTMLDocument.cpp Bug 1839255 - Clean up a bit the mapped attribute set-up. r=smaug 2023-06-20 10:02:44 +00:00
nsHTMLDocument.h
nsIConstraintValidation.cpp
nsIConstraintValidation.h
nsIFormControl.h Bug 1834334 - Include input reset and input button types to button type for target element. r=emilio 2023-05-23 18:11:58 +00:00
nsIHTMLCollection.h
nsIRadioGroupContainer.h
nsIRadioVisitor.h
nsRadioVisitor.cpp
nsRadioVisitor.h
PlayPromise.cpp
PlayPromise.h
RadioNodeList.cpp
RadioNodeList.h
TextControlElement.h Bug 1833181 - Avoid attr lookups to check whether input value is empty. r=smaug 2023-05-15 17:16:41 +00:00
TextControlState.cpp Bug 1836806 - Make TextControlState::SetValueWithoutTextEditor() notify IMEContentObserver of value changes even if it has a bounding frame r=smaug 2023-06-14 01:26:33 +00:00
TextControlState.h Bug 1835353 - Make TextControlState notify IMEContentObserver of setting new value during no frame r=smaug 2023-05-31 12:11:44 +00:00
TextInputListener.h Bug 1833181 - Avoid attr lookups to check whether input value is empty. r=smaug 2023-05-15 17:16:41 +00:00
TextTrackManager.cpp Bug 1814314 - use the script runner for calling ProcessCues. r=emilio 2023-03-15 17:26:33 +00:00
TextTrackManager.h
TimeRanges.cpp Bug 1703812, 1817997, 1821362: apply code formatting via Lando 2023-05-24 13:28:38 +00:00
TimeRanges.h Bug 1817997 - Write a version of GetSeekableTimeRanges that uses double and not TimeUnit. r=alwu 2023-05-24 13:18:43 +00:00
ValidityState.cpp
ValidityState.h Bug 1777574, automate CC zone handling, r=mccr8 2022-09-07 11:22:51 +00:00
VideoDocument.cpp