Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: Source/core/rendering/RenderQuote.h

Issue 423093002: Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add more trace Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 17 matching lines...) Expand all
28 #include "core/rendering/style/RenderStyleConstants.h" 28 #include "core/rendering/style/RenderStyleConstants.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class Document; 32 class Document;
33 33
34 class RenderQuote FINAL : public RenderInline { 34 class RenderQuote FINAL : public RenderInline {
35 public: 35 public:
36 RenderQuote(Document*, const QuoteType); 36 RenderQuote(Document*, const QuoteType);
37 virtual ~RenderQuote(); 37 virtual ~RenderQuote();
38 virtual void trace(Visitor*) OVERRIDE;
38 void attachQuote(); 39 void attachQuote();
39 40
40 private: 41 private:
41 void detachQuote(); 42 void detachQuote();
42 43
43 virtual void willBeDestroyed() OVERRIDE; 44 virtual void willBeDestroyed() OVERRIDE;
44 virtual const char* renderName() const OVERRIDE { return "RenderQuote"; }; 45 virtual const char* renderName() const OVERRIDE { return "RenderQuote"; };
45 virtual bool isQuote() const OVERRIDE { return true; }; 46 virtual bool isQuote() const OVERRIDE { return true; };
46 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE; 47 virtual void styleDidChange(StyleDifference, const RenderStyle*) OVERRIDE;
47 virtual void willBeRemovedFromTree() OVERRIDE; 48 virtual void willBeRemovedFromTree() OVERRIDE;
48 49
49 String computeText() const; 50 String computeText() const;
50 void updateText(); 51 void updateText();
51 const QuotesData* quotesData() const; 52 const QuotesData* quotesData() const;
52 void updateDepth(); 53 void updateDepth();
53 bool isAttached() { return m_attached; } 54 bool isAttached() { return m_attached; }
54 55
55 QuoteType m_type; 56 QuoteType m_type;
56 int m_depth; 57 int m_depth;
57 RenderQuote* m_next; 58 RawPtrWillBeMember<RenderQuote> m_next;
58 RenderQuote* m_previous; 59 RawPtrWillBeMember<RenderQuote> m_previous;
59 bool m_attached; 60 bool m_attached;
60 String m_text; 61 String m_text;
61 }; 62 };
62 63
63 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote()); 64 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote());
64 65
65 } // namespace blink 66 } // namespace blink
66 67
67 #endif // RenderQuote_h 68 #endif // RenderQuote_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698