| 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 25 matching lines...) Expand all Loading... |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 class LayoutRubyRun; | 38 class LayoutRubyRun; |
| 39 | 39 |
| 40 class LayoutRubyBase final : public LayoutBlockFlow { | 40 class LayoutRubyBase final : public LayoutBlockFlow { |
| 41 public: | 41 public: |
| 42 ~LayoutRubyBase() override; | 42 ~LayoutRubyBase() override; |
| 43 static LayoutRubyBase* createAnonymous(Document*); | 43 static LayoutRubyBase* createAnonymous(Document*); |
| 44 | 44 |
| 45 const char* name() const override { return "LayoutRubyBase"; } | 45 const char* name() const override { return "LayoutRubyBase"; } |
| 46 char objectSize() const override { return sizeof(this); } |
| 46 | 47 |
| 47 bool isOfType(LayoutObjectType type) const override { | 48 bool isOfType(LayoutObjectType type) const override { |
| 48 return type == LayoutObjectRubyBase || LayoutBlockFlow::isOfType(type); | 49 return type == LayoutObjectRubyBase || LayoutBlockFlow::isOfType(type); |
| 49 } | 50 } |
| 50 | 51 |
| 51 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; | 52 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; |
| 52 | 53 |
| 53 private: | 54 private: |
| 54 LayoutRubyBase(); | 55 LayoutRubyBase(); |
| 55 | 56 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 67 | 68 |
| 68 // Allow LayoutRubyRun to manipulate the children within ruby bases. | 69 // Allow LayoutRubyRun to manipulate the children within ruby bases. |
| 69 friend class LayoutRubyRun; | 70 friend class LayoutRubyRun; |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutRubyBase, isRubyBase()); | 73 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutRubyBase, isRubyBase()); |
| 73 | 74 |
| 74 } // namespace blink | 75 } // namespace blink |
| 75 | 76 |
| 76 #endif // LayoutRubyBase_h | 77 #endif // LayoutRubyBase_h |
| OLD | NEW |