Changeset 52184 in webkit
- Timestamp:
- Dec 15, 2009 6:02:12 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r52174 r52184 1 2009-12-13 Roland Steiner <rolandsteiner@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Fix crash when encountering illegal HTML within a continuation inside <ruby>. 6 (https://bugs.webkit.org/show_bug.cgi?id=32316) 7 8 Avoid having the anonymous blocks utilized in the ruby renderers being 9 re-used as continuation blocks. 10 Avoid having ruby runs collected as "leftover blocks". 11 12 * fast/ruby/ruby-illegal-expected.txt: Added. 13 * fast/ruby/ruby-illegal.html: Added. 14 1 15 2009-12-15 Dan Bernstein <mitz@apple.com> 2 16 -
trunk/WebCore/ChangeLog
r52177 r52184 1 2009-12-13 Roland Steiner <rolandsteiner@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 Fix crash when encountering illegal HTML within a continuation inside <ruby>. 6 (https://bugs.webkit.org/show_bug.cgi?id=32316) 7 8 Avoid having the anonymous blocks utilized in the ruby renderers being 9 re-used as continuation blocks. 10 Avoid having ruby runs collected as "leftover blocks". 11 12 Test: fast/ruby/ruby-illegal.html 13 14 * rendering/RenderRuby.h: 15 (WebCore::RenderRubyAsInline::removeLeftoverAnonymousBlock): mustn't be called 16 (WebCore::RenderRubyAsInline::isRuby): made private 17 (WebCore::RenderRubyAsInline::renderName): made private 18 (WebCore::RenderRubyAsInline::createsAnonymousWrapper): return true 19 (WebCore::RenderRubyAsBlock::removeLeftoverAnonymousBlock): mustn't be called 20 (WebCore::RenderRubyAsBlock::isRuby): made private 21 (WebCore::RenderRubyAsBlock::renderName): made private 22 (WebCore::RenderRubyAsBlock::createsAnonymousWrapper): return true 23 * rendering/RenderRubyRun.h: 24 (WebCore::RenderRubyRun::removeLeftoverAnonymousBlock): avoid 25 (WebCore::RenderRubyRun::isRubyRun): made private 26 (WebCore::RenderRubyRun::renderName): made private 27 (WebCore::RenderRubyRun::createsAnonymousWrapper): return true 28 1 29 2009-12-15 Nate Chapin <japhet@chromium.org> 2 30 -
trunk/WebCore/rendering/RenderRuby.h
r50397 r52184 55 55 virtual ~RenderRubyAsInline(); 56 56 57 virtual const char* renderName() const { return "RenderRuby (inline)"; }58 59 virtual bool isRuby() const { return true; }60 61 57 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; 62 58 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); 63 59 virtual void removeChild(RenderObject* child); 60 61 private: 62 virtual bool isRuby() const { return true; } 63 virtual const char* renderName() const { return "RenderRuby (inline)"; } 64 virtual bool createsAnonymousWrapper() const { return true; } 65 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { ASSERT_NOT_REACHED(); } 64 66 }; 65 67 … … 70 72 virtual ~RenderRubyAsBlock(); 71 73 72 virtual const char* renderName() const { return "RenderRuby (block)"; }73 74 virtual bool isRuby() const { return true; }75 76 74 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; 77 75 virtual void addChild(RenderObject* child, RenderObject* beforeChild = 0); 78 76 virtual void removeChild(RenderObject* child); 77 78 private: 79 virtual bool isRuby() const { return true; } 80 virtual const char* renderName() const { return "RenderRuby (block)"; } 81 virtual bool createsAnonymousWrapper() const { return true; } 82 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { ASSERT_NOT_REACHED(); } 79 83 }; 80 84 -
trunk/WebCore/rendering/RenderRubyRun.h
r51169 r52184 49 49 virtual void destroy(); 50 50 51 virtual const char* renderName() const { return "RenderRubyRun (anonymous)"; }52 53 virtual bool isRubyRun() const { return true; }54 55 51 bool hasRubyText() const; 56 52 bool hasRubyBase() const; … … 71 67 protected: 72 68 RenderRubyBase* createRubyBase() const; 73 69 74 70 private: 71 virtual bool isRubyRun() const { return true; } 72 virtual const char* renderName() const { return "RenderRubyRun (anonymous)"; } 73 virtual bool createsAnonymousWrapper() const { return true; } 74 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } 75 75 76 bool m_beingDestroyed; 76 77 };
Note: See TracChangeset
for help on using the changeset viewer.