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

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

Issue 2599483002: Extract helper function. (Closed)
Patch Set: Created 3 years, 12 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) 2007 Rob Buis <buis@kde.org> 2 * Copyright (C) 2007 Rob Buis <buis@kde.org>
3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org>
4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool includePartialGlyphs) const; 72 bool includePartialGlyphs) const;
73 FloatRect selectionRectForTextFragment(const SVGTextFragment&, 73 FloatRect selectionRectForTextFragment(const SVGTextFragment&,
74 int fragmentStartPosition, 74 int fragmentStartPosition,
75 int fragmentEndPosition, 75 int fragmentEndPosition,
76 const ComputedStyle&) const; 76 const ComputedStyle&) const;
77 TextRun constructTextRun(const ComputedStyle&, const SVGTextFragment&) const; 77 TextRun constructTextRun(const ComputedStyle&, const SVGTextFragment&) const;
78 78
79 private: 79 private:
80 void paintDocumentMarker(GraphicsContext&, 80 void paintDocumentMarker(GraphicsContext&,
81 const LayoutPoint&, 81 const LayoutPoint&,
82 DocumentMarker*, 82 const DocumentMarker&,
83 const ComputedStyle&, 83 const ComputedStyle&,
84 const Font&, 84 const Font&,
85 bool) const final; 85 bool) const final;
86 void paintTextMatchMarkerForeground(const PaintInfo&, 86 void paintTextMatchMarkerForeground(const PaintInfo&,
87 const LayoutPoint&, 87 const LayoutPoint&,
88 DocumentMarker*, 88 const DocumentMarker&,
89 const ComputedStyle&, 89 const ComputedStyle&,
90 const Font&) const final; 90 const Font&) const final;
91 void paintTextMatchMarkerBackground(const PaintInfo&, 91 void paintTextMatchMarkerBackground(const PaintInfo&,
92 const LayoutPoint&, 92 const LayoutPoint&,
93 DocumentMarker*, 93 const DocumentMarker&,
94 const ComputedStyle&, 94 const ComputedStyle&,
95 const Font&) const final; 95 const Font&) const final;
96 96
97 bool nodeAtPoint(HitTestResult&, 97 bool nodeAtPoint(HitTestResult&,
98 const HitTestLocation& locationInContainer, 98 const HitTestLocation& locationInContainer,
99 const LayoutPoint& accumulatedOffset, 99 const LayoutPoint& accumulatedOffset,
100 LayoutUnit lineTop, 100 LayoutUnit lineTop,
101 LayoutUnit lineBottom) override; 101 LayoutUnit lineBottom) override;
102 102
103 LayoutUnit m_logicalHeight; 103 LayoutUnit m_logicalHeight;
104 bool m_startsNewTextChunk : 1; 104 bool m_startsNewTextChunk : 1;
105 Vector<SVGTextFragment> m_textFragments; 105 Vector<SVGTextFragment> m_textFragments;
106 }; 106 };
107 107
108 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox); 108 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox);
109 109
110 } // namespace blink 110 } // namespace blink
111 111
112 #endif // SVGInlineTextBox_h 112 #endif // SVGInlineTextBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698