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

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

Issue 1553473002: Fix SVG {text, foreignObject} transform for css animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVGText || LayoutSVGBlock::isOfType(type); } 65 bool isOfType(LayoutObjectType type) const override { return type == LayoutO bjectSVGText || LayoutSVGBlock::isOfType(type); }
66 66
67 void paint(const PaintInfo&, const LayoutPoint&) const override; 67 void paint(const PaintInfo&, const LayoutPoint&) const override;
68 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) override; 68 bool nodeAtFloatPoint(HitTestResult&, const FloatPoint& pointInParent, HitTe stAction) override;
69 PositionWithAffinity positionForPoint(const LayoutPoint&) override; 69 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
70 70
71 void layout() override; 71 void layout() override;
72 72
73 void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override; 73 void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const override;
74 74
75 void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) final;
76
75 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride; 77 void addChild(LayoutObject* child, LayoutObject* beforeChild = nullptr) over ride;
76 void removeChild(LayoutObject*) override; 78 void removeChild(LayoutObject*) override;
77 void willBeDestroyed() override; 79 void willBeDestroyed() override;
78 80
79 void invalidateTreeIfNeeded(PaintInvalidationState&) override; 81 void invalidateTreeIfNeeded(PaintInvalidationState&) override;
80 82
81 RootInlineBox* createRootInlineBox() override; 83 RootInlineBox* createRootInlineBox() override;
82 84
83 bool shouldHandleSubtreeMutations() const; 85 bool shouldHandleSubtreeMutations() const;
84 86
85 bool m_needsReordering : 1; 87 bool m_needsReordering : 1;
86 bool m_needsPositioningValuesUpdate : 1; 88 bool m_needsPositioningValuesUpdate : 1;
87 bool m_needsTransformUpdate : 1; 89 bool m_needsTransformUpdate : 1;
88 bool m_needsTextMetricsUpdate : 1; 90 bool m_needsTextMetricsUpdate : 1;
89 SVGTextLayoutAttributesBuilder m_layoutAttributesBuilder; 91 SVGTextLayoutAttributesBuilder m_layoutAttributesBuilder;
90 Vector<SVGTextLayoutAttributes*> m_layoutAttributes; 92 Vector<SVGTextLayoutAttributes*> m_layoutAttributes;
91 }; 93 };
92 94
93 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); 95 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText());
94 96
95 } 97 }
96 98
97 #endif 99 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698