Closed
Bug 106274
Opened 23 years ago
Closed 23 years ago
Colors is not correct on toolbar colorpicker swatch when selection is collapsed (at caret)
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
VERIFIED
FIXED
mozilla0.9.7
People
(Reporter: tracy, Assigned: mozeditor)
References
Details
(Keywords: regression, Whiteboard: EDITORBASE; fixinhand; need r=, sr=)
Attachments
(1 file)
6.33 KB,
patch
|
cmanske
:
review+
kinmoz
:
superreview+
|
Details | Diff | Splinter Review |
seen on Linux commercial build 2001-10-23-08-trunk
(this is the only build out so far this morning. I will update the Platform/OS
if it shows on others)
-Open composer
notice the interlinked squares icon that denotes the active colors of text and
background. They are blank(colorless).
-Click on the icon and selected and accept a color for a font.
The color for the font is active but the toolbar icon doesn't change to the
selected color as expected.
Comment 1•23 years ago
|
||
I've also noticed this. Seems we aren't getting the correct color at the caret
location. It does display the color when you select text that has a color set.
I believe it's an editor core bug, but I'll take it for now to debug it more.
Assignee: syd → cmanske
Summary: Colors missing from icon in font toolbar → Colors missing from icon in font toolbar when selection is collapsed (at caret)
Target Milestone: --- → mozilla0.9.6
Updated•23 years ago
|
Status: NEW → ASSIGNED
Comment 2•23 years ago
|
||
just wondering: what theme is this seen in --or is it in both...?
Reporter | ||
Comment 3•23 years ago
|
||
Sarah, you can't switch from either theme to the other.
Comment 4•23 years ago
|
||
erk, you're right! sorry, forgot about bug 106273 [but that has an upcoming fix,
at least]...
Comment 5•23 years ago
|
||
Themes don't have anything to do with this.
nsHTMLEditor::GetFontColorState() (which calls GetInlinePropertyBase())
is returning an empty string for the color rather than the actual color at the
caret.
Assignee: cmanske → jfrancis
Severity: normal → major
Status: ASSIGNED → NEW
Component: Editor: Composer → Editor: Core
Assignee | ||
Updated•23 years ago
|
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Comment 6•23 years ago
|
||
Colors don't show at all now!
Summary: Colors missing from icon in font toolbar when selection is collapsed (at caret) → Colors missing from icon in font toolbar
Comment 7•23 years ago
|
||
*** Bug 105534 has been marked as a duplicate of this bug. ***
Keywords: nsbeta1+,
regression
Comment 9•23 years ago
|
||
is there a bug for bold and other styles not working correctly? should this bug
be generalized?
OS: Linux → All
Hardware: PC → All
Assignee | ||
Comment 10•23 years ago
|
||
Brade, what do you mean? There is a bug for the whole toolbar not showing state
- Waterson has a fix for that (already in?).
Comment 11•23 years ago
|
||
Added depends, which currently masks this bug. But underlying problem still
exists -- will have to wait for fix to bug 101982 to investigate this more.
Comment 12•23 years ago
|
||
Thanks to a fix to bug 101982, this works for me on Win 2k using build
2001111503 and Mac OS 9.1 using build 2001111504.
Resolving WORKSFORME.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
Reporter | ||
Comment 13•23 years ago
|
||
verified on commercial builds:
windows 2001-11-15-05-trunk
linux 2001-11-15-06-trunk
mac 2001-11-15-04-trunk
the color is back in the icon
but the icon is not maintaining the proper color. I believe that is addressed
bug 101982?
Status: RESOLVED → VERIFIED
Comment 14•23 years ago
|
||
I changed the summary to better describe what I saw.
This bug still exists *when selection is collapsed*.
Status: VERIFIED → REOPENED
Resolution: WORKSFORME → ---
Comment 15•23 years ago
|
||
Really changing the summary this time.
Summary: Colors missing from icon in font toolbar → Colors is not correct on toolbar colorpicker swatch when selection is collapsed (at caret)
Assignee | ||
Comment 16•23 years ago
|
||
Most of the diff is just some extraneous comment removal. I also had to update
the signature of a protected method so that caller/callee agree on string
types. But the real fix is just to pass along attribute, value, and retrieved
value when making one of the inline style calls.
Assignee | ||
Updated•23 years ago
|
Whiteboard: EDITORBASE; fixinhand; need r=, sr=
Comment 17•23 years ago
|
||
This works for me on Win 2k using build 2001112603. Is anyone still seeing
this problem?
Comment 18•23 years ago
|
||
. . . but the problem described in 105534 (which was duped to this one) is
still happening.
Comment 19•23 years ago
|
||
Comment on attachment 59082 [details] [diff] [review]
diffs for editor/libeditor
r=cmanske
So did you eliminate the "mTypeInState" stuff in a different bugfix? Not clear
to me how you could remove all the code you did! I did test it and it does
work.
Attachment #59082 -
Flags: review+
Comment 20•23 years ago
|
||
michael wendell--if this bug is resolved fixed, and the duplicate bug still is a
problem, then reopen the duplicate. However, *please* wait for this bug to be
resolved before reopening (unless you've tested the patch).
Comment 21•23 years ago
|
||
Noticed differences in the way that the color picker reacts to the tool icon
depending upon where you access it from.
Text Color Icon (toolbar)- The toolbar icon changes to whatever color you choose
but as soon as you stop typing it reverts back to black (default) - it will
still type in the color font you selected. Also if you go back into the color
picker the last color you selected is no longer highlighted.
Background Color Icon (toolbar) - Acts as you would expect it to. The toolbar
icon changes to the color you choose and remains that color until you select
another color in the color picker, also if you go back into the color picker the
last color you selected is still highlighted.
Accessing from Format > Page Colors and Background
Normal Text - The toolbar icon does not change color (remains the default black)
but it will change the normal text and any new text to the color selected. Also
if you go back into the color picker the last color you selected is still
highlighted.
Background - The toolbar icon does not display the color you selected until you
make some change in the document body (eg. type new text, highlight text, or
just click the mouse in the document body). Otherwise it acts as expected.
Comment 22•23 years ago
|
||
Comment on attachment 59082 [details] [diff] [review]
diffs for editor/libeditor
sr=kin@netscape.com
Attachment #59082 -
Flags: superreview+
Assignee | ||
Comment 23•23 years ago
|
||
fix on trunk
Status: REOPENED → RESOLVED
Closed: 23 years ago → 23 years ago
Resolution: --- → FIXED
Comment 24•23 years ago
|
||
tracy please verify on latest trunk build..thanks.
Reporter | ||
Comment 25•23 years ago
|
||
verified, this has been working on the trunk for about two weeks. (comment #13)
it is still functioning correctly in the latest builds
Status: RESOLVED → VERIFIED
Comment 26•23 years ago
|
||
*** Bug 112633 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•