⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 185756 in webkit


Ignore:
Timestamp:
Jun 19, 2015, 11:18:05 AM (11 years ago)
Author:
Alan Bujtas
Message:

RenderRubyText requires RenderRubyRun parent.
https://bugs.webkit.org/show_bug.cgi?id=146148
rdar://problem/21423319

Reviewed by Simon Fraser.

RenderRubyText expects its parent to be RenderRubyRun and since a
a non-block <rt> requires anonymous wrapper, we should check whether
the display type is actually block.

Source/WebCore:

Test: fast/ruby/crash-when-ruby-rt-is-non-block.html

  • html/RubyTextElement.cpp:

(WebCore::RubyTextElement::createElementRenderer):

LayoutTests:

  • fast/ruby/crash-when-ruby-rt-is-non-block-expected.txt: Added.
  • fast/ruby/crash-when-ruby-rt-is-non-block.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r185744 r185756  
     12015-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
    1162015-06-19  Csaba Osztrogonác  <ossy@webkit.org>
    217
  • trunk/Source/WebCore/ChangeLog

    r185754 r185756  
     12015-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
    1182015-06-19  Jeremy Jones  <jeremyj@apple.com>
    219
  • trunk/Source/WebCore/html/RubyTextElement.cpp

    r183160 r185756  
    4949{
    5050    // RenderRubyText requires its parent to be RenderRubyRun.
    51     if (isRuby(insertionPosition.parent()))
     51    if (isRuby(insertionPosition.parent()) && style.get().display() == BLOCK)
    5252        return createRenderer<RenderRubyText>(*this, WTF::move(style));
    5353    return HTMLElement::createElementRenderer(WTF::move(style), insertionPosition);
Note: See TracChangeset for help on using the changeset viewer.