39
39
#include " core/rendering/compositing/CompositedLayerMapping.h"
40
40
#include " core/rendering/style/ShadowData.h"
41
41
#include " platform/graphics/Color.h"
42
- #include " platform/graphics/DisplayList.h"
43
42
#include " public/platform/Platform.h"
44
43
#include " public/platform/WebCompositorAnimationCurve.h"
45
44
#include " public/platform/WebCompositorSupport.h"
@@ -237,13 +236,6 @@ bool LinkHighlight::computeHighlightLayerPathAndPosition(RenderLayer* compositin
237
236
bool pathHasChanged = !(newPath == m_path);
238
237
if (pathHasChanged) {
239
238
m_path = newPath;
240
-
241
- GraphicsContext gc (0 );
242
- gc.beginRecording (boundingRect);
243
- gc.setFillColor (m_node->renderer ()->style ()->tapHighlightColor ());
244
- gc.fillPath (m_path);
245
- m_displayList = gc.endRecording ();
246
-
247
239
m_contentLayer->layer ()->setBounds (enclosingIntRect (boundingRect).size ());
248
240
}
249
241
@@ -260,8 +252,9 @@ void LinkHighlight::paintContents(WebCanvas* canvas, const WebRect& webClipRect,
260
252
GraphicsContext gc (canvas,
261
253
contextStatus == WebContentLayerClient::GraphicsContextEnabled ? GraphicsContext::NothingDisabled : GraphicsContext::FullyDisabled);
262
254
IntRect clipRect (IntPoint (webClipRect.x , webClipRect.y ), IntSize (webClipRect.width , webClipRect.height ));
263
- m_displayList->setClip (clipRect);
264
- gc.drawDisplayList (m_displayList.get ());
255
+ gc.clip (clipRect);
256
+ gc.setFillColor (m_node->renderer ()->style ()->tapHighlightColor ());
257
+ gc.fillPath (m_path);
265
258
}
266
259
267
260
void LinkHighlight::startHighlightAnimationIfNeeded ()
0 commit comments