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

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/CSSPaintWorklet.cpp

Issue 2896773002: [DONT COMMIT] PaintWorklet: Move paintWorklet from 'window' to 'CSS' (Closed)
Patch Set: WIP Created 3 years, 6 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
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "modules/csspaint/CSSPaintWorklet.h"
6
7 #include "core/css/DOMWindowCSS.h"
8 #include "core/dom/Document.h"
9 #include "core/frame/LocalDOMWindow.h"
10 #include "core/frame/LocalFrame.h"
11 #include "modules/csspaint/PaintWorklet.h"
12
13 namespace blink {
14
15 // static
16 Worklet* CSSPaintWorklet::paintWorklet(ScriptState* script_state) {
17 return paintWorklet(*ToDocument(ExecutionContext::From(script_state)));
18 }
19
20 // static
21 PaintWorklet* CSSPaintWorklet::paintWorklet(Document& document) {
22 DLOG(ERROR) << document.Url().GetString();
nhiroki 2017/06/13 08:56:58 yukishiino@: I have a question. In LayoutTests/ht
nhiroki 2017/06/13 09:41:56 Sample log: [1:1:0613/021034.138374:3361121614:ER
nhiroki 2017/06/13 10:13:38 According to yukishiino@, this could be a bug in V
23 return PaintWorklet::From(*document.ExecutingWindow());
24 }
25
26 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698