diff --git a/editor/libeditor/EditorBase.h b/editor/libeditor/EditorBase.h index e67cf01a7b68..53d47b7d5e85 100644 --- a/editor/libeditor/EditorBase.h +++ b/editor/libeditor/EditorBase.h @@ -12,6 +12,7 @@ #include "mozilla/Maybe.h" // for Maybe #include "mozilla/OwningNonNull.h" // for OwningNonNull #include "mozilla/PresShell.h" // for PresShell +#include "mozilla/TypeInState.h" // for PropItem, StyleCache #include "mozilla/RangeBoundary.h" // for RawRangeBoundary, RangeBoundary #include "mozilla/SelectionState.h" // for RangeUpdater, etc. #include "mozilla/StyleSheet.h" // for StyleSheet @@ -619,6 +620,12 @@ class EditorBase : public nsIEditor, // the range while we're changing the DOM tree. RefPtr mSelectedRange; + // 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