OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2009 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 * | 24 * |
25 */ | 25 */ |
26 | 26 |
27 #include "config.h" | 27 #include "config.h" |
28 #include "core/dom/ClientRectList.h" | 28 #include "core/dom/ClientRectList.h" |
29 | 29 |
30 namespace blink { | 30 namespace blink { |
31 | 31 |
32 DEFINE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ClientRectList); | |
33 | |
34 ClientRectList::ClientRectList() | 32 ClientRectList::ClientRectList() |
35 { | 33 { |
36 } | 34 } |
37 | 35 |
38 ClientRectList::ClientRectList(const Vector<FloatQuad>& quads) | 36 ClientRectList::ClientRectList(const Vector<FloatQuad>& quads) |
39 { | 37 { |
40 m_list.reserveInitialCapacity(quads.size()); | 38 m_list.reserveInitialCapacity(quads.size()); |
41 for (size_t i = 0; i < quads.size(); ++i) | 39 for (size_t i = 0; i < quads.size(); ++i) |
42 m_list.append(ClientRect::create(quads[i].boundingBox())); | 40 m_list.append(ClientRect::create(quads[i].boundingBox())); |
43 } | 41 } |
(...skipping 10 matching lines...) Expand all Loading... |
54 | 52 |
55 return m_list[index].get(); | 53 return m_list[index].get(); |
56 } | 54 } |
57 | 55 |
58 DEFINE_TRACE(ClientRectList) | 56 DEFINE_TRACE(ClientRectList) |
59 { | 57 { |
60 visitor->trace(m_list); | 58 visitor->trace(m_list); |
61 } | 59 } |
62 | 60 |
63 } // namespace blink | 61 } // namespace blink |
OLD | NEW |