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

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

Issue 2604073002: Apply offset from the correct graphics layer; simplify code for link highlights. (Closed)
Patch Set: Created 3 years, 11 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) 2006 Apple Computer, Inc. 2 * Copyright (C) 2006 Apple Computer, Inc.
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-2012. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2010-2012. 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 } 70 }
71 71
72 void paint(const PaintInfo&, const LayoutPoint&) const override; 72 void paint(const PaintInfo&, const LayoutPoint&) const override;
73 bool nodeAtFloatPoint(HitTestResult&, 73 bool nodeAtFloatPoint(HitTestResult&,
74 const FloatPoint& pointInParent, 74 const FloatPoint& pointInParent,
75 HitTestAction) override; 75 HitTestAction) override;
76 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 76 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
77 77
78 void layout() override; 78 void layout() override;
79 79
80 void absoluteQuads(Vector<FloatQuad>&) const override; 80 void absoluteQuads(Vector<FloatQuad>&,
81 MapCoordinatesFlags mode = 0) const override;
81 82
82 void addChild(LayoutObject* child, 83 void addChild(LayoutObject* child,
83 LayoutObject* beforeChild = nullptr) override; 84 LayoutObject* beforeChild = nullptr) override;
84 void removeChild(LayoutObject*) override; 85 void removeChild(LayoutObject*) override;
85 void willBeDestroyed() override; 86 void willBeDestroyed() override;
86 87
87 void invalidateTreeIfNeeded(const PaintInvalidationState&) override; 88 void invalidateTreeIfNeeded(const PaintInvalidationState&) override;
88 89
89 RootInlineBox* createRootInlineBox() override; 90 RootInlineBox* createRootInlineBox() override;
90 91
91 void invalidatePositioningValues(LayoutInvalidationReasonForTracing); 92 void invalidatePositioningValues(LayoutInvalidationReasonForTracing);
92 93
93 bool m_needsReordering : 1; 94 bool m_needsReordering : 1;
94 bool m_needsPositioningValuesUpdate : 1; 95 bool m_needsPositioningValuesUpdate : 1;
95 bool m_needsTransformUpdate : 1; 96 bool m_needsTransformUpdate : 1;
96 bool m_needsTextMetricsUpdate : 1; 97 bool m_needsTextMetricsUpdate : 1;
97 Vector<LayoutSVGInlineText*> m_descendantTextNodes; 98 Vector<LayoutSVGInlineText*> m_descendantTextNodes;
98 }; 99 };
99 100
100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); 101 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText());
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif 105 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698