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

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

Issue 9689022: Merge 110332 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void willBeDestroyed(); 55 virtual void willBeDestroyed();
56 56
57 virtual void setTextInternal(PassRefPtr<StringImpl>); 57 virtual void setTextInternal(PassRefPtr<StringImpl>);
58 virtual UChar previousCharacter() const; 58 virtual UChar previousCharacter() const;
59 RenderBlock* blockForAccompanyingFirstLetter() const; 59 RenderBlock* blockForAccompanyingFirstLetter() const;
60 60
61 unsigned m_start; 61 unsigned m_start;
62 unsigned m_end; 62 unsigned m_end;
63 RefPtr<StringImpl> m_contentString; 63 RefPtr<StringImpl> m_contentString;
64 RenderObject* m_firstLetter; 64 RenderObject* m_firstLetter;
65 bool m_allowFragmentReset;
65 }; 66 };
66 67
67 inline RenderTextFragment* toRenderTextFragment(RenderObject* object) 68 inline RenderTextFragment* toRenderTextFragment(RenderObject* object)
68 { 69 {
69 ASSERT(!object || toRenderText(object)->isTextFragment()); 70 ASSERT(!object || toRenderText(object)->isTextFragment());
70 return static_cast<RenderTextFragment*>(object); 71 return static_cast<RenderTextFragment*>(object);
71 } 72 }
72 73
73 inline const RenderTextFragment* toRenderTextFragment(const RenderObject* object ) 74 inline const RenderTextFragment* toRenderTextFragment(const RenderObject* object )
74 { 75 {
75 ASSERT(!object || toRenderText(object)->isTextFragment()); 76 ASSERT(!object || toRenderText(object)->isTextFragment());
76 return static_cast<const RenderTextFragment*>(object); 77 return static_cast<const RenderTextFragment*>(object);
77 } 78 }
78 79
79 // This will catch anyone doing an unnecessary cast. 80 // This will catch anyone doing an unnecessary cast.
80 void toRenderTextFragment(const RenderTextFragment*); 81 void toRenderTextFragment(const RenderTextFragment*);
81 82
82 } // namespace WebCore 83 } // namespace WebCore
83 84
84 #endif // RenderTextFragment_h 85 #endif // RenderTextFragment_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698