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

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

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 * (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, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 InlineTextBox(RenderObject* obj) 50 InlineTextBox(RenderObject* obj)
51 : InlineBox(obj) 51 : InlineBox(obj)
52 , m_prevTextBox(0) 52 , m_prevTextBox(0)
53 , m_nextTextBox(0) 53 , m_nextTextBox(0)
54 , m_start(0) 54 , m_start(0)
55 , m_len(0) 55 , m_len(0)
56 , m_truncation(cNoTruncation) 56 , m_truncation(cNoTruncation)
57 { 57 {
58 } 58 }
59 59
60 virtual void destroy(RenderArena*) OVERRIDE FINAL; 60 virtual void destroy() OVERRIDE FINAL;
61 61
62 InlineTextBox* prevTextBox() const { return m_prevTextBox; } 62 InlineTextBox* prevTextBox() const { return m_prevTextBox; }
63 InlineTextBox* nextTextBox() const { return m_nextTextBox; } 63 InlineTextBox* nextTextBox() const { return m_nextTextBox; }
64 void setNextTextBox(InlineTextBox* n) { m_nextTextBox = n; } 64 void setNextTextBox(InlineTextBox* n) { m_nextTextBox = n; }
65 void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; } 65 void setPreviousTextBox(InlineTextBox* p) { m_prevTextBox = p; }
66 66
67 // FIXME: These accessors should ASSERT(!isDirty()). See https://bugs.webkit .org/show_bug.cgi?id=97264 67 // FIXME: These accessors should ASSERT(!isDirty()). See https://bugs.webkit .org/show_bug.cgi?id=97264
68 unsigned start() const { return m_start; } 68 unsigned start() const { return m_start; }
69 unsigned end() const { return m_len ? m_start + m_len - 1 : m_start; } 69 unsigned end() const { return m_len ? m_start + m_len - 1 : m_start; }
70 unsigned len() const { return m_len; } 70 unsigned len() const { return m_len; }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 void selectionStartEnd(int& sPos, int& ePos); 120 void selectionStartEnd(int& sPos, int& ePos);
121 121
122 protected: 122 protected:
123 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom); 123 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom);
124 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE; 124 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE;
125 125
126 public: 126 public:
127 RenderText* textRenderer() const; 127 RenderText* textRenderer() const;
128 128
129 private: 129 private:
130 virtual void deleteLine(RenderArena*) OVERRIDE FINAL; 130 virtual void deleteLine() OVERRIDE FINAL;
131 virtual void extractLine() OVERRIDE FINAL; 131 virtual void extractLine() OVERRIDE FINAL;
132 virtual void attachLine() OVERRIDE FINAL; 132 virtual void attachLine() OVERRIDE FINAL;
133 133
134 public: 134 public:
135 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL; 135 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL;
136 136
137 private: 137 private:
138 virtual void clearTruncation() OVERRIDE FINAL { m_truncation = cNoTruncation ; } 138 virtual void clearTruncation() OVERRIDE FINAL { m_truncation = cNoTruncation ; }
139 virtual float placeEllipsisBox(bool flowIsLTR, float visibleLeftEdge, float visibleRightEdge, float ellipsisWidth, float &truncatedWidth, bool& foundBox) OV ERRIDE FINAL; 139 virtual float placeEllipsisBox(bool flowIsLTR, float visibleLeftEdge, float visibleRightEdge, float ellipsisWidth, float &truncatedWidth, bool& foundBox) OV ERRIDE FINAL;
140 140
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 inline RenderText* InlineTextBox::textRenderer() const 210 inline RenderText* InlineTextBox::textRenderer() const
211 { 211 {
212 return toRenderText(renderer()); 212 return toRenderText(renderer());
213 } 213 }
214 214
215 void alignSelectionRectToDevicePixels(FloatRect&); 215 void alignSelectionRectToDevicePixels(FloatRect&);
216 216
217 } // namespace WebCore 217 } // namespace WebCore
218 218
219 #endif // InlineTextBox_h 219 #endif // InlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698