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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2718023002: //third_party/WebKit/Source/core: include v8 as a user, not system, header (Closed)
Patch Set: Fix plugin/BUILD.gn deps Created 3 years, 9 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
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 10 matching lines...) Expand all
21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 22 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 */ 26 */
27 27
28 #include "core/html/HTMLCanvasElement.h" 28 #include "core/html/HTMLCanvasElement.h"
29 29
30 #include <math.h> 30 #include <math.h>
31 #include <v8.h> 31
32 #include <memory> 32 #include <memory>
33
33 #include "bindings/core/v8/ExceptionMessages.h" 34 #include "bindings/core/v8/ExceptionMessages.h"
34 #include "bindings/core/v8/ExceptionState.h" 35 #include "bindings/core/v8/ExceptionState.h"
35 #include "bindings/core/v8/ScriptController.h" 36 #include "bindings/core/v8/ScriptController.h"
36 #include "core/HTMLNames.h" 37 #include "core/HTMLNames.h"
37 #include "core/InputTypeNames.h" 38 #include "core/InputTypeNames.h"
38 #include "core/dom/Document.h" 39 #include "core/dom/Document.h"
39 #include "core/dom/Element.h" 40 #include "core/dom/Element.h"
40 #include "core/dom/ElementTraversal.h" 41 #include "core/dom/ElementTraversal.h"
41 #include "core/dom/ExceptionCode.h" 42 #include "core/dom/ExceptionCode.h"
42 #include "core/dom/TaskRunnerHelper.h" 43 #include "core/dom/TaskRunnerHelper.h"
(...skipping 29 matching lines...) Expand all
72 #include "platform/graphics/ImageBuffer.h" 73 #include "platform/graphics/ImageBuffer.h"
73 #include "platform/graphics/RecordingImageBufferSurface.h" 74 #include "platform/graphics/RecordingImageBufferSurface.h"
74 #include "platform/graphics/StaticBitmapImage.h" 75 #include "platform/graphics/StaticBitmapImage.h"
75 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 76 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
76 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" 77 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h"
77 #include "platform/graphics/paint/PaintCanvas.h" 78 #include "platform/graphics/paint/PaintCanvas.h"
78 #include "platform/image-encoders/ImageEncoderUtils.h" 79 #include "platform/image-encoders/ImageEncoderUtils.h"
79 #include "platform/transforms/AffineTransform.h" 80 #include "platform/transforms/AffineTransform.h"
80 #include "public/platform/Platform.h" 81 #include "public/platform/Platform.h"
81 #include "public/platform/WebTraceLocation.h" 82 #include "public/platform/WebTraceLocation.h"
83 #include "v8/include/v8.h"
82 #include "wtf/CheckedNumeric.h" 84 #include "wtf/CheckedNumeric.h"
83 #include "wtf/PtrUtil.h" 85 #include "wtf/PtrUtil.h"
84 86
85 namespace blink { 87 namespace blink {
86 88
87 using namespace HTMLNames; 89 using namespace HTMLNames;
88 90
89 namespace { 91 namespace {
90 92
91 // These values come from the WhatWG spec. 93 // These values come from the WhatWG spec.
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 // Creates a placeholder layer first before Surface is created. 1456 // Creates a placeholder layer first before Surface is created.
1455 m_surfaceLayerBridge->createSolidColorLayer(); 1457 m_surfaceLayerBridge->createSolidColorLayer();
1456 } 1458 }
1457 } 1459 }
1458 1460
1459 void HTMLCanvasElement::OnWebLayerReplaced() { 1461 void HTMLCanvasElement::OnWebLayerReplaced() {
1460 setNeedsCompositingUpdate(); 1462 setNeedsCompositingUpdate();
1461 } 1463 }
1462 1464
1463 } // namespace blink 1465 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/html/HTMLPlugInElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698