| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Neither the name of Google Inc. nor the names of its | 10 * * Neither the name of Google Inc. nor the names of its |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 #include "core/dom/shadow/ElementShadow.h" | 37 #include "core/dom/shadow/ElementShadow.h" |
| 38 #include "core/dom/shadow/InsertionPoint.h" | 38 #include "core/dom/shadow/InsertionPoint.h" |
| 39 #include "core/dom/shadow/ShadowRootRareData.h" | 39 #include "core/dom/shadow/ShadowRootRareData.h" |
| 40 #include "core/editing/markup.h" | 40 #include "core/editing/markup.h" |
| 41 #include "core/html/HTMLShadowElement.h" | 41 #include "core/html/HTMLShadowElement.h" |
| 42 #include "public/platform/Platform.h" | 42 #include "public/platform/Platform.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope, public
DoublyLinkedListNode<ShadowRoot> { | 46 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope, public
DoublyLinkedListNode<ShadowRoot> { |
| 47 #if ENABLE(OILPAN) |
| 48 char emptyClassFieldsDueToGCMixinMarker[1]; |
| 49 #endif |
| 47 void* pointers[3]; | 50 void* pointers[3]; |
| 48 unsigned countersAndFlags[1]; | 51 unsigned countersAndFlags[1]; |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 static_assert(sizeof(ShadowRoot) == sizeof(SameSizeAsShadowRoot), "ShadowRoot sh
ould stay small"); | 54 static_assert(sizeof(ShadowRoot) == sizeof(SameSizeAsShadowRoot), "ShadowRoot sh
ould stay small"); |
| 52 | 55 |
| 53 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type) | 56 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type) |
| 54 : DocumentFragment(0, CreateShadowRoot) | 57 : DocumentFragment(0, CreateShadowRoot) |
| 55 , TreeScope(*this, document) | 58 , TreeScope(*this, document) |
| 56 , m_prev(nullptr) | 59 , m_prev(nullptr) |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 DEFINE_TRACE(ShadowRoot) | 325 DEFINE_TRACE(ShadowRoot) |
| 323 { | 326 { |
| 324 visitor->trace(m_prev); | 327 visitor->trace(m_prev); |
| 325 visitor->trace(m_next); | 328 visitor->trace(m_next); |
| 326 visitor->trace(m_shadowRootRareData); | 329 visitor->trace(m_shadowRootRareData); |
| 327 TreeScope::trace(visitor); | 330 TreeScope::trace(visitor); |
| 328 DocumentFragment::trace(visitor); | 331 DocumentFragment::trace(visitor); |
| 329 } | 332 } |
| 330 | 333 |
| 331 } | 334 } |
| OLD | NEW |