Closed
Bug 1435149
Opened 6 years ago
Closed 6 years ago
some methods in CSSEditUtils should be static method
Categories
(Core :: DOM: Editor, enhancement, P3)
Core
DOM: Editor
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: m_kato, Assigned: m_kato)
Details
Attachments
(2 files)
No description provided.
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 3•6 years ago
|
||
mozreview-review |
Comment on attachment 8947743 [details] Bug 1435149 - Part 1. Change some methods to static or const method in CSSEditUtils. https://reviewboard.mozilla.org/r/217442/#review223234 ::: editor/libeditor/CSSEditUtils.h:234 (Diff revision 1) > - bool HaveCSSEquivalentStyles(nsINode& aNode, > + static bool HaveCSSEquivalentStyles(nsINode& aNode, > - nsAtom* aProperty, > + nsAtom* aProperty, > - nsAtom* aAttribute, > + nsAtom* aAttribute, > - StyleType aStyleType); > + StyleType aStyleType); nit: Looks you added one space redundantly. Please check it before landing. ::: editor/libeditor/CSSEditUtils.h:346 (Diff revision 1) > - already_AddRefed<nsComputedDOMStyle> GetComputedStyle(dom::Element* aElement); > + static already_AddRefed<nsComputedDOMStyle> GetComputedStyle( > + dom::Element* aElement); According to other header files, in this case, static already_AdRefed<nsComputedDOMStyle> GetComputedStyle(dom::Element* aElement); is usual style. ::: editor/libeditor/CSSEditUtils.h:373 (Diff revision 1) > - void BuildCSSDeclarations(nsTArray<nsAtom*>& aPropertyArray, > + static void BuildCSSDeclarations(nsTArray<nsAtom*>& aPropertyArray, > - nsTArray<nsString>& cssValueArray, > + nsTArray<nsString>& cssValueArray, > - const CSSEquivTable* aEquivTable, > + const CSSEquivTable* aEquivTable, > - const nsAString* aValue, > + const nsAString* aValue, > - bool aGetOrRemoveRequest); > + bool aGetOrRemoveRequest); nit: Looks you added one more space here too.
Attachment #8947743 -
Flags: review?(masayuki) → review+
Comment 4•6 years ago
|
||
mozreview-review |
Comment on attachment 8947744 [details] Bug 1435149 - Part 2. Use scope resolution operator for CSSEditUtils's caller. https://reviewboard.mozilla.org/r/217444/#review223236
Attachment #8947744 -
Flags: review?(masayuki) → review+
Pushed by m_kato@ga2.so-net.ne.jp: https://hg.mozilla.org/integration/mozilla-inbound/rev/b11498239be6 Part 1. Change some methods to static or const method in CSSEditUtils. r=masayuki https://hg.mozilla.org/integration/mozilla-inbound/rev/cc2e682094fb Part 2. Use scope resolution operator for CSSEditUtils's caller. r=masayuki
Comment 6•6 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/b11498239be6 https://hg.mozilla.org/mozilla-central/rev/cc2e682094fb
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•