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

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

Issue 1454623002: Hit test SVG line boxes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add forgotten test. Sorry, test! Created 5 years, 1 month 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 100
101 using InlineBox::hasEllipsisBox; 101 using InlineBox::hasEllipsisBox;
102 EllipsisBox* ellipsisBox() const; 102 EllipsisBox* ellipsisBox() const;
103 103
104 void clearTruncation() final; 104 void clearTruncation() final;
105 105
106 int baselinePosition(FontBaseline baselineType) const final; 106 int baselinePosition(FontBaseline baselineType) const final;
107 LayoutUnit lineHeight() const final; 107 LayoutUnit lineHeight() const final;
108 108
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 ) final; 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; 119 GapRects lineSelectionGap(const LayoutBlock* rootBlock, const LayoutPoint& r ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT op, LayoutUnit selHeight, const PaintInfo*) const;
120 120
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 LayoutUnit m_lineBottom; 193 LayoutUnit m_lineBottom;
194 LayoutUnit m_lineTopWithLeading; 194 LayoutUnit m_lineTopWithLeading;
195 LayoutUnit m_lineBottomWithLeading; 195 LayoutUnit m_lineBottomWithLeading;
196 LayoutUnit m_selectionBottom; 196 LayoutUnit m_selectionBottom;
197 LayoutUnit m_paginationStrut; 197 LayoutUnit m_paginationStrut;
198 }; 198 };
199 199
200 } // namespace blink 200 } // namespace blink
201 201
202 #endif // RootInlineBox_h 202 #endif // RootInlineBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698