in some cases, it was impossible to unbold selection in CSS mode, b=167510, r=brade, sr=bzbarsky
git-svn-id: svn://10.0.0.236/trunk@129249 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user