| 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 13 matching lines...) Expand all Loading... |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/dom/shadow/ShadowRoot.h" | 28 #include "core/dom/shadow/ShadowRoot.h" |
| 29 | 29 |
| 30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
| 31 #include "core/css/resolver/StyleResolver.h" | 31 #include "core/css/resolver/StyleResolver.h" |
| 32 #include "core/dom/DocumentStyleSheetCollection.h" | 32 #include "core/dom/DocumentStyleSheetCollection.h" |
| 33 #include "core/dom/Text.h" | 33 #include "core/dom/Text.h" |
| 34 #include "core/dom/shadow/ContentDistributor.h" | |
| 35 #include "core/dom/shadow/ElementShadow.h" | 34 #include "core/dom/shadow/ElementShadow.h" |
| 36 #include "core/dom/shadow/InsertionPoint.h" | 35 #include "core/dom/shadow/InsertionPoint.h" |
| 36 #include "core/dom/shadow/ScopeContentDistribution.h" |
| 37 #include "core/editing/markup.h" | 37 #include "core/editing/markup.h" |
| 38 #include "core/platform/HistogramSupport.h" | 38 #include "core/platform/HistogramSupport.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope, public
DoublyLinkedListNode<ShadowRoot> { | 42 struct SameSizeAsShadowRoot : public DocumentFragment, public TreeScope, public
DoublyLinkedListNode<ShadowRoot> { |
| 43 void* pointers[3]; | 43 void* pointers[3]; |
| 44 unsigned countersAndFlags[1]; | 44 unsigned countersAndFlags[1]; |
| 45 }; | 45 }; |
| 46 | 46 |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 337 { | 337 { |
| 338 return m_scopeDistribution ? m_scopeDistribution->numberOfElementShadowChild
ren() : 0; | 338 return m_scopeDistribution ? m_scopeDistribution->numberOfElementShadowChild
ren() : 0; |
| 339 } | 339 } |
| 340 | 340 |
| 341 InsertionPoint* ShadowRoot::insertionPoint() const | 341 InsertionPoint* ShadowRoot::insertionPoint() const |
| 342 { | 342 { |
| 343 return m_scopeDistribution ? m_scopeDistribution->insertionPointAssignedTo()
: 0; | 343 return m_scopeDistribution ? m_scopeDistribution->insertionPointAssignedTo()
: 0; |
| 344 } | 344 } |
| 345 | 345 |
| 346 } | 346 } |
| OLD | NEW |