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

Side by Side Diff: third_party/WebKit/Source/core/layout/line/RootInlineBox.h

Issue 1642223002: Delete selection gap code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Integrate feedback. Created 4 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom) const override; 109 void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutU nit lineBottom) const override;
110 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom ) override; 110 bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom ) override;
111 111
112 using InlineBox::hasSelectedChildren; 112 using InlineBox::hasSelectedChildren;
113 using InlineBox::setHasSelectedChildren; 113 using InlineBox::setHasSelectedChildren;
114 114
115 SelectionState selectionState() const final; 115 SelectionState selectionState() const final;
116 InlineBox* firstSelectedBox() const; 116 InlineBox* firstSelectedBox() const;
117 InlineBox* lastSelectedBox() const; 117 InlineBox* lastSelectedBox() const;
118 118
119 GapRects lineSelectionGap(const LayoutBlock* rootBlock, const LayoutPoint& r ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT op, LayoutUnit selHeight, const PaintInfo*) const;
120
121 LayoutBlockFlow& block() const; 119 LayoutBlockFlow& block() const;
122 120
123 InlineBox* closestLeafChildForPoint(const LayoutPoint&, bool onlyEditableLea ves); 121 InlineBox* closestLeafChildForPoint(const LayoutPoint&, bool onlyEditableLea ves);
124 InlineBox* closestLeafChildForLogicalLeftPosition(LayoutUnit, bool onlyEdita bleLeaves = false); 122 InlineBox* closestLeafChildForLogicalLeftPosition(LayoutUnit, bool onlyEdita bleLeaves = false);
125 123
126 void appendFloat(LayoutBox* floatingBox) 124 void appendFloat(LayoutBox* floatingBox)
127 { 125 {
128 ASSERT(!isDirty()); 126 ASSERT(!isDirty());
129 if (m_floats) 127 if (m_floats)
130 m_floats->append(floatingBox); 128 m_floats->append(floatingBox);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 LayoutUnit m_lineBottom; 191 LayoutUnit m_lineBottom;
194 LayoutUnit m_lineTopWithLeading; 192 LayoutUnit m_lineTopWithLeading;
195 LayoutUnit m_lineBottomWithLeading; 193 LayoutUnit m_lineBottomWithLeading;
196 LayoutUnit m_selectionBottom; 194 LayoutUnit m_selectionBottom;
197 LayoutUnit m_paginationStrut; 195 LayoutUnit m_paginationStrut;
198 }; 196 };
199 197
200 } // namespace blink 198 } // namespace blink
201 199
202 #endif // RootInlineBox_h 200 #endif // RootInlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698