| 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 264         return; | 264         return; | 
| 265 | 265 | 
| 266     SkPictureRecorder recorder; | 266     SkPictureRecorder recorder; | 
| 267     gfx::Rect visualRect = paintableRegion(); | 267     gfx::Rect visualRect = paintableRegion(); | 
| 268     SkCanvas* canvas = recorder.beginRecording(visualRect.width(), visualRect.he
     ight()); | 268     SkCanvas* canvas = recorder.beginRecording(visualRect.width(), visualRect.he
     ight()); | 
| 269 | 269 | 
| 270     SkPaint paint; | 270     SkPaint paint; | 
| 271     paint.setStyle(SkPaint::kFill_Style); | 271     paint.setStyle(SkPaint::kFill_Style); | 
| 272     paint.setFlags(SkPaint::kAntiAlias_Flag); | 272     paint.setFlags(SkPaint::kAntiAlias_Flag); | 
| 273     paint.setColor(m_node->layoutObject()->style()->tapHighlightColor().rgb()); | 273     paint.setColor(m_node->layoutObject()->style()->tapHighlightColor().rgb()); | 
| 274     canvas->drawPath(m_path.skPath(), paint); | 274     canvas->drawPath(m_path.getSkPath(), paint); | 
| 275 | 275 | 
| 276     RefPtr<const SkPicture> picture = adoptRef(recorder.endRecording()); | 276     RefPtr<const SkPicture> picture = adoptRef(recorder.endRecording()); | 
| 277     webDisplayItemList->appendDrawingItem(WebRect(visualRect.x(), visualRect.y()
     , visualRect.width(), visualRect.height()), picture.get()); | 277     webDisplayItemList->appendDrawingItem(WebRect(visualRect.x(), visualRect.y()
     , visualRect.width(), visualRect.height()), picture.get()); | 
| 278 } | 278 } | 
| 279 | 279 | 
| 280 void LinkHighlightImpl::startHighlightAnimationIfNeeded() | 280 void LinkHighlightImpl::startHighlightAnimationIfNeeded() | 
| 281 { | 281 { | 
| 282     if (m_isAnimating) | 282     if (m_isAnimating) | 
| 283         return; | 283         return; | 
| 284 | 284 | 
| (...skipping 87 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 | 
|---|