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

Unified Diff: Source/core/rendering/compositing/CompositedSelectionBound.h

Issue 302993003: Route selection bounds updates through WebLayerTreeView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/CompositedSelectionBound.h
diff --git a/Source/core/svg/SVGAnimatedLengthList.h b/Source/core/rendering/compositing/CompositedSelectionBound.h
similarity index 77%
copy from Source/core/svg/SVGAnimatedLengthList.h
copy to Source/core/rendering/compositing/CompositedSelectionBound.h
index 9ac0eb565941e2a90efc30468c700c109953910f..9e05d7f3b89f81ad046d2df70c14542adecc8de1 100644
--- a/Source/core/svg/SVGAnimatedLengthList.h
+++ b/Source/core/rendering/compositing/CompositedSelectionBound.h
@@ -28,15 +28,31 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef SVGAnimatedLengthList_h
-#define SVGAnimatedLengthList_h
+#ifndef CompositedSelectionBound_h
+#define CompositedSelectionBound_h
-#include "core/svg/SVGLengthListTearOff.h"
-#include "core/svg/properties/SVGAnimatedProperty.h"
+#include "platform/geometry/IntRect.h"
+#include "platform/graphics/GraphicsLayer.h"
-namespace blink {
+namespace WebCore {
-typedef SVGAnimatedProperty<SVGLengthList> SVGAnimatedLengthList;
+struct CompositedSelectionBound {
+ enum Type {
+ Caret,
+ SelectionLeft,
+ SelectionRight
+ };
+
+ CompositedSelectionBound()
+ : type(Caret)
+ , layer(nullptr)
+ {
+ }
+
+ Type type;
+ GraphicsLayer* layer;
+ IntRect edgeRectInLayer;
+};
} // namespace blink
« no previous file with comments | « Source/core/page/ChromeClient.h ('k') | Source/core/rendering/compositing/RenderLayerCompositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698