summaryrefslogtreecommitdiffstats
path: root/dom/base/Element.h
Commit message (Collapse)AuthorAgeLines
* Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / ↵Matt A. Tobin2020-04-17-0/+1
| | | | | | TextNode.assignedSlot on closed shadow root Tag #1375
* Bug 1404842 - Implement Element.attachShadow and Element.slotMatt A. Tobin2020-04-17-0/+10
| | | | Tag #1375
* Bug 1375701 - Atomize class attribute value in the parser in the innerHTML caseMatt A. Tobin2020-04-17-0/+7
| | | | Tag #1375
* Bug 1373798 - Move HTML dir attribute state into event state flagsMatt A. Tobin2020-04-17-9/+27
| | | | | | | | | | * Stop calling SetHasDirAuto/ClearHasDirAuto in input element code * Introduce event state flags that track the state of an element's dir attribute * Rewrite our existing checks for the state of the dir attr on top of the new event state flags * Add pseudo-classes for matching on the dir attribute states * Use the new dir attribute pseudoclasses in html.css Tag #1375
* Bug 1365092 - Move side effects of SetAttr and ParseAttribute to ↵Matt A. Tobin2020-04-17-6/+60
| | | | | | | | | | | BeforeSetAttr and AfterSetAttr * Moves side effects of nsGenericHTMLElement and Element's SetAttr, UnsetAttr, and ParseAttribute functions to the corresponding BeforeSetAttr and AfterSetAttr functions * Moves side effects of HTMLAnchorElement's SetAttr, UnsetAttr, and ParseAttribute functions to the corresponding BeforeSetAttr and AfterSetAttr functions * Moves side effects of HTMLImageElement's SetAttr function to the corresponding BeforeSetAttr and AfterSetAttr functions * Moves side effects of SetAttr, UnsetAttr, and ParseAttribute functions to BeforeSetAttr and AfterSetAttr Tag #1375
* Bug 1363481 - Add the old attribute value as a parameter to ↵Matt A. Tobin2020-04-17-17/+57
| | | | | | Element::AfterSetAttr Tag #1375
* Bug 1352389 -Don't push extra script blocker on stack when setting attributesMatt A. Tobin2020-04-17-1/+5
| | | | Tag #1375
* Bug 656197 - Push state updates further out across beforesetattr/aftersetattrMatt A. Tobin2020-04-16-5/+6
| | | | | | | | | | * Remove the generic attr preparsing mechanism from BeforeSetAttr and just preparse class attributes directly in the one place that needs to do it * Move calls to BeforeSetAttr to after AttributeWillChange * Remove UpdateState calls in BeforeSetAttr * Move calls to AfterSetAttr to before UpdateState when manipulating attributes * Remove UpdateState calls from AfterSetAttr, since they are no longer needed there Tag #1375
* Bug 1331322 - Allow tagging of pseudo-implementing native anonymous content ↵Matt A. Tobin2020-04-16-1/+20
| | | | | | | | | | | with the pseudo type at creation time * Stop using a node bit for HasExplicitBaseURI * Move MAY_HAVE_CLASS to mBoolFlags * Add a flag to indicate that a node is native anonymous content * Allow tagging of pseudo-implementing native anonymous content with the pseudo type at creation time, and eliminate explicit style contexts in nsIAnonymousContentCreator::ContentInfo Tag #1375
* Bug 1321284 - Crash in nsCSSFrameConstructor::GetInsertionPrevSibling when ↵Matt A. Tobin2020-04-14-0/+2
| | | | | | | | | | | | trying to reframe native anonymous content * Make StyleChildrenIterator skip NAC generated by root element primary frame ancestors. * Add nsINode::GetFlattenedTreeParentNodeForStyle. * Add iterator class to find all restyle roots. NOTE: Parts 1, 2, and "4.2" Tag #1375
* Bug 1305458 - Changing -moz-appearence on hover breaks change eventMatt A. Tobin2020-04-14-1/+1
| | | | | | | | | | | | | | | | | | | * Rename nsIDOMEventTarget::PreHandleEvent to nsIDOMEventTarget::GetEventTargetParent * Add nsIDOMEventTarget::PreHandleEvent * Add EventTargetChainItem::GetFirstEventTarget * Call EventTargetChainItem::PreHandleEvent even it sets mCanHandle=false * Move form control frame focus/blur from nsGenericHTMLFormElement::GetEventTargetParent to PreHandleEvent * Move fire change event from HTMLTextAreaElement::GetEventTargetParent to PreHandleEvent * Refine nsXULElement::GetEventTargetParent * Move dispatch XUL command from nsXULElement::GetEventTargetParent to PreHandleEvent * Move fire events and set value from HTMLInputElement::GetEventTargetParent to PreHandleEvent * Add test case * Let HTMLInputElement delegate event handling to it's parent class * Refine EventTargetChain flags to reduce overheads * Refine event target chain creation * Refine assertion in EventTargetChainItem::Create Tag #1375
* Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in ↵Gaming4JC2020-01-26-0/+16
| | | | | | CustomElementData. Tag UXP Issue #1344
* Bug 1377993 - Make node slots less memory hungry in common cases.Gaming4JC2020-01-26-2/+2
| | | | Tag UXP Issue #1344
* Bug 1347634 - GetCustomElementData and SetCustomElementData don't need to be ↵Gaming4JC2020-01-26-0/+23
| | | | | | virtual; Tag UXP Issue #1344
* Align Element.ScrollIntoView() with the spec.wolfbeast2019-01-08-2/+3
| | | | | | | This also removes the (unused) shadow alias from nsIDOMHTMLElement which used the different calling convention. This resolves #927
* Revise lifetime management of IntersectionObservers.wolfbeast2018-12-22-1/+2
| | | | Tag #249
* DOM - Element - add support for Element.toggleAttribute()janekptacijarabaci2018-07-10-0/+2
|
* Stabilize and align Intersection Observerswolfbeast2018-06-27-1/+1
| | | | | | | - Fixes several crashes - Aligns the feature with the W3C WD spec Tag #249
* HTML - implement the labels attribute (follow up)janekptacijarabaci2018-03-12-0/+18
|
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+1907