| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Nokia Inc. All rights reserved. | 2 * Copyright (C) 2011 Nokia Inc. All rights reserved. |
| 3 * Copyright (C) 2012 Google Inc. All rights reserved. | 3 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 const char* name() const override { return "LayoutQuote"; } | 47 const char* name() const override { return "LayoutQuote"; } |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 void detachQuote(); | 50 void detachQuote(); |
| 51 | 51 |
| 52 void willBeDestroyed() override; | 52 void willBeDestroyed() override; |
| 53 bool isOfType(LayoutObjectType type) const override { | 53 bool isOfType(LayoutObjectType type) const override { |
| 54 return type == LayoutObjectQuote || LayoutInline::isOfType(type); | 54 return type == LayoutObjectQuote || LayoutInline::isOfType(type); |
| 55 } | 55 } |
| 56 char objectSize() const override { return sizeof(this); } |
| 56 void styleDidChange(StyleDifference, const ComputedStyle*) override; | 57 void styleDidChange(StyleDifference, const ComputedStyle*) override; |
| 57 void willBeRemovedFromTree() override; | 58 void willBeRemovedFromTree() override; |
| 58 | 59 |
| 59 String computeText() const; | 60 String computeText() const; |
| 60 void updateText(); | 61 void updateText(); |
| 61 const QuotesData* quotesData() const; | 62 const QuotesData* quotesData() const; |
| 62 void updateDepth(); | 63 void updateDepth(); |
| 63 bool isAttached() { return m_attached; } | 64 bool isAttached() { return m_attached; } |
| 64 | 65 |
| 65 LayoutTextFragment* findFragmentChild() const; | 66 LayoutTextFragment* findFragmentChild() const; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 95 | 96 |
| 96 // Cached text for this quote. | 97 // Cached text for this quote. |
| 97 String m_text; | 98 String m_text; |
| 98 }; | 99 }; |
| 99 | 100 |
| 100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote()); | 101 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote()); |
| 101 | 102 |
| 102 } // namespace blink | 103 } // namespace blink |
| 103 | 104 |
| 104 #endif // LayoutQuote_h | 105 #endif // LayoutQuote_h |
| OLD | NEW |