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

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: Update LinkHighlight 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 virtual void invalidate() OVERRIDE; 71 virtual void invalidate() OVERRIDE;
72 virtual WebLayer* layer() OVERRIDE; 72 virtual WebLayer* layer() OVERRIDE;
73 virtual void clearCurrentGraphicsLayer() OVERRIDE; 73 virtual void clearCurrentGraphicsLayer() OVERRIDE;
74 74
75 blink::GraphicsLayer* currentGraphicsLayerForTesting() const { return m_curr entGraphicsLayer; } 75 blink::GraphicsLayer* currentGraphicsLayerForTesting() const { return m_curr entGraphicsLayer; }
76 76
77 private: 77 private:
78 LinkHighlight(blink::Node*, WebViewImpl*); 78 LinkHighlight(blink::Node*, WebViewImpl*);
79 79
80 void releaseResources(); 80 void releaseResources();
81 void computeQuads(blink::Node*, WTF::Vector<blink::FloatQuad>&) const; 81 void computeQuads(blink::RenderObject&, WTF::Vector<blink::FloatQuad>&) cons t;
82 82
83 blink::RenderLayer* computeEnclosingCompositingLayer(); 83 blink::RenderLayer* computeEnclosingCompositingLayer();
84 void clearGraphicsLayerLinkHighlightPointer(); 84 void clearGraphicsLayerLinkHighlightPointer();
85 // This function computes the highlight path, and returns true if it has cha nged 85 // This function computes the highlight path, and returns true if it has cha nged
86 // size since the last call to this function. 86 // size since the last call to this function.
87 bool computeHighlightLayerPathAndPosition(blink::RenderLayer*); 87 bool computeHighlightLayerPathAndPosition(blink::RenderLayer*);
88 88
89 OwnPtr<WebContentLayer> m_contentLayer; 89 OwnPtr<WebContentLayer> m_contentLayer;
90 OwnPtr<WebLayer> m_clipLayer; 90 OwnPtr<WebLayer> m_clipLayer;
91 blink::Path m_path; 91 blink::Path m_path;
92 92
93 RefPtrWillBePersistent<blink::Node> m_node; 93 RefPtrWillBePersistent<blink::Node> m_node;
94 WebViewImpl* m_owningWebViewImpl; 94 WebViewImpl* m_owningWebViewImpl;
95 blink::GraphicsLayer* m_currentGraphicsLayer; 95 blink::GraphicsLayer* m_currentGraphicsLayer;
96 96
97 bool m_geometryNeedsUpdate; 97 bool m_geometryNeedsUpdate;
98 bool m_isAnimating; 98 bool m_isAnimating;
99 double m_startTime; 99 double m_startTime;
100 }; 100 };
101 101
102 } // namespace blink 102 } // namespace blink
103 103
104 #endif 104 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698