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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.h

Issue 1414553002: Fix out-of-memory crashes related to ArrayBuffer allocation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+more tweaks Created 5 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMMatrixReadOnly_h 5 #ifndef DOMMatrixReadOnly_h
6 #define DOMMatrixReadOnly_h 6 #define DOMMatrixReadOnly_h
7 7
8 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/DOMTypedArray.h" 10 #include "core/dom/DOMTypedArray.h"
10 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
11 #include "platform/transforms/TransformationMatrix.h" 12 #include "platform/transforms/TransformationMatrix.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 class DOMMatrix; 16 class DOMMatrix;
16 17
17 class DOMMatrixReadOnly : public GarbageCollectedFinalized<DOMMatrixReadOnly>, p ublic ScriptWrappable { 18 class DOMMatrixReadOnly : public GarbageCollectedFinalized<DOMMatrixReadOnly>, p ublic ScriptWrappable {
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // supports 16-byte alignment but Oilpan doesn't. So we use an OwnPtr 64 // supports 16-byte alignment but Oilpan doesn't. So we use an OwnPtr
64 // to allocate TransformationMatrix on PartitionAlloc. 65 // to allocate TransformationMatrix on PartitionAlloc.
65 // TODO(oilpan): Oilpan should support 16-byte aligned allocations. 66 // TODO(oilpan): Oilpan should support 16-byte aligned allocations.
66 OwnPtr<TransformationMatrix> m_matrix; 67 OwnPtr<TransformationMatrix> m_matrix;
67 bool m_is2D; 68 bool m_is2D;
68 }; 69 };
69 70
70 } // namespace blink 71 } // namespace blink
71 72
72 #endif 73 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/DOMArrayBuffer.h ('k') | third_party/WebKit/Source/core/dom/DOMMatrixReadOnly.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698