| 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 26 matching lines...) Expand all Loading... |
| 37 virtual ~RenderQuote(); | 37 virtual ~RenderQuote(); |
| 38 void attachQuote(); | 38 void attachQuote(); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 void detachQuote(); | 41 void detachQuote(); |
| 42 | 42 |
| 43 virtual void willBeDestroyed() OVERRIDE; | 43 virtual void willBeDestroyed() OVERRIDE; |
| 44 virtual const char* renderName() const OVERRIDE { return "RenderQuote"; }; | 44 virtual const char* renderName() const OVERRIDE { return "RenderQuote"; }; |
| 45 virtual bool isQuote() const OVERRIDE { return true; }; | 45 virtual bool isQuote() const OVERRIDE { return true; }; |
| 46 virtual PassRefPtr<StringImpl> originalText() const OVERRIDE; | 46 virtual PassRefPtr<StringImpl> originalText() const OVERRIDE; |
| 47 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; | 47 virtual void styleDidChange(StyleDifference, const RenderStyle*, const Style
ChangeState&) OVERRIDE; |
| 48 virtual void willBeRemovedFromTree() OVERRIDE; | 48 virtual void willBeRemovedFromTree() OVERRIDE; |
| 49 | 49 |
| 50 const QuotesData* quotesData() const; | 50 const QuotesData* quotesData() const; |
| 51 void updateDepth(); | 51 void updateDepth(); |
| 52 bool isAttached() { return m_attached; } | 52 bool isAttached() { return m_attached; } |
| 53 | 53 |
| 54 QuoteType m_type; | 54 QuoteType m_type; |
| 55 int m_depth; | 55 int m_depth; |
| 56 RenderQuote* m_next; | 56 RenderQuote* m_next; |
| 57 RenderQuote* m_previous; | 57 RenderQuote* m_previous; |
| 58 bool m_attached; | 58 bool m_attached; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 inline RenderQuote* toRenderQuote(RenderObject* object) | 61 inline RenderQuote* toRenderQuote(RenderObject* object) |
| 62 { | 62 { |
| 63 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isQuote()); | 63 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isQuote()); |
| 64 return static_cast<RenderQuote*>(object); | 64 return static_cast<RenderQuote*>(object); |
| 65 } | 65 } |
| 66 | 66 |
| 67 // This will catch anyone doing an unnecessary cast. | 67 // This will catch anyone doing an unnecessary cast. |
| 68 void toRenderQuote(const RenderQuote*); | 68 void toRenderQuote(const RenderQuote*); |
| 69 | 69 |
| 70 } // namespace WebCore | 70 } // namespace WebCore |
| 71 | 71 |
| 72 #endif // RenderQuote_h | 72 #endif // RenderQuote_h |
| OLD | NEW |