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

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

Issue 1032823003: Refactor HitTestResult to store the HitTestRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated as per review comments Created 5 years, 8 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
« no previous file with comments | « Source/core/layout/line/LineBoxList.cpp ('k') | Source/core/layout/line/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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 99
100 using InlineBox::hasEllipsisBox; 100 using InlineBox::hasEllipsisBox;
101 EllipsisBox* ellipsisBox() const; 101 EllipsisBox* ellipsisBox() const;
102 102
103 virtual void clearTruncation() override final; 103 virtual void clearTruncation() override final;
104 104
105 virtual int baselinePosition(FontBaseline baselineType) const override final ; 105 virtual int baselinePosition(FontBaseline baselineType) const override final ;
106 virtual LayoutUnit lineHeight() const override final; 106 virtual LayoutUnit lineHeight() const override final;
107 107
108 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override; 108 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override;
109 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override final; 109 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li neBottom) override final;
110 110
111 using InlineBox::hasSelectedChildren; 111 using InlineBox::hasSelectedChildren;
112 using InlineBox::setHasSelectedChildren; 112 using InlineBox::setHasSelectedChildren;
113 113
114 virtual LayoutObject::SelectionState selectionState() const override final; 114 virtual LayoutObject::SelectionState selectionState() const override final;
115 InlineBox* firstSelectedBox() const; 115 InlineBox* firstSelectedBox() const;
116 InlineBox* lastSelectedBox() const; 116 InlineBox* lastSelectedBox() const;
117 117
118 GapRects lineSelectionGap(const LayoutBlock* rootBlock, const LayoutPoint& r ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT op, LayoutUnit selHeight, const PaintInfo*) const; 118 GapRects lineSelectionGap(const LayoutBlock* rootBlock, const LayoutPoint& r ootBlockPhysicalPosition, const LayoutSize& offsetFromRootBlock, LayoutUnit selT op, LayoutUnit selHeight, const PaintInfo*) const;
119 119
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 LayoutUnit m_lineBottom; 197 LayoutUnit m_lineBottom;
198 LayoutUnit m_lineTopWithLeading; 198 LayoutUnit m_lineTopWithLeading;
199 LayoutUnit m_lineBottomWithLeading; 199 LayoutUnit m_lineBottomWithLeading;
200 LayoutUnit m_selectionBottom; 200 LayoutUnit m_selectionBottom;
201 LayoutUnit m_paginationStrut; 201 LayoutUnit m_paginationStrut;
202 }; 202 };
203 203
204 } // namespace blink 204 } // namespace blink
205 205
206 #endif // RootInlineBox_h 206 #endif // RootInlineBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/line/LineBoxList.cpp ('k') | Source/core/layout/line/RootInlineBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698