OLD | NEW |
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 85 |
86 private: | 86 private: |
87 LinkHighlightImpl(Node*, WebViewImpl*); | 87 LinkHighlightImpl(Node*, WebViewImpl*); |
88 | 88 |
89 void releaseResources(); | 89 void releaseResources(); |
90 void computeQuads(const Node&, Vector<FloatQuad>&) const; | 90 void computeQuads(const Node&, Vector<FloatQuad>&) const; |
91 | 91 |
92 void attachLinkHighlightToCompositingLayer( | 92 void attachLinkHighlightToCompositingLayer( |
93 const LayoutBoxModelObject& paintInvalidationContainer); | 93 const LayoutBoxModelObject& paintInvalidationContainer); |
94 void clearGraphicsLayerLinkHighlightPointer(); | 94 void clearGraphicsLayerLinkHighlightPointer(); |
95 // This function computes the highlight path, and returns true if it has chang
ed | 95 // This function computes the highlight path, and returns true if it has |
96 // size since the last call to this function. | 96 // changed size since the last call to this function. |
97 bool computeHighlightLayerPathAndPosition(const LayoutBoxModelObject&); | 97 bool computeHighlightLayerPathAndPosition(const LayoutBoxModelObject&); |
98 | 98 |
99 std::unique_ptr<WebContentLayer> m_contentLayer; | 99 std::unique_ptr<WebContentLayer> m_contentLayer; |
100 std::unique_ptr<WebLayer> m_clipLayer; | 100 std::unique_ptr<WebLayer> m_clipLayer; |
101 Path m_path; | 101 Path m_path; |
102 | 102 |
103 Persistent<Node> m_node; | 103 Persistent<Node> m_node; |
104 WebViewImpl* m_owningWebViewImpl; | 104 WebViewImpl* m_owningWebViewImpl; |
105 GraphicsLayer* m_currentGraphicsLayer; | 105 GraphicsLayer* m_currentGraphicsLayer; |
106 bool m_isScrollingGraphicsLayer; | 106 bool m_isScrollingGraphicsLayer; |
107 std::unique_ptr<CompositorAnimationPlayer> m_compositorPlayer; | 107 std::unique_ptr<CompositorAnimationPlayer> m_compositorPlayer; |
108 | 108 |
109 bool m_geometryNeedsUpdate; | 109 bool m_geometryNeedsUpdate; |
110 bool m_isAnimating; | 110 bool m_isAnimating; |
111 double m_startTime; | 111 double m_startTime; |
112 }; | 112 }; |
113 | 113 |
114 } // namespace blink | 114 } // namespace blink |
115 | 115 |
116 #endif // LinkHighlightImpl_h | 116 #endif // LinkHighlightImpl_h |
OLD | NEW |