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

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

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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
« no previous file with comments | « Source/core/rendering/RenderPart.cpp ('k') | Source/core/rendering/RenderQuote.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18 matching lines...) Expand all
29 29
30 namespace blink { 30 namespace blink {
31 31
32 class Document; 32 class Document;
33 class RenderTextFragment; 33 class RenderTextFragment;
34 34
35 class RenderQuote final : public RenderInline { 35 class RenderQuote final : public RenderInline {
36 public: 36 public:
37 RenderQuote(Document*, const QuoteType); 37 RenderQuote(Document*, const QuoteType);
38 virtual ~RenderQuote(); 38 virtual ~RenderQuote();
39 virtual void trace(Visitor*) override;
40 void attachQuote(); 39 void attachQuote();
41 40
42 private: 41 private:
43 void detachQuote(); 42 void detachQuote();
44 43
45 virtual void willBeDestroyed() override; 44 virtual void willBeDestroyed() override;
46 virtual const char* renderName() const override { return "RenderQuote"; }; 45 virtual const char* renderName() const override { return "RenderQuote"; };
47 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectQuote || RenderInline::isOfType(type); } 46 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectQuote || RenderInline::isOfType(type); }
48 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; 47 virtual void styleDidChange(StyleDifference, const RenderStyle*) override;
49 virtual void willBeRemovedFromTree() override; 48 virtual void willBeRemovedFromTree() override;
50 49
51 String computeText() const; 50 String computeText() const;
52 void updateText(); 51 void updateText();
53 const QuotesData* quotesData() const; 52 const QuotesData* quotesData() const;
54 void updateDepth(); 53 void updateDepth();
55 bool isAttached() { return m_attached; } 54 bool isAttached() { return m_attached; }
56 55
57 RenderTextFragment* findFragmentChild() const; 56 RenderTextFragment* findFragmentChild() const;
58 57
59 QuoteType m_type; 58 QuoteType m_type;
60 int m_depth; 59 int m_depth;
61 RawPtrWillBeMember<RenderQuote> m_next; 60 RenderQuote* m_next;
62 RawPtrWillBeMember<RenderQuote> m_previous; 61 RenderQuote* m_previous;
63 bool m_attached; 62 bool m_attached;
64 String m_text; 63 String m_text;
65 }; 64 };
66 65
67 WILL_NOT_BE_EAGERLY_TRACED_CLASS(RenderQuote);
68
69 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote()); 66 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote());
70 67
71 } // namespace blink 68 } // namespace blink
72 69
73 #endif // RenderQuote_h 70 #endif // RenderQuote_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderPart.cpp ('k') | Source/core/rendering/RenderQuote.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698