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

Side by Side Diff: Source/core/layout/line/InlineTextBox.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/InlineFlowBox.cpp ('k') | Source/core/layout/line/InlineTextBox.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 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2004, 2005, 2006, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual LayoutRect localSelectionRect(int startPos, int endPos); 106 virtual LayoutRect localSelectionRect(int startPos, int endPos);
107 bool isSelected(int startPos, int endPos) const; 107 bool isSelected(int startPos, int endPos) const;
108 void selectionStartEnd(int& sPos, int& ePos) const; 108 void selectionStartEnd(int& sPos, int& ePos) const;
109 109
110 // These functions both paint markers and update the DocumentMarker's render edRect. 110 // These functions both paint markers and update the DocumentMarker's render edRect.
111 virtual void paintDocumentMarker(GraphicsContext*, const FloatPointWillBeLay outPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&, bool gr ammar); 111 virtual void paintDocumentMarker(GraphicsContext*, const FloatPointWillBeLay outPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&, bool gr ammar);
112 virtual void paintTextMatchMarker(GraphicsContext*, const FloatPointWillBeLa youtPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&); 112 virtual void paintTextMatchMarker(GraphicsContext*, const FloatPointWillBeLa youtPoint& boxOrigin, DocumentMarker*, const ComputedStyle&, const Font&);
113 113
114 protected: 114 protected:
115 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override; 115 virtual void paint(const PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, LayoutUnit lineBottom) override;
116 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override; 116 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit li neBottom) override;
117 117
118 private: 118 private:
119 virtual void deleteLine() override final; 119 virtual void deleteLine() override final;
120 virtual void extractLine() override final; 120 virtual void extractLine() override final;
121 virtual void attachLine() override final; 121 virtual void attachLine() override final;
122 122
123 public: 123 public:
124 virtual LayoutObject::SelectionState selectionState() const override final; 124 virtual LayoutObject::SelectionState selectionState() const override final;
125 125
126 private: 126 private:
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 }; 175 };
176 176
177 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox); 177 DEFINE_INLINE_BOX_TYPE_CASTS(InlineTextBox);
178 178
179 void alignSelectionRectToDevicePixels(FloatRectWillBeLayoutRect&); 179 void alignSelectionRectToDevicePixels(FloatRectWillBeLayoutRect&);
180 180
181 } // namespace blink 181 } // namespace blink
182 182
183 #endif // InlineTextBox_h 183 #endif // InlineTextBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/line/InlineFlowBox.cpp ('k') | Source/core/layout/line/InlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698