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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutReplaced.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, 10 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2009 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 // This callback is invoked whenever the intrinsic size changed. 98 // This callback is invoked whenever the intrinsic size changed.
99 // 99 //
100 // The intrinsic size can change due to the network (from the default 100 // The intrinsic size can change due to the network (from the default
101 // intrinsic size [see above] to the actual intrinsic size) or to some 101 // intrinsic size [see above] to the actual intrinsic size) or to some
102 // CSS properties like 'zoom' or 'image-orientation'. 102 // CSS properties like 'zoom' or 'image-orientation'.
103 virtual void intrinsicSizeChanged(); 103 virtual void intrinsicSizeChanged();
104 104
105 virtual LayoutBox* embeddedContentBox() const { return nullptr; } 105 virtual LayoutBox* embeddedContentBox() const { return nullptr; }
106 106
107 PositionWithAffinity positionForPoint(const LayoutPoint&) override;
108
107 private: 109 private:
108 void computePreferredLogicalWidths() final; 110 void computePreferredLogicalWidths() final;
109 111
110 PositionWithAffinity positionForPoint(const LayoutPoint&) final;
111
112 bool canBeSelectionLeaf() const override { return true; } 112 bool canBeSelectionLeaf() const override { return true; }
113 113
114 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai ntInvalidationContainer) const final; 114 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai ntInvalidationContainer) const final;
115 void computeIntrinsicSizingInfoForLayoutBox(LayoutBox*, IntrinsicSizingInfo& ) const; 115 void computeIntrinsicSizingInfoForLayoutBox(LayoutBox*, IntrinsicSizingInfo& ) const;
116 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const; 116 FloatSize constrainIntrinsicSizeToMinMax(const IntrinsicSizingInfo&) const;
117 117
118 mutable LayoutSize m_intrinsicSize; 118 mutable LayoutSize m_intrinsicSize;
119 }; 119 };
120 120
121 } // namespace blink 121 } // namespace blink
122 122
123 #endif 123 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698