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

Side by Side Diff: LayoutTests/compositing/gestures/resources/link-highlight-helper.js

Issue 129643002: Fix link highlights on links that contain images. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
OLDNEW
1 function createSquareCompositedHighlight(node)
2 {
3 return _createHighlight(node, "squaredHighlight highlightDiv composited");
4 }
5
1 function createCompositedHighlight(node) 6 function createCompositedHighlight(node)
2 { 7 {
3 return _createHighlight(node, "highlightDiv composited"); 8 return _createHighlight(node, "highlightDiv composited");
4 } 9 }
5 10
6 function createHighlight(node) 11 function createHighlight(node)
7 { 12 {
8 return _createHighlight(node, "highlightDiv"); 13 return _createHighlight(node, "highlightDiv");
9 } 14 }
10 15
(...skipping 21 matching lines...) Expand all
32 if ( !isNaN( elem.offsetLeft ) ) 37 if ( !isNaN( elem.offsetLeft ) )
33 offsetLeft += elem.offsetLeft - elem.scrollLeft; 38 offsetLeft += elem.offsetLeft - elem.scrollLeft;
34 39
35 if ( !isNaN( elem.offsetTop ) ) 40 if ( !isNaN( elem.offsetTop ) )
36 offsetTop += elem.offsetTop - elem.scrollTop; 41 offsetTop += elem.offsetTop - elem.scrollTop;
37 42
38 } while( elem = elem.offsetParent ); 43 } while( elem = elem.offsetParent );
39 return { top : offsetTop, 44 return { top : offsetTop,
40 left : offsetLeft }; 45 left : offsetLeft };
41 } 46 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698