summaryrefslogtreecommitdiffstats
path: root/dom/base/Element.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-15 03:35:49 +0000
commitd8bbc7858622b6d9c278469aab701ca0b609cddf (patch)
treeeff41dc61d9f714852212739e6b3738b82a2af87 /dom/base/Element.h
parentReleasing progress-linux version 125.0.3-1~progress7.99u1. (diff)
downloadfirefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.tar.xz
firefox-d8bbc7858622b6d9c278469aab701ca0b609cddf.zip
Merging upstream version 126.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'dom/base/Element.h')
-rw-r--r--dom/base/Element.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/dom/base/Element.h b/dom/base/Element.h
index 40a8052aef..fb88274a88 100644
--- a/dom/base/Element.h
+++ b/dom/base/Element.h
@@ -257,7 +257,8 @@ class Element : public FragmentOrElement {
#ifdef MOZILLA_INTERNAL_API
explicit Element(already_AddRefed<mozilla::dom::NodeInfo>&& aNodeInfo)
: FragmentOrElement(std::move(aNodeInfo)),
- mState(ElementState::READONLY | ElementState::DEFINED) {
+ mState(ElementState::READONLY | ElementState::DEFINED |
+ ElementState::LTR) {
MOZ_ASSERT(mNodeInfo->NodeType() == ELEMENT_NODE,
"Bad NodeType in aNodeInfo");
SetIsElement();
@@ -1352,10 +1353,8 @@ class Element : public FragmentOrElement {
enum class ShadowRootDeclarative : bool { No, Yes };
MOZ_CAN_RUN_SCRIPT_BOUNDARY
- already_AddRefed<ShadowRoot> AttachShadow(
- const ShadowRootInit& aInit, ErrorResult& aError,
- ShadowRootDeclarative aNewShadowIsDeclarative =
- ShadowRootDeclarative::No);
+ already_AddRefed<ShadowRoot> AttachShadow(const ShadowRootInit& aInit,
+ ErrorResult& aError);
bool CanAttachShadowDOM() const;
enum class DelegatesFocus : bool { No, Yes };
@@ -1364,8 +1363,7 @@ class Element : public FragmentOrElement {
already_AddRefed<ShadowRoot> AttachShadowWithoutNameChecks(
ShadowRootMode aMode, DelegatesFocus = DelegatesFocus::No,
SlotAssignmentMode aSlotAssignmentMode = SlotAssignmentMode::Named,
- ShadowRootClonable aClonable = ShadowRootClonable::No,
- ShadowRootDeclarative aDeclarative = ShadowRootDeclarative::No);
+ ShadowRootClonable aClonable = ShadowRootClonable::No);
// Attach UA Shadow Root if it is not attached.
enum class NotifyUAWidgetSetup : bool { No, Yes };
@@ -1499,6 +1497,8 @@ class Element : public FragmentOrElement {
return CSSPixel::FromAppUnits(GetClientAreaRect().Width());
}
+ MOZ_CAN_RUN_SCRIPT double CurrentCSSZoom();
+
// This function will return the block size of first line box, no matter if
// the box is 'block' or 'inline'. The return unit is pixel. If the element
// can't get a primary frame, we will return be zero.