mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
in some cases, it was impossible to unbold selection in CSS mode, b=167510, r=brade, sr=bzbarsky
This commit is contained in:
parent
1d4075b29f
commit
ccbe3b90f8
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user