in some cases, it was impossible to unbold selection in CSS mode, b=167510, r=brade, sr=bzbarsky

This commit is contained in:
glazman%netscape.com 2002-09-11 09:25:47 +00:00
parent 1d4075b29f
commit ccbe3b90f8
2 changed files with 2 additions and 1 deletions

View File

@ -1059,6 +1059,7 @@ nsHTMLCSSUtils::GetCSSEquivalentToHTMLInlineStyleSet(nsIDOMNode * aNode,
nsresult res = GetElementContainerOrSelf(aNode, getter_AddRefs(theElement));
if (NS_FAILED(res)) return res;
nsCOMPtr<nsIDOMNode> theNode = do_QueryInterface(theElement);
aValueString.Truncate();
if (theElement && IsCSSEditableProperty(theNode, aHTMLProperty, aAttribute)) {
// Yes, the requested HTML style has a CSS equivalence in this implementation

View File

@ -1119,7 +1119,7 @@ nsHTMLEditor::GetInlinePropertyBase(nsIAtom *aProperty,
mHTMLCSSUtils->IsCSSEditableProperty(node, aProperty, aAttribute)) {
// the HTML styles defined by aProperty/aAttribute has a CSS equivalence
// in this implementation for node; let's check if it carries those css styles
if (aValue) firstValue.Assign(*aValue);
if (aValue) theValue.Assign(*aValue);
mHTMLCSSUtils->IsCSSEquivalentToHTMLInlineStyleSet(node, aProperty, aAttribute,
isSet, theValue,
COMPUTED_STYLE_TYPE);