Open Bug 746165 Opened 12 years ago Updated 3 years ago

Remove all vestiges of cmd_backgroundColor

Categories

(Core :: DOM: Editor, enhancement, P5)

enhancement

Tracking

()

People

(Reporter: ayg, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

We would like to remove cmd_backgroundColor completely, but comm-central is still using it.  See bug 205485 comment 10.  Once that's fixed (followup bug to be filed shortly), my earlier patch from that bug can be applied to remove all the remnants of the command, since it's no longer web-accessible.
Depends on: 746166
Attached patch Patch v1 (obsolete) — Splinter Review
Obviously, I won't land this till bug 746166 is fixed.  Try run: https://tbpl.mozilla.org/?tree=Try&rev=c752e87c0c79
Attachment #624694 - Flags: review?(ehsan)
Comment on attachment 624694 [details] [diff] [review]
Patch v1

Review of attachment 624694 [details] [diff] [review]:
-----------------------------------------------------------------

r=me with the below comment addressed.

::: editor/idl/nsIHTMLEditor.idl
@@ -347,5 @@
> -   * getFontColorState returns what font face is in the selection.
> -   * @param aMixed     True if there is more than one font color
> -   * @return           Color string. "" is returned for none.
> -   */
> -  AString getBackgroundColorState(out boolean aMixed);

Please revise the IID of nsIHTMLEditor.
Attachment #624694 - Flags: review?(ehsan) → review+
Blech, I always forget that!
Comment on attachment 624694 [details] [diff] [review]
Patch v1

>-  NS_REGISTER_ONE_COMMAND(nsBackgroundColorStateCommand, "cmd_backgroundColor");
The patch in bug 746166 removes the use of cmd_backgroundColor...

>-  AString getBackgroundColorState(out boolean aMixed);
... which is the only consumer of getBackgroundColorState...

>-  void setBackgroundColor(in AString aColor);
... however it doesn't remove Composer's use of setBackgroundColor.
Sad -- only -119 lines now.  Oh well, still an improvement.  Does this work for you?  (Carrying forward Ehsan's review.)

New try run to be on the safe side: https://tbpl.mozilla.org/?tree=Try&rev=f72b65268967
Attachment #624694 - Attachment is obsolete: true
Attachment #625462 - Flags: review+
There's a bug in my patch for bug 746166, I'm not sure if it's fixable...
No longer blocks: 205485
No longer depends on: 746166
Blocks: 205485
Depends on: 746166
It turns out that I didn't properly replace GetCSSBackgroundColorState...
Assignee: ayg → nobody
Blocks: 861446

Bulk-downgrade of unassigned, untouched DOM/Storage bug's priority.

If you have reason to believe, this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: