diff --git a/dom/base/Document.cpp b/dom/base/Document.cpp index d941a4690167..3bbaf60bd898 100644 --- a/dom/base/Document.cpp +++ b/dom/base/Document.cpp @@ -1395,7 +1395,6 @@ Document::Document(const char* aContentType) mTooDeepWriteRecursion(false), mPendingMaybeEditingStateChanged(false), mHasBeenEditable(false), - mHasWarnedAboutZoom(false), mIsRunningExecCommandByContent(false), mIsRunningExecCommandByChromeOrAddon(false), mSetCompleteAfterDOMContentLoaded(false), @@ -14576,22 +14575,6 @@ void Document::EvaluateMediaQueriesAndReportChanges(bool aRecurse) { } } -void Document::MaybeWarnAboutZoom() { - if (mHasWarnedAboutZoom) { - return; - } - const bool usedZoom = Servo_IsPropertyIdRecordedInUseCounter( - mStyleUseCounters.get(), eCSSProperty_zoom); - if (!usedZoom) { - return; - } - - mHasWarnedAboutZoom = true; - nsContentUtils::ReportToConsole(nsIScriptError::warningFlag, "Layout"_ns, - this, nsContentUtils::eLAYOUT_PROPERTIES, - "ZoomPropertyWarning"); -} - nsIHTMLCollection* Document::Children() { if (!mChildrenCollection) { mChildrenCollection = diff --git a/dom/base/Document.h b/dom/base/Document.h index 1afb0f6442e5..f1dc5ea79f58 100644 --- a/dom/base/Document.h +++ b/dom/base/Document.h @@ -3570,8 +3570,6 @@ class Document : public nsINode, } void SetDevToolsWatchingDOMMutations(bool aValue); - void MaybeWarnAboutZoom(); - // https://drafts.csswg.org/cssom-view/#evaluate-media-queries-and-report-changes void EvaluateMediaQueriesAndReportChanges(bool aRecurse); @@ -4902,12 +4900,6 @@ class Document : public nsINode, // eDesignMode or eContentEditable. bool mHasBeenEditable : 1; - // Whether we've warned about the CSS zoom property. - // - // We don't use the general deprecated operation mechanism for this because we - // also record this as a `CountedUnknownProperty`. - bool mHasWarnedAboutZoom : 1; - // While we're handling an execCommand call by web app, set // to true. bool mIsRunningExecCommandByContent : 1; diff --git a/dom/locales/en-US/chrome/layout/layout_errors.properties b/dom/locales/en-US/chrome/layout/layout_errors.properties index 43aa84d406c4..a098aeebfe97 100644 --- a/dom/locales/en-US/chrome/layout/layout_errors.properties +++ b/dom/locales/en-US/chrome/layout/layout_errors.properties @@ -32,9 +32,6 @@ CompositorAnimationWarningOpacityFrameInactive=Animation cannot be run on the co CompositorAnimationWarningHasRenderingObserver=Animation cannot be run on the compositor because the element has rendering observers (-moz-element or SVG clipping/masking) CompositorAnimationWarningHasCurrentColor=Animations of ‘background-color’ cannot be run on the compositor with ‘current-color’ keyframe. -## LOCALIZATION NOTE: Do not translate zoom, calc(), "transform", "transform-origin: 0 0" -ZoomPropertyWarning=This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. - ## LOCALIZATION NOTE(PrincipalWritingModePropagationWarning): ## Do not translate , , CSS, "writing-mode", "direction", "text-orientation", :root, and "The Principal Writing Mode" because they are technical terms. PrincipalWritingModePropagationWarning=When rendering the element, the used values of CSS properties “writing-mode”, “direction”, and “text-orientation” on the element are taken from the computed values of the element, not from the element’s own values. Consider setting these properties on the :root CSS pseudo-class. For more information see “The Principal Writing Mode” in https://www.w3.org/TR/css-writing-modes-3/#principal-flow diff --git a/layout/style/Loader.cpp b/layout/style/Loader.cpp index 082bd3683ce6..967ffca08e70 100644 --- a/layout/style/Loader.cpp +++ b/layout/style/Loader.cpp @@ -993,7 +993,6 @@ static void RecordUseCountersIfNeeded(Document* aDoc, return; } Servo_UseCounters_Merge(docCounters, sheetCounters); - aDoc->MaybeWarnAboutZoom(); } bool Loader::MaybePutIntoLoadsPerformed(SheetLoadData& aLoadData) {