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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderInlineTest.cpp ('k') | Source/core/rendering/RenderLineBoxList.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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 29
30 #ifndef RenderLineBoxList_h 30 #ifndef RenderLineBoxList_h
31 #define RenderLineBoxList_h 31 #define RenderLineBoxList_h
32 32
33 #include "core/rendering/RenderObject.h" 33 #include "core/layout/LayoutObject.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 class InlineFlowBox; 37 class InlineFlowBox;
38 class RenderLineBoxList { 38 class RenderLineBoxList {
39 public: 39 public:
40 RenderLineBoxList() 40 RenderLineBoxList()
41 : m_firstLineBox(0) 41 : m_firstLineBox(0)
42 , m_lastLineBox(0) 42 , m_lastLineBox(0)
43 { 43 {
(...skipping 11 matching lines...) Expand all
55 void appendLineBox(InlineFlowBox*); 55 void appendLineBox(InlineFlowBox*);
56 56
57 void deleteLineBoxTree(); 57 void deleteLineBoxTree();
58 void deleteLineBoxes(); 58 void deleteLineBoxes();
59 59
60 void extractLineBox(InlineFlowBox*); 60 void extractLineBox(InlineFlowBox*);
61 void attachLineBox(InlineFlowBox*); 61 void attachLineBox(InlineFlowBox*);
62 void removeLineBox(InlineFlowBox*); 62 void removeLineBox(InlineFlowBox*);
63 63
64 void dirtyLineBoxes(); 64 void dirtyLineBoxes();
65 void dirtyLinesFromChangedChild(RenderObject* parent, RenderObject* child); 65 void dirtyLinesFromChangedChild(LayoutObject* parent, LayoutObject* child);
66 66
67 bool hitTest(RenderBoxModelObject*, const HitTestRequest&, HitTestResult&, c onst HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) const; 67 bool hitTest(RenderBoxModelObject*, const HitTestRequest&, HitTestResult&, c onst HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) const;
68 bool anyLineIntersectsRect(RenderBoxModelObject*, const LayoutRect&, const L ayoutPoint&) const; 68 bool anyLineIntersectsRect(RenderBoxModelObject*, const LayoutRect&, const L ayoutPoint&) const;
69 bool lineIntersectsDirtyRect(RenderBoxModelObject*, InlineFlowBox*, const Pa intInfo&, const LayoutPoint&) const; 69 bool lineIntersectsDirtyRect(RenderBoxModelObject*, InlineFlowBox*, const Pa intInfo&, const LayoutPoint&) const;
70 bool rangeIntersectsRect(RenderBoxModelObject*, LayoutUnit logicalTop, Layou tUnit logicalBottom, const LayoutRect&, const LayoutPoint&) const; 70 bool rangeIntersectsRect(RenderBoxModelObject*, LayoutUnit logicalTop, Layou tUnit logicalBottom, const LayoutRect&, const LayoutPoint&) const;
71 71
72 private: 72 private:
73 73
74 // For block flows, each box represents the root inline box for a line in th e 74 // For block flows, each box represents the root inline box for a line in th e
75 // paragraph. 75 // paragraph.
76 // For inline flows, each box represents a portion of that inline. 76 // For inline flows, each box represents a portion of that inline.
77 InlineFlowBox* m_firstLineBox; 77 InlineFlowBox* m_firstLineBox;
78 InlineFlowBox* m_lastLineBox; 78 InlineFlowBox* m_lastLineBox;
79 }; 79 };
80 80
81 81
82 #if !ENABLE(ASSERT) 82 #if !ENABLE(ASSERT)
83 inline void RenderLineBoxList::checkConsistency() const 83 inline void RenderLineBoxList::checkConsistency() const
84 { 84 {
85 } 85 }
86 #endif 86 #endif
87 87
88 } // namespace blink 88 } // namespace blink
89 89
90 #endif // RenderFlow_h 90 #endif // RenderFlow_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInlineTest.cpp ('k') | Source/core/rendering/RenderLineBoxList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698