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

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

Issue 1541083002: Fix invalid selection produced when dragging mouse outside the SVG text element (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) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Google, Inc. All rights reserved. 4 * Copyright (C) 2009 Google, Inc. All rights reserved.
5 * Copyright (C) 2009 Apple Inc. All rights reserved. 5 * Copyright (C) 2009 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 bool canBeSelectionLeaf() const override { return false; } 109 bool canBeSelectionLeaf() const override { return false; }
110 bool canHaveChildren() const override { return true; } 110 bool canHaveChildren() const override { return true; }
111 111
112 void descendantIsolationRequirementsChanged(DescendantIsolationState) final; 112 void descendantIsolationRequirementsChanged(DescendantIsolationState) final;
113 113
114 void updateCachedBoundaries(); 114 void updateCachedBoundaries();
115 void buildLocalToBorderBoxTransform(); 115 void buildLocalToBorderBoxTransform();
116 116
117 FloatSize calculateIntrinsicSize() const; 117 FloatSize calculateIntrinsicSize() const;
118 118
119 PositionWithAffinity positionForPoint(const LayoutPoint&) final;
120
119 LayoutObjectChildList m_children; 121 LayoutObjectChildList m_children;
120 IntSize m_containerSize; 122 IntSize m_containerSize;
121 FloatRect m_objectBoundingBox; 123 FloatRect m_objectBoundingBox;
122 bool m_objectBoundingBoxValid; 124 bool m_objectBoundingBoxValid;
123 FloatRect m_strokeBoundingBox; 125 FloatRect m_strokeBoundingBox;
124 FloatRect m_paintInvalidationBoundingBox; 126 FloatRect m_paintInvalidationBoundingBox;
125 mutable AffineTransform m_localToParentTransform; 127 mutable AffineTransform m_localToParentTransform;
126 AffineTransform m_localToBorderBoxTransform; 128 AffineTransform m_localToBorderBoxTransform;
127 bool m_isLayoutSizeChanged : 1; 129 bool m_isLayoutSizeChanged : 1;
128 bool m_needsBoundariesOrTransformUpdate : 1; 130 bool m_needsBoundariesOrTransformUpdate : 1;
129 bool m_hasBoxDecorationBackground : 1; 131 bool m_hasBoxDecorationBackground : 1;
130 mutable bool m_hasNonIsolatedBlendingDescendants : 1; 132 mutable bool m_hasNonIsolatedBlendingDescendants : 1;
131 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1; 133 mutable bool m_hasNonIsolatedBlendingDescendantsDirty : 1;
132 }; 134 };
133 135
134 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot()); 136 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGRoot, isSVGRoot());
135 137
136 } // namespace blink 138 } // namespace blink
137 139
138 #endif // LayoutSVGRoot_h 140 #endif // LayoutSVGRoot_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698