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

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

Issue 679593004: Refactor RenderQuote to not delete renderers on style change. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 2 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 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); }
47 virtual void styleDidChange(StyleDifference, const RenderStyle*) override; 47 virtual void styleDidChange(StyleDifference, const RenderStyle*) override;
48 virtual void willBeRemovedFromTree() override; 48 virtual void willBeRemovedFromTree() override;
49 49
50 String computeText() const; 50 String computeText() const;
51 void updateText(); 51 void updateText();
52 const QuotesData* quotesData() const; 52 const QuotesData* quotesData() const;
53 void updateDepth(); 53 void updateDepth();
54 bool isAttached() { return m_attached; } 54 bool isAttached() { return m_attached; }
55 55
56 RenderTextFragment* findFragmentChild() const;
57
56 QuoteType m_type; 58 QuoteType m_type;
57 int m_depth; 59 int m_depth;
58 RawPtrWillBeMember<RenderQuote> m_next; 60 RawPtrWillBeMember<RenderQuote> m_next;
59 RawPtrWillBeMember<RenderQuote> m_previous; 61 RawPtrWillBeMember<RenderQuote> m_previous;
60 bool m_attached; 62 bool m_attached;
61 String m_text; 63 String m_text;
62 }; 64 };
63 65
64 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote()); 66 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderQuote, isQuote());
65 67
66 } // namespace blink 68 } // namespace blink
67 69
68 #endif // RenderQuote_h 70 #endif // RenderQuote_h
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/first-letter-render-quote.html ('k') | Source/core/rendering/RenderQuote.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698