Open
Bug 1386504
Opened 9 years ago
Updated 3 years ago
Members of HTMLEditor should be sorted for memory alignment
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: masayuki, Unassigned)
References
Details
https://searchfox.org/mozilla-central/rev/bbc1c59e460a27b20929b56489e2e55438de81fa/editor/libeditor/HTMLEditRules.h#431-449
> protected:
> HTMLEditor* mHTMLEditor;
> RefPtr<nsRange> mDocChangeRange;
> bool mListenerEnabled;
> bool mReturnInEmptyLIKillsList;
> bool mDidDeleteSelection;
> bool mDidRangedDelete;
> bool mRestoreContentEditableCount;
> RefPtr<nsRange> mUtilRange;
> // Need to remember an int across willJoin/didJoin...
> uint32_t mJoinOffset;
> nsCOMPtr<Element> mNewBlock;
> RefPtr<RangeItem> mRangeItem;
>
> // XXX In strict speaking, mCachedStyles isn't enough to cache inline styles
> // because inline style can be specified with "style" attribute and/or
> // CSS in <style> elements or CSS files. So, we need to look for better
> // implementation about this.
> StyleCache mCachedStyles[SIZE_STYLE_TABLE];
Perhaps, we can reduce 8 bytes on x64 build.
FYI: The patch for bug 1386480 will touch one of the members.
Updated•9 years ago
|
Priority: -- → P3
Updated•3 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•