Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
| OLD | NEW |