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

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

Issue 12314017: Revert 143493 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 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/WebCore/dom/Document.cpp ('k') | Source/WebCore/rendering/RenderView.h » ('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 20 matching lines...) Expand all
31 31
32 class Document; 32 class Document;
33 33
34 class RenderQuote : public RenderText { 34 class RenderQuote : 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 void detachQuote(); 39 void detachQuote();
40 40
41 RenderQuote* next() { return m_next; }
42
43 private: 41 private:
44 virtual void willBeDestroyed() OVERRIDE; 42 virtual void willBeDestroyed() OVERRIDE;
45 virtual const char* renderName() const OVERRIDE { return "RenderQuote"; }; 43 virtual const char* renderName() const OVERRIDE { return "RenderQuote"; };
46 virtual bool isQuote() const OVERRIDE { return true; }; 44 virtual bool isQuote() const OVERRIDE { return true; };
47 virtual PassRefPtr<StringImpl> originalText() const OVERRIDE; 45 virtual PassRefPtr<StringImpl> originalText() const OVERRIDE;
48 46
49 virtual void updateText() OVERRIDE; 47 virtual void updateText() OVERRIDE;
50 virtual void computePreferredLogicalWidths(float leadWidth) OVERRIDE; 48 virtual void computePreferredLogicalWidths(float leadWidth) OVERRIDE;
51 49
52 // We don't override insertedIntoTree to call attachQuote() as it would be a ttached 50 // We don't override insertedIntoTree to call attachQuote() as it would be a ttached
(...skipping 19 matching lines...) Expand all
72 ASSERT(!object || object->isQuote()); 70 ASSERT(!object || object->isQuote());
73 return static_cast<RenderQuote*>(object); 71 return static_cast<RenderQuote*>(object);
74 } 72 }
75 73
76 // This will catch anyone doing an unnecessary cast. 74 // This will catch anyone doing an unnecessary cast.
77 void toRenderQuote(const RenderQuote*); 75 void toRenderQuote(const RenderQuote*);
78 76
79 } // namespace WebCore 77 } // namespace WebCore
80 78
81 #endif // RenderQuote_h 79 #endif // RenderQuote_h
OLDNEW
« no previous file with comments | « Source/WebCore/dom/Document.cpp ('k') | Source/WebCore/rendering/RenderView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698