Skip to content
This repository was archived by the owner on Apr 3, 2020. It is now read-only.

Commit dc24b65

Browse files
author
Raphael Kubo da Costa
committed
Merge pull request #36 from rakuco/m39.71
Merge changes for Chromium 39.0.2171.71.
2 parents 1620cce + b43792a commit dc24b65

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

Source/web/LinkHighlight.cpp

+3-10
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
#include "core/rendering/compositing/CompositedLayerMapping.h"
4040
#include "core/rendering/style/ShadowData.h"
4141
#include "platform/graphics/Color.h"
42-
#include "platform/graphics/DisplayList.h"
4342
#include "public/platform/Platform.h"
4443
#include "public/platform/WebCompositorAnimationCurve.h"
4544
#include "public/platform/WebCompositorSupport.h"
@@ -237,13 +236,6 @@ bool LinkHighlight::computeHighlightLayerPathAndPosition(RenderLayer* compositin
237236
bool pathHasChanged = !(newPath == m_path);
238237
if (pathHasChanged) {
239238
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-
247239
m_contentLayer->layer()->setBounds(enclosingIntRect(boundingRect).size());
248240
}
249241

@@ -260,8 +252,9 @@ void LinkHighlight::paintContents(WebCanvas* canvas, const WebRect& webClipRect,
260252
GraphicsContext gc(canvas,
261253
contextStatus == WebContentLayerClient::GraphicsContextEnabled ? GraphicsContext::NothingDisabled : GraphicsContext::FullyDisabled);
262254
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);
265258
}
266259

267260
void LinkHighlight::startHighlightAnimationIfNeeded()

Source/web/LinkHighlight.h

-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939

4040
namespace blink {
4141

42-
class DisplayList;
4342
class Node;
4443
class RenderLayer;
4544
class RenderObject;
@@ -86,7 +85,6 @@ class LinkHighlight FINAL : public WebContentLayerClient, public WebCompositorAn
8685
OwnPtr<WebContentLayer> m_contentLayer;
8786
OwnPtr<WebLayer> m_clipLayer;
8887
Path m_path;
89-
RefPtr<DisplayList> m_displayList;
9088

9189
RefPtrWillBePersistent<Node> m_node;
9290
WebViewImpl* m_owningWebViewImpl;

0 commit comments

Comments
 (0)