Backed out changeset dc155e427213 (bug 1141017)

This commit is contained in:
Carsten "Tomcat" Book 2015-03-12 11:41:52 +01:00
parent f628f71b6d
commit ef31ce62ed
2 changed files with 0 additions and 24 deletions

View File

@ -163,29 +163,6 @@ nsresult TextEditorTest::TestTextProperties()
bool any = false;
bool all = false;
bool first=false;
bool mixed=false;
nsString fontFace;
// test for bug 1141017
printf("set the whole first text node to serif\n");
result = htmlEditor->SetInlineProperty(nsGkAtoms::font,
NS_LITERAL_STRING("face"),
NS_LITERAL_STRING("serif"));
TEST_RESULT(result);
result = htmlEditor->GetFontFaceState(&mixed, fontFace);
TEST_RESULT(result);
NS_ASSERTION(mixed==false,"mixed should be false");
NS_ASSERTION(fontFace.IsEmpty(),"font face should be empty");
printf("set the whole first text node to sans-serif\n");
result = htmlEditor->SetInlineProperty(nsGkAtoms::font,
NS_LITERAL_STRING("face"),
NS_LITERAL_STRING("sans-serif"));
TEST_RESULT(result);
result = htmlEditor->GetFontFaceState(&mixed, fontFace);
TEST_RESULT(result);
NS_ASSERTION(mixed==false,"mixed should be false");
NS_ASSERTION(fontFace.IsEmpty(),"font face should be empty");
// test for bug 1140105
printf("set the whole first text node to cursive\n");

View File

@ -1171,7 +1171,6 @@ nsHTMLCSSUtils::IsCSSEquivalentToHTMLInlineStyleSet(nsIDOMNode *aNode,
nsAutoString valueStringLower;
ToLowerCase(valueString, valueStringLower);
aIsSet = !valueStringLower.EqualsLiteral("monospace") &&
!valueStringLower.EqualsLiteral("sans-serif") &&
!valueStringLower.EqualsLiteral("serif");
}
return NS_OK;