| OLD | NEW |
| 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 #include "config.h" | 5 #include "sky/engine/config.h" |
| 6 #include "wtf/ArrayPiece.h" | 6 #include "sky/engine/wtf/ArrayPiece.h" |
| 7 | 7 |
| 8 #include "wtf/ArrayBuffer.h" | 8 #include "sky/engine/wtf/ArrayBuffer.h" |
| 9 #include "wtf/ArrayBufferView.h" | 9 #include "sky/engine/wtf/ArrayBufferView.h" |
| 10 #include "wtf/Assertions.h" | 10 #include "sky/engine/wtf/Assertions.h" |
| 11 | 11 |
| 12 namespace WTF { | 12 namespace WTF { |
| 13 | 13 |
| 14 ArrayPiece::ArrayPiece() | 14 ArrayPiece::ArrayPiece() |
| 15 { | 15 { |
| 16 initNull(); | 16 initNull(); |
| 17 } | 17 } |
| 18 | 18 |
| 19 ArrayPiece::ArrayPiece(void* data, unsigned byteLength) | 19 ArrayPiece::ArrayPiece(void* data, unsigned byteLength) |
| 20 { | 20 { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 } | 69 } |
| 70 | 70 |
| 71 void ArrayPiece::initNull() | 71 void ArrayPiece::initNull() |
| 72 { | 72 { |
| 73 m_byteLength = 0; | 73 m_byteLength = 0; |
| 74 m_data = 0; | 74 m_data = 0; |
| 75 m_isNull = true; | 75 m_isNull = true; |
| 76 } | 76 } |
| 77 | 77 |
| 78 } // namespace WTF | 78 } // namespace WTF |
| OLD | NEW |