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

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

Issue 566973002: Constify the rendering/ selection code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 3 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/RenderText.cpp ('k') | Source/core/rendering/RootInlineBox.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) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 virtual int baselinePosition(FontBaseline baselineType) const OVERRIDE FINAL ; 112 virtual int baselinePosition(FontBaseline baselineType) const OVERRIDE FINAL ;
113 virtual LayoutUnit lineHeight() const OVERRIDE FINAL; 113 virtual LayoutUnit lineHeight() const OVERRIDE FINAL;
114 114
115 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom) OVERRIDE; 115 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom) OVERRIDE;
116 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE FINAL; 116 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) OVERRIDE FINAL;
117 117
118 using InlineBox::hasSelectedChildren; 118 using InlineBox::hasSelectedChildren;
119 using InlineBox::setHasSelectedChildren; 119 using InlineBox::setHasSelectedChildren;
120 120
121 virtual RenderObject::SelectionState selectionState() OVERRIDE FINAL; 121 virtual RenderObject::SelectionState selectionState() const OVERRIDE FINAL;
122 InlineBox* firstSelectedBox(); 122 InlineBox* firstSelectedBox() const;
123 InlineBox* lastSelectedBox(); 123 InlineBox* lastSelectedBox() const;
124 124
125 GapRects lineSelectionGap(RenderBlock* rootBlock, const LayoutPoint& rootBlo ckPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selTop, La youtUnit selHeight, const PaintInfo*); 125 GapRects lineSelectionGap(const RenderBlock* rootBlock, const LayoutPoint& r ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT op, LayoutUnit selHeight, const PaintInfo*) const;
126 126
127 RenderBlockFlow& block() const; 127 RenderBlockFlow& block() const;
128 128
129 InlineBox* closestLeafChildForPoint(const IntPoint&, bool onlyEditableLeaves ); 129 InlineBox* closestLeafChildForPoint(const IntPoint&, bool onlyEditableLeaves );
130 InlineBox* closestLeafChildForLogicalLeftPosition(int, bool onlyEditableLeav es = false); 130 InlineBox* closestLeafChildForLogicalLeftPosition(int, bool onlyEditableLeav es = false);
131 131
132 void appendFloat(RenderBox* floatingBox) 132 void appendFloat(RenderBox* floatingBox)
133 { 133 {
134 ASSERT(!isDirty()); 134 ASSERT(!isDirty());
135 if (m_floats) 135 if (m_floats)
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 LayoutUnit m_lineTop; 231 LayoutUnit m_lineTop;
232 LayoutUnit m_lineBottom; 232 LayoutUnit m_lineBottom;
233 LayoutUnit m_lineTopWithLeading; 233 LayoutUnit m_lineTopWithLeading;
234 LayoutUnit m_lineBottomWithLeading; 234 LayoutUnit m_lineBottomWithLeading;
235 LayoutUnit m_selectionBottom; 235 LayoutUnit m_selectionBottom;
236 }; 236 };
237 237
238 } // namespace blink 238 } // namespace blink
239 239
240 #endif // RootInlineBox_h 240 #endif // RootInlineBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderText.cpp ('k') | Source/core/rendering/RootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698