diff --git a/editor/libeditor/EditorBase.cpp b/editor/libeditor/EditorBase.cpp index e51ea2a68f84..c0bf59b3a6c6 100644 --- a/editor/libeditor/EditorBase.cpp +++ b/editor/libeditor/EditorBase.cpp @@ -6168,7 +6168,7 @@ EditorBase::AutoEditActionDataSetter::AutoEditActionDataSetter( ->GetSelectedRangeItemForTopLevelEditSubAction(); mTopLevelEditSubActionData.mChangedRange = mEditorBase.AsHTMLEditor()->GetChangedRangeForTopLevelEditSubAction(); - mTopLevelEditSubActionData.mCachedInlineStyles.emplace(); + mTopLevelEditSubActionData.mCachedPendingStyles.emplace(); } } mEditorBase.mEditActionData = this; diff --git a/editor/libeditor/EditorBase.h b/editor/libeditor/EditorBase.h index b1a1294155fd..9cd575086d87 100644 --- a/editor/libeditor/EditorBase.h +++ b/editor/libeditor/EditorBase.h @@ -15,7 +15,7 @@ #include "mozilla/Likely.h" // for MOZ_UNLIKELY, MOZ_LIKELY #include "mozilla/Maybe.h" // for Maybe #include "mozilla/OwningNonNull.h" // for OwningNonNull -#include "mozilla/TypeInState.h" // for PropItem, StyleCache +#include "mozilla/PendingStyles.h" // for PendingStyle, PendingStyleCache #include "mozilla/RangeBoundary.h" // for RawRangeBoundary, RangeBoundary #include "mozilla/SelectionState.h" // for RangeUpdater, etc. #include "mozilla/StyleSheet.h" // for StyleSheet @@ -797,14 +797,14 @@ class EditorBase : public nsIEditor, // Computing changed range while we're handling sub actions. RefPtr mChangedRange; - // XXX In strict speaking, mCachedInlineStyles isn't enough to cache inline - // styles because inline style can be specified with "style" attribute - // and/or CSS in