Skip to content

Commit

Permalink
Backed out 2 changesets (bug 1084183) for b2g crashes
Browse files Browse the repository at this point in the history
Backed out changeset a7e75614e955 (bug 1084183)
Backed out changeset af96c149900b (bug 1084183)
  • Loading branch information
philor committed Nov 17, 2014
1 parent 89a0a8b commit 5cdbb89
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 72 deletions.
4 changes: 0 additions & 4 deletions layout/generic/nsTextFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 0 additions & 3 deletions layout/reftests/w3c-css/submitted/reftest.list
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

14 changes: 5 additions & 9 deletions layout/style/nsStyleStruct.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5cdbb89

Please sign in to comment.