summaryrefslogtreecommitdiffstats
path: root/dom/base/Element.cpp
Commit message (Collapse)AuthorAgeLines
* Issue #1705 - Part 3: Rename ScrollbarStyles to ScrollStyles.Moonchild2021-01-06-10/+10
| | | | | | | | | | | ScrollbarStyles contains values of overflow, (over)scroll-behavior, etc. The only one which is marginally related to scroll _bars_ is overflow, which can be used to hide scrollbar (by making an element not scrollable) or enforce the scrollbar to display. It makes more sense to be called ScrollStyles as it's mainly concerning behavior of scrolling, not scrollbars. Also, with the addition of scrollbar width properties, the current name can be confusing.
* Issue #1656 - Part 2: Unmangle some unfortunate UTF-8 victims.Moonchild2020-09-23-6/+6
| | | | The poor fellows got lost in an ASCII-interpretation of the world.
* Issue #1656 - Part 1: Nuke most vim config lines in the tree.Moonchild2020-09-23-7/+6
| | | | | | Since these are just interpreted comments, there's 0 impact on actual code. This removes all lines that match /* vim: set(.*)tw=80: */ with S&R -- there are a few others scattered around which will be removed manually in a second part.
* Bug 1426503 - Remove DestInsertionPoints stuffMatt A. Tobin2020-04-17-77/+0
| | | | Tag #1375
* Bug 1416999 - Remove document.registerElementMatt A. Tobin2020-04-17-40/+1
| | | | Tag #1375
* Bug 1411878 - Support Element.shadowRoot and Element.assignedSlot / ↵Matt A. Tobin2020-04-17-0/+19
| | | | | | TextNode.assignedSlot on closed shadow root Tag #1375
* Bug 1404842 - Implement Element.attachShadow and Element.slotMatt A. Tobin2020-04-17-2/+82
| | | | Tag #1375
* Bug 1411754 - Rename PresShell::DestroyFramesFor to DestroyFramesForAndRestyleMatt A. Tobin2020-04-17-1/+1
| | | | Tag #1375
* Bug 1396584 - Remove support for multiple ShadowRootsMatt A. Tobin2020-04-17-17/+5
| | | | Tag #1375
* Bug 1389743 - Only reconstruct frames synchronously from ContentRemoved when ↵Matt A. Tobin2020-04-17-16/+3
| | | | | | called from frame construction Tag #1375
* Bug 1375701 - Atomize class attribute value in the parser in the innerHTML caseMatt A. Tobin2020-04-17-2/+39
| | | | Tag #1375
* Bug 1365092 - Move side effects of SetAttr and ParseAttribute to ↵Matt A. Tobin2020-04-17-23/+71
| | | | | | | | | | | 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-24/+54
| | | | | | Element::AfterSetAttr Tag #1375
* Bug 1352389 -Don't push extra script blocker on stack when setting attributesMatt A. Tobin2020-04-17-9/+11
| | | | Tag #1375
* Bug 656197 - Push state updates further out across beforesetattr/aftersetattrMatt A. Tobin2020-04-16-41/+30
| | | | | | | | | | * 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-3/+2
| | | | | | | | | | | 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 1305458 - Changing -moz-appearence on hover breaks change eventMatt A. Tobin2020-04-14-3/+4
| | | | | | | | | | | | | | | | | | | * 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 1396620 - Part 2: Fix compartment mismatch crash when doing old ↵Gaming4JC2020-01-26-0/+4
| | | | | | prototype swizzling for custom element Tag UXP Issue #1344
* Bug 1406325 - Part 5: Implement try to upgrade.Gaming4JC2020-01-26-5/+17
| | | | Tag UXP Issue #1344
* Bug 1406325 - Part 4: Use mType for LookupCustomElementDefinition and also ↵Gaming4JC2020-01-26-3/+3
| | | | | | removing parts of v0. Tag UXP Issue #1344
* Bug 1406325 - Part 1: Make sure custom element state is custom before ↵Gaming4JC2020-01-26-5/+14
| | | | | | sending callback. Tag UXP Issue #1344
* Bug 1121994 - Implement adopted callback for custom elements.Gaming4JC2020-01-26-4/+4
| | | | Tag UXP Issue #1344
* Bug 1334044: Replace detached callback (v0) with disconnected callback (v1).Gaming4JC2020-01-26-5/+6
| | | | Tag UXP Issue #1344
* Bug 1334043 - Part 2: Make nsContentUtils::EnqueueLifecycleCallback static.Gaming4JC2020-01-26-8/+5
| | | | | | We make nsContentUtils::EnqueueLifecycleCallback static so that it can be called without a window object. To achive this, we also make CustomElementReaction not taking a CustomElementRegistry in the constructor, as it can call Upgrade statically. Tag UXP Issue #1344
* Bug 1334043 - Part 1: Replace attached callback (v0) with connected callback ↵Gaming4JC2020-01-26-8/+7
| | | | | | (v1). Tag UXP Issue #1344
* Bug 1392970 - Part 1: Make CustomElementDefinition ref-counted and put it in ↵Gaming4JC2020-01-26-0/+20
| | | | | | CustomElementData. Tag UXP Issue #1344
* Bug 1334051 - Part 2: Invoke attributeChangedCallback only if attribute name ↵Gaming4JC2020-01-26-31/+44
| | | | | | | | | | | | | | is in the observed attribute list. We call attributeChangedCallback in two cases: 1. When any of the attributes in the observed attribute list has changed, appended, removed, or replaced. 2. When upgrading an element, for each attribute in element's attribute list that is in the observed attribute list. Note: w/ Fixup for not implementing an API Enhancement Bug 1363481. Tag UXP Issue #1344
* Bug 1334051 - Part 1: Include namespace in attributeChangedCallback.Gaming4JC2020-01-26-2/+9
| | | | | | | 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 Tag UXP Issue #1344
* Bug 1377993 - Make node slots less memory hungry in common cases.Gaming4JC2020-01-26-8/+8
| | | | Tag UXP Issue #1344
* Bug 1347634 - GetCustomElementData and SetCustomElementData don't need to be ↵Gaming4JC2020-01-26-0/+8
| | | | | | virtual; Tag UXP Issue #1344
* Add missing NS_AtomizeMainThread(nameToUse);win7-72019-05-24-1/+1
| | | nsCOMPtr<nsIAtom> nameAtom = NS_AtomizeMainThread(nameToUse);
* add main thread only cache for nsIAtoms to speed up atomization dom/basewin7-72019-05-24-4/+4
| | | add main thread only cache for nsIAtoms to speed up atomization
* Align Element.ScrollIntoView() with the spec.wolfbeast2019-01-08-12/+50
| | | | | | | 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-4/+4
| | | | Tag #249
* Remove VR hardware support.wolfbeast2018-11-26-1/+0
| | | | This resolves #881
* DOM - Element - add support for Element.toggleAttribute()janekptacijarabaci2018-07-10-0/+36
|
* Stabilize and align Intersection Observerswolfbeast2018-06-27-17/+28
| | | | | | | - Fixes several crashes - Aligns the feature with the W3C WD spec Tag #249
* moebius#138: Optimize operations on root of deeply-nested frame treejanekptacijarabaci2018-04-24-0/+18
| | | | https://github.com/MoonchildProductions/moebius/pull/138
* Bug 1444231 - Fix QI implementation for FragmentOrElement. r=mccr8, a=RyanVMBoris Zbarsky2018-04-19-0/+6
| | | | | | | | MozReview-Commit-ID: 9mPO2ezk2Y7 --HG-- extra : source : 060024fa93121d878d27f329c959757e6f71017a extra : intermediate-source : 925d5693c5a1a73806062947b18c98ed13efc6c3
* HTML - implement the labels attribute (follow up)janekptacijarabaci2018-03-12-3/+2
|
* Add m-esr52 at 52.6.0Matt A. Tobin2018-02-02-0/+3932