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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 case 0: point = roundedIntPoint(targetSpaceQuad.p1()); break; | 153 case 0: point = roundedIntPoint(targetSpaceQuad.p1()); break; |
154 case 1: point = roundedIntPoint(targetSpaceQuad.p2()); break; | 154 case 1: point = roundedIntPoint(targetSpaceQuad.p2()); break; |
155 case 2: point = roundedIntPoint(targetSpaceQuad.p3()); break; | 155 case 2: point = roundedIntPoint(targetSpaceQuad.p3()); break; |
156 case 3: point = roundedIntPoint(targetSpaceQuad.p4()); break; | 156 case 3: point = roundedIntPoint(targetSpaceQuad.p4()); break; |
157 } | 157 } |
158 | 158 |
159 // FIXME: this does not need to be absolute, just in the paint invalidat
ion container's space. | 159 // FIXME: this does not need to be absolute, just in the paint invalidat
ion container's space. |
160 point = targetLayoutObject->frame()->view()->contentsToRootFrame(point); | 160 point = targetLayoutObject->frame()->view()->contentsToRootFrame(point); |
161 point = paintInvalidationContainer.frame()->view()->rootFrameToContents(
point); | 161 point = paintInvalidationContainer.frame()->view()->rootFrameToContents(
point); |
162 FloatPoint floatPoint = paintInvalidationContainer.absoluteToLocal(point
, UseTransforms); | 162 FloatPoint floatPoint = paintInvalidationContainer.absoluteToLocal(point
, UseTransforms); |
163 PaintLayer::mapPointToPaintBackingCoordinates(&paintInvalidationContaine
r, floatPoint); | 163 PaintLayer::mapPointInPaintInvalidationContainerToBacking(&paintInvalida
tionContainer, floatPoint); |
164 | 164 |
165 switch (i) { | 165 switch (i) { |
166 case 0: compositedSpaceQuad.setP1(floatPoint); break; | 166 case 0: compositedSpaceQuad.setP1(floatPoint); break; |
167 case 1: compositedSpaceQuad.setP2(floatPoint); break; | 167 case 1: compositedSpaceQuad.setP2(floatPoint); break; |
168 case 2: compositedSpaceQuad.setP3(floatPoint); break; | 168 case 2: compositedSpaceQuad.setP3(floatPoint); break; |
169 case 3: compositedSpaceQuad.setP4(floatPoint); break; | 169 case 3: compositedSpaceQuad.setP4(floatPoint); break; |
170 } | 170 } |
171 } | 171 } |
172 } | 172 } |
173 | 173 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 { | 372 { |
373 return clipLayer(); | 373 return clipLayer(); |
374 } | 374 } |
375 | 375 |
376 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const | 376 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const |
377 { | 377 { |
378 return m_compositorPlayer.get(); | 378 return m_compositorPlayer.get(); |
379 } | 379 } |
380 | 380 |
381 } // namespace blink | 381 } // namespace blink |
OLD | NEW |