Index: third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
diff --git a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
index 3ec14ec1730ce7acaff02eed956a5182c0f28afa..89dff62b57e681e27e79c67c4ba85c159dc955d1 100644 |
--- a/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
+++ b/third_party/WebKit/Source/web/LinkHighlightImpl.cpp |
@@ -45,6 +45,8 @@ |
#include "platform/graphics/CompositorMutableProperties.h" |
#include "platform/graphics/GraphicsLayer.h" |
#include "platform/graphics/paint/DrawingRecorder.h" |
+#include "platform/graphics/paint/PaintCanvas.h" |
+#include "platform/graphics/paint/PaintRecorder.h" |
#include "public/platform/Platform.h" |
#include "public/platform/WebCompositorSupport.h" |
#include "public/platform/WebContentLayer.h" |
@@ -54,9 +56,7 @@ |
#include "public/platform/WebRect.h" |
#include "public/platform/WebSize.h" |
#include "public/web/WebKit.h" |
-#include "third_party/skia/include/core/SkCanvas.h" |
#include "third_party/skia/include/core/SkMatrix44.h" |
-#include "third_party/skia/include/core/SkPictureRecorder.h" |
#include "ui/gfx/geometry/rect.h" |
#include "web/WebLocalFrameImpl.h" |
#include "web/WebSettingsImpl.h" |
@@ -275,14 +275,14 @@ void LinkHighlightImpl::paintContents( |
if (!m_node || !m_node->layoutObject()) |
return; |
- SkPictureRecorder recorder; |
+ PaintRecorder recorder; |
gfx::Rect visualRect = paintableRegion(); |
- SkCanvas* canvas = |
+ PaintCanvas* canvas = |
recorder.beginRecording(visualRect.width(), visualRect.height()); |
- SkPaint paint; |
- paint.setStyle(SkPaint::kFill_Style); |
- paint.setFlags(SkPaint::kAntiAlias_Flag); |
+ PaintFlags paint; |
+ paint.setStyle(PaintFlags::kFill_Style); |
+ paint.setAntiAlias(true); |
paint.setColor(m_node->layoutObject()->style()->tapHighlightColor().rgb()); |
canvas->drawPath(m_path.getSkPath(), paint); |