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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type) | 56 ShadowRoot::ShadowRoot(Document& document, ShadowRootType type) |
57 : DocumentFragment(0, CreateShadowRoot) | 57 : DocumentFragment(0, CreateShadowRoot) |
58 , TreeScope(*this, document) | 58 , TreeScope(*this, document) |
59 , m_prev(nullptr) | 59 , m_prev(nullptr) |
60 , m_next(nullptr) | 60 , m_next(nullptr) |
61 , m_numberOfStyles(0) | 61 , m_numberOfStyles(0) |
62 , m_type(type) | 62 , m_type(type) |
63 , m_registeredWithParentShadowRoot(false) | 63 , m_registeredWithParentShadowRoot(false) |
64 , m_descendantInsertionPointsIsValid(false) | 64 , m_descendantInsertionPointsIsValid(false) |
| 65 , m_delegatesFocus(false) |
65 { | 66 { |
66 } | 67 } |
67 | 68 |
68 ShadowRoot::~ShadowRoot() | 69 ShadowRoot::~ShadowRoot() |
69 { | 70 { |
70 #if !ENABLE(OILPAN) | 71 #if !ENABLE(OILPAN) |
71 ASSERT(!m_prev); | 72 ASSERT(!m_prev); |
72 ASSERT(!m_next); | 73 ASSERT(!m_next); |
73 | 74 |
74 if (m_shadowRootRareData && m_shadowRootRareData->styleSheets()) | 75 if (m_shadowRootRareData && m_shadowRootRareData->styleSheets()) |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
325 DEFINE_TRACE(ShadowRoot) | 326 DEFINE_TRACE(ShadowRoot) |
326 { | 327 { |
327 visitor->trace(m_prev); | 328 visitor->trace(m_prev); |
328 visitor->trace(m_next); | 329 visitor->trace(m_next); |
329 visitor->trace(m_shadowRootRareData); | 330 visitor->trace(m_shadowRootRareData); |
330 TreeScope::trace(visitor); | 331 TreeScope::trace(visitor); |
331 DocumentFragment::trace(visitor); | 332 DocumentFragment::trace(visitor); |
332 } | 333 } |
333 | 334 |
334 } | 335 } |
OLD | NEW |