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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle 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 | Annotate | Revision Log
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 void clearTextFragments() { m_textFragments.clear(); } 50 void clearTextFragments() { m_textFragments.clear(); }
51 Vector<SVGTextFragment>& textFragments() { return m_textFragments; } 51 Vector<SVGTextFragment>& textFragments() { return m_textFragments; }
52 const Vector<SVGTextFragment>& textFragments() const { return m_textFragment s; } 52 const Vector<SVGTextFragment>& textFragments() const { return m_textFragment s; }
53 53
54 virtual void dirtyLineBoxes() override; 54 virtual void dirtyLineBoxes() override;
55 55
56 bool startsNewTextChunk() const { return m_startsNewTextChunk; } 56 bool startsNewTextChunk() const { return m_startsNewTextChunk; }
57 void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTe xtChunk; } 57 void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTe xtChunk; }
58 58
59 int offsetForPositionInFragment(const SVGTextFragment&, FloatWillBeLayoutUni t position, bool includePartialGlyphs) const; 59 int offsetForPositionInFragment(const SVGTextFragment&, FloatWillBeLayoutUni t position, bool includePartialGlyphs) const;
60 FloatRect selectionRectForTextFragment(const SVGTextFragment&, int fragmentS tartPosition, int fragmentEndPosition, const LayoutStyle&); 60 FloatRect selectionRectForTextFragment(const SVGTextFragment&, int fragmentS tartPosition, int fragmentEndPosition, const ComputedStyle&);
61 TextRun constructTextRun(const LayoutStyle&, const SVGTextFragment&) const; 61 TextRun constructTextRun(const ComputedStyle&, const SVGTextFragment&) const ;
62 62
63 private: 63 private:
64 virtual void paintDocumentMarker(GraphicsContext*, const FloatPointWillBeLay outPoint&, DocumentMarker*, const LayoutStyle&, const Font&, bool) override fina l; 64 virtual void paintDocumentMarker(GraphicsContext*, const FloatPointWillBeLay outPoint&, DocumentMarker*, const ComputedStyle&, const Font&, bool) override fi nal;
65 virtual void paintTextMatchMarker(GraphicsContext*, const FloatPointWillBeLa youtPoint&, DocumentMarker*, const LayoutStyle&, const Font&) override final; 65 virtual void paintTextMatchMarker(GraphicsContext*, const FloatPointWillBeLa youtPoint&, DocumentMarker*, const ComputedStyle&, const Font&) override final;
66 66
67 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override; 67 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, LayoutUnit lineTop, LayoutUnit lineBottom) override;
68 68
69 FloatWillBeLayoutUnit m_logicalHeight; 69 FloatWillBeLayoutUnit m_logicalHeight;
70 bool m_startsNewTextChunk : 1; 70 bool m_startsNewTextChunk : 1;
71 Vector<SVGTextFragment> m_textFragments; 71 Vector<SVGTextFragment> m_textFragments;
72 }; 72 };
73 73
74 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox); 74 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox);
75 75
76 } // namespace blink 76 } // namespace blink
77 77
78 #endif // SVGInlineTextBox_h 78 #endif // SVGInlineTextBox_h
OLDNEW
« no previous file with comments | « Source/core/layout/svg/SVGTextMetricsBuilder.cpp ('k') | Source/core/layout/svg/line/SVGInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698