| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 public: | 39 public: |
| 40 RenderRubyBase(Node*); | 40 RenderRubyBase(Node*); |
| 41 virtual ~RenderRubyBase(); | 41 virtual ~RenderRubyBase(); |
| 42 | 42 |
| 43 virtual const char* renderName() const { return "RenderRubyBase (anonymous)"
; } | 43 virtual const char* renderName() const { return "RenderRubyBase (anonymous)"
; } |
| 44 | 44 |
| 45 virtual bool isRubyBase() const { return true; } | 45 virtual bool isRubyBase() const { return true; } |
| 46 | 46 |
| 47 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; | 47 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const; |
| 48 | 48 |
| 49 void splitToLeft(RenderBlock* leftBase, RenderObject* beforeChild); | 49 private: |
| 50 void mergeWithRight(RenderBlock* rightBase); | 50 bool hasOnlyWrappedInlineChildren(RenderObject* beforeChild = 0) const; |
| 51 |
| 52 void moveChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChild = 0)
; |
| 53 void moveInlineChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChil
d = 0); |
| 54 void moveBlockChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChild
= 0); |
| 55 void mergeBlockChildren(RenderRubyBase* toBase, RenderObject* fromBeforeChil
d = 0); |
| 56 |
| 57 // Allow RenderRubyRun to manipulate the children within ruby bases. |
| 58 friend class RenderRubyRun; |
| 51 }; | 59 }; |
| 52 | 60 |
| 53 } // namespace WebCore | 61 } // namespace WebCore |
| 54 | 62 |
| 55 #endif // RenderRubyBase_h | 63 #endif // RenderRubyBase_h |
| OLD | NEW |