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

Side by Side Diff: Source/core/layout/LayoutQuote.h

Issue 934853002: Move and rename RenderQuote and RenderWordBreak. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
« no previous file with comments | « Source/core/html/HTMLWBRElement.cpp ('k') | Source/core/layout/LayoutQuote.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,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 * 19 *
20 */ 20 */
21 21
22 #ifndef RenderQuote_h 22 #ifndef LayoutQuote_h
23 #define RenderQuote_h 23 #define LayoutQuote_h
24 24
25 #include "core/layout/style/LayoutStyle.h" 25 #include "core/layout/style/LayoutStyle.h"
26 #include "core/layout/style/LayoutStyleConstants.h" 26 #include "core/layout/style/LayoutStyleConstants.h"
27 #include "core/layout/style/QuotesData.h" 27 #include "core/layout/style/QuotesData.h"
28 #include "core/rendering/RenderInline.h" 28 #include "core/rendering/RenderInline.h"
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 LayoutQuote final : public RenderInline {
36 public: 36 public:
37 RenderQuote(Document*, const QuoteType); 37 LayoutQuote(Document*, const QuoteType);
38 virtual ~RenderQuote(); 38 virtual ~LayoutQuote();
39 void attachQuote(); 39 void attachQuote();
40 40
41 private: 41 private:
42 void detachQuote(); 42 void detachQuote();
43 43
44 virtual void willBeDestroyed() override; 44 virtual void willBeDestroyed() override;
45 virtual const char* renderName() const override { return "RenderQuote"; }; 45 virtual const char* renderName() const override { return "LayoutQuote"; };
46 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectQuote || RenderInline::isOfType(type); } 46 virtual bool isOfType(LayoutObjectType type) const override { return type == LayoutObjectQuote || RenderInline::isOfType(type); }
47 virtual void styleDidChange(StyleDifference, const LayoutStyle*) override; 47 virtual void styleDidChange(StyleDifference, const LayoutStyle*) 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; 56 RenderTextFragment* findFragmentChild() const;
57 57
58 QuoteType m_type; 58 QuoteType m_type;
59 int m_depth; 59 int m_depth;
60 RenderQuote* m_next; 60 LayoutQuote* m_next;
61 RenderQuote* m_previous; 61 LayoutQuote* m_previous;
62 bool m_attached; 62 bool m_attached;
63 String m_text; 63 String m_text;
64 }; 64 };
65 65
66 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(RenderQuote, isQuote()); 66 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutQuote, isQuote());
67 67
68 } // namespace blink 68 } // namespace blink
69 69
70 #endif // RenderQuote_h 70 #endif // LayoutQuote_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLWBRElement.cpp ('k') | Source/core/layout/LayoutQuote.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698