Changeset 185756 in webkit
- Timestamp:
- Jun 19, 2015, 11:18:05 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/fast/ruby/crash-when-ruby-rt-is-non-block-expected.txt (added)
-
LayoutTests/fast/ruby/crash-when-ruby-rt-is-non-block.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/html/RubyTextElement.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r185744 r185756 1 2015-06-19 Zalan Bujtas <zalan@apple.com> 2 3 RenderRubyText requires RenderRubyRun parent. 4 https://bugs.webkit.org/show_bug.cgi?id=146148 5 rdar://problem/21423319 6 7 Reviewed by Simon Fraser. 8 9 RenderRubyText expects its parent to be RenderRubyRun and since a 10 a non-block <rt> requires anonymous wrapper, we should check whether 11 the display type is actually block. 12 13 * fast/ruby/crash-when-ruby-rt-is-non-block-expected.txt: Added. 14 * fast/ruby/crash-when-ruby-rt-is-non-block.html: Added. 15 1 16 2015-06-19 Csaba Osztrogonác <ossy@webkit.org> 2 17 -
trunk/Source/WebCore/ChangeLog
r185754 r185756 1 2015-06-19 Zalan Bujtas <zalan@apple.com> 2 3 RenderRubyText requires RenderRubyRun parent. 4 https://bugs.webkit.org/show_bug.cgi?id=146148 5 rdar://problem/21423319 6 7 Reviewed by Simon Fraser. 8 9 RenderRubyText expects its parent to be RenderRubyRun and since a 10 a non-block <rt> requires anonymous wrapper, we should check whether 11 the display type is actually block. 12 13 Test: fast/ruby/crash-when-ruby-rt-is-non-block.html 14 15 * html/RubyTextElement.cpp: 16 (WebCore::RubyTextElement::createElementRenderer): 17 1 18 2015-06-19 Jeremy Jones <jeremyj@apple.com> 2 19 -
trunk/Source/WebCore/html/RubyTextElement.cpp
r183160 r185756 49 49 { 50 50 // RenderRubyText requires its parent to be RenderRubyRun. 51 if (isRuby(insertionPosition.parent()) )51 if (isRuby(insertionPosition.parent()) && style.get().display() == BLOCK) 52 52 return createRenderer<RenderRubyText>(*this, WTF::move(style)); 53 53 return HTMLElement::createElementRenderer(WTF::move(style), insertionPosition);
Note:
See TracChangeset
for help on using the changeset viewer.