mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backed out changeset dc155e427213 (bug 1141017)
This commit is contained in:
parent
f628f71b6d
commit
ef31ce62ed
@ -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");
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user