| 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 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 #include "QuotesData.h" | 25 #include "QuotesData.h" |
| 26 #include "RenderStyle.h" | 26 #include "RenderStyle.h" |
| 27 #include "RenderStyleConstants.h" | 27 #include "RenderStyleConstants.h" |
| 28 #include "RenderText.h" | 28 #include "RenderText.h" |
| 29 | 29 |
| 30 namespace WebCore { | 30 namespace WebCore { |
| 31 | 31 |
| 32 class Document; | 32 class Document; |
| 33 | 33 |
| 34 class RenderQuote : public RenderText { | 34 class RenderQuote FINAL : public RenderText { |
| 35 public: | 35 public: |
| 36 RenderQuote(Document*, const QuoteType); | 36 RenderQuote(Document*, const QuoteType); |
| 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"; }; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 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 |