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

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

Issue 2531943002: Unify HTML and SVG coordinates of LayoutSVGText (Closed)
Patch Set: - Created 4 years 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 24 matching lines...) Expand all
35 ~LayoutSVGText() override; 35 ~LayoutSVGText() override;
36 36
37 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override; 37 bool isChildAllowed(LayoutObject*, const ComputedStyle&) const override;
38 38
39 void setNeedsPositioningValuesUpdate() { 39 void setNeedsPositioningValuesUpdate() {
40 m_needsPositioningValuesUpdate = true; 40 m_needsPositioningValuesUpdate = true;
41 } 41 }
42 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; } 42 void setNeedsTransformUpdate() override { m_needsTransformUpdate = true; }
43 void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; } 43 void setNeedsTextMetricsUpdate() { m_needsTextMetricsUpdate = true; }
44 FloatRect visualRectInLocalSVGCoordinates() const override; 44 FloatRect visualRectInLocalSVGCoordinates() const override;
45 FloatRect objectBoundingBox() const override { 45 FloatRect objectBoundingBox() const override;
46 return FloatRect(frameRect());
47 }
48 FloatRect strokeBoundingBox() const override; 46 FloatRect strokeBoundingBox() const override;
49 bool isObjectBoundingBoxValid() const; 47 bool isObjectBoundingBoxValid() const;
50 48
49 void addOutlineRects(Vector<LayoutRect>&,
50 const LayoutPoint& additionalOffset,
51 IncludeBlockVisualOverflowOrNot) const override;
52
51 static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*); 53 static LayoutSVGText* locateLayoutSVGTextAncestor(LayoutObject*);
52 static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*); 54 static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*);
53 55
54 bool needsReordering() const { return m_needsReordering; } 56 bool needsReordering() const { return m_needsReordering; }
55 const Vector<LayoutSVGInlineText*>& descendantTextNodes() const { 57 const Vector<LayoutSVGInlineText*>& descendantTextNodes() const {
56 return m_descendantTextNodes; 58 return m_descendantTextNodes;
57 } 59 }
58 60
59 void subtreeChildWasAdded(); 61 void subtreeChildWasAdded();
60 void subtreeChildWillBeRemoved(); 62 void subtreeChildWillBeRemoved();
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 bool m_needsTransformUpdate : 1; 95 bool m_needsTransformUpdate : 1;
94 bool m_needsTextMetricsUpdate : 1; 96 bool m_needsTextMetricsUpdate : 1;
95 Vector<LayoutSVGInlineText*> m_descendantTextNodes; 97 Vector<LayoutSVGInlineText*> m_descendantTextNodes;
96 }; 98 };
97 99
98 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText()); 100 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText());
99 101
100 } // namespace blink 102 } // namespace blink
101 103
102 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698