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

Side by Side Diff: third_party/WebKit/Source/web/LinkHighlightImpl.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 /* 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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImplTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698