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

Side by Side Diff: Source/web/LinkHighlight.h

Issue 448593002: Make Gesture Tap be aware of Shadow DOM. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use useMockHighlight() Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual void invalidate() OVERRIDE; 68 virtual void invalidate() OVERRIDE;
69 virtual WebLayer* layer() OVERRIDE; 69 virtual WebLayer* layer() OVERRIDE;
70 virtual void clearCurrentGraphicsLayer() OVERRIDE; 70 virtual void clearCurrentGraphicsLayer() OVERRIDE;
71 71
72 GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGrap hicsLayer; } 72 GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGrap hicsLayer; }
73 73
74 private: 74 private:
75 LinkHighlight(Node*, WebViewImpl*); 75 LinkHighlight(Node*, WebViewImpl*);
76 76
77 void releaseResources(); 77 void releaseResources();
78 void computeQuads(Node*, WTF::Vector<FloatQuad>&) const; 78 void computeQuads(RenderObject&, WTF::Vector<FloatQuad>&) const;
79 79
80 RenderLayer* computeEnclosingCompositingLayer(); 80 RenderLayer* computeEnclosingCompositingLayer();
81 void clearGraphicsLayerLinkHighlightPointer(); 81 void clearGraphicsLayerLinkHighlightPointer();
82 // This function computes the highlight path, and returns true if it has cha nged 82 // This function computes the highlight path, and returns true if it has cha nged
83 // size since the last call to this function. 83 // size since the last call to this function.
84 bool computeHighlightLayerPathAndPosition(RenderLayer*); 84 bool computeHighlightLayerPathAndPosition(RenderLayer*);
85 85
86 OwnPtr<WebContentLayer> m_contentLayer; 86 OwnPtr<WebContentLayer> m_contentLayer;
87 OwnPtr<WebLayer> m_clipLayer; 87 OwnPtr<WebLayer> m_clipLayer;
88 Path m_path; 88 Path m_path;
89 89
90 RefPtrWillBePersistent<Node> m_node; 90 RefPtrWillBePersistent<Node> m_node;
91 WebViewImpl* m_owningWebViewImpl; 91 WebViewImpl* m_owningWebViewImpl;
92 GraphicsLayer* m_currentGraphicsLayer; 92 GraphicsLayer* m_currentGraphicsLayer;
93 93
94 bool m_geometryNeedsUpdate; 94 bool m_geometryNeedsUpdate;
95 bool m_isAnimating; 95 bool m_isAnimating;
96 double m_startTime; 96 double m_startTime;
97 }; 97 };
98 98
99 } // namespace blink 99 } // namespace blink
100 100
101 #endif 101 #endif
OLDNEW
« no previous file with comments | « LayoutTests/compositing/gestures/gesture-tapHighlight-shadow-tree-expected.html ('k') | Source/web/LinkHighlight.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698