Backed out 2 changesets (bug 1084183) for b2g crashes

Backed out changeset a7e75614e955 (bug 1084183)
Backed out changeset af96c149900b (bug 1084183)
This commit is contained in:
Phil Ringnalda 2014-11-16 20:21:55 -08:00
parent 89a0a8b4f6
commit 5cdbb8940e
6 changed files with 5 additions and 72 deletions

View File

@ -4871,12 +4871,8 @@ nsTextFrame::GetTextDecorations(
// In all modes, if we're on an inline-block or inline-table (or
// inline-stack, inline-box, inline-grid), we're done.
// If we're on a ruby frame other than ruby text container, we
// should continue.
uint8_t display = f->GetDisplay();
if (display != NS_STYLE_DISPLAY_INLINE &&
(!nsStyleDisplay::IsRubyDisplayType(display) ||
display == NS_STYLE_DISPLAY_RUBY_TEXT_CONTAINER) &&
nsStyleDisplay::IsDisplayTypeInlineOutside(display)) {
break;
}

View File

@ -43,9 +43,6 @@ include multicol3/reftest.list
# Text Level 3
# include text3/reftest.list
# Text Decoration Level 3
include text-decor-3/reftest.list
# Transforms
# include transforms/reftest.list

View File

@ -1 +0,0 @@
pref(layout.css.ruby.enabled,true) == ruby-text-decoration-01.html ruby-text-decoration-01-ref.html

View File

@ -1,27 +0,0 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>CSS Test: text-decoration on rubies</title>
<link rel="author" title="Xidorn Quan" href="http://www.upsuper.org/">
</head>
<style type="text/css">
ruby { display: ruby; }
rb { display: ruby-base; white-space: nowrap; }
rt { display: ruby-text; white-space: nowrap; }
p { line-height: 3em; }
span {
text-decoration: underline;
}
</style>
<body>
<p>
<ruby><rb><span></span></rb><rt>けい</rt
><rb><span></span></rb><rt>おう</rt
><rb><span></span></rb><rt></rt
><rb><span></span></rb><rt>じゅく</rt
><rb><span></span></rb><rt>だい</rt
><rb><span></span></rb><rt>がく</rt></ruby>
</p>
</body>
</html>

View File

@ -1,28 +0,0 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>CSS Test: text-decoration on rubies</title>
<link rel="author" title="Xidorn Quan" href="http://www.upsuper.org/">
<link rel="help" href="http://www.w3.org/TR/css-text-decor-3/#line-decoration">
</head>
<style type="text/css">
ruby { display: ruby; }
rb { display: ruby-base; white-space: nowrap; }
rt { display: ruby-text; white-space: nowrap; }
p { line-height: 3em; }
p {
text-decoration: underline;
}
</style>
<body>
<p>
<ruby><rb></rb><rt>けい</rt
><rb></rb><rt>おう</rt
><rb></rb><rt></rt
><rb></rb><rt>じゅく</rt
><rb></rb><rt>だい</rt
><rb></rb><rt>がく</rt></ruby>
</p>
</body>
</html>

View File

@ -2137,16 +2137,12 @@ struct nsStyleDisplay {
NS_STYLE_POSITION_STICKY == mPosition;
}
static bool IsRubyDisplayType(uint8_t aDisplay) {
return NS_STYLE_DISPLAY_RUBY == aDisplay ||
NS_STYLE_DISPLAY_RUBY_BASE == aDisplay ||
NS_STYLE_DISPLAY_RUBY_BASE_CONTAINER == aDisplay ||
NS_STYLE_DISPLAY_RUBY_TEXT == aDisplay ||
NS_STYLE_DISPLAY_RUBY_TEXT_CONTAINER == aDisplay;
}
bool IsRubyDisplayType() const {
return IsRubyDisplayType(mDisplay);
return NS_STYLE_DISPLAY_RUBY == mDisplay ||
NS_STYLE_DISPLAY_RUBY_BASE == mDisplay ||
NS_STYLE_DISPLAY_RUBY_BASE_CONTAINER == mDisplay ||
NS_STYLE_DISPLAY_RUBY_TEXT == mDisplay ||
NS_STYLE_DISPLAY_RUBY_TEXT_CONTAINER == mDisplay;
}
bool IsFlexOrGridDisplayType() const {