| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 return m_shadowRootRareDataV0->descendantInsertionPoints(); | 267 return m_shadowRootRareDataV0->descendantInsertionPoints(); |
| 268 | 268 |
| 269 m_descendantInsertionPointsIsValid = true; | 269 m_descendantInsertionPointsIsValid = true; |
| 270 | 270 |
| 271 if (!containsInsertionPoints()) | 271 if (!containsInsertionPoints()) |
| 272 return emptyList; | 272 return emptyList; |
| 273 | 273 |
| 274 HeapVector<Member<InsertionPoint>> insertionPoints; | 274 HeapVector<Member<InsertionPoint>> insertionPoints; |
| 275 for (InsertionPoint& insertionPoint : | 275 for (InsertionPoint& insertionPoint : |
| 276 Traversal<InsertionPoint>::descendantsOf(*this)) | 276 Traversal<InsertionPoint>::descendantsOf(*this)) |
| 277 insertionPoints.append(&insertionPoint); | 277 insertionPoints.push_back(&insertionPoint); |
| 278 | 278 |
| 279 ensureShadowRootRareDataV0().setDescendantInsertionPoints(insertionPoints); | 279 ensureShadowRootRareDataV0().setDescendantInsertionPoints(insertionPoints); |
| 280 | 280 |
| 281 return m_shadowRootRareDataV0->descendantInsertionPoints(); | 281 return m_shadowRootRareDataV0->descendantInsertionPoints(); |
| 282 } | 282 } |
| 283 | 283 |
| 284 StyleSheetList& ShadowRoot::styleSheets() { | 284 StyleSheetList& ShadowRoot::styleSheets() { |
| 285 if (!m_styleSheetList) | 285 if (!m_styleSheetList) |
| 286 setStyleSheets(StyleSheetList::create(this)); | 286 setStyleSheets(StyleSheetList::create(this)); |
| 287 return *m_styleSheetList; | 287 return *m_styleSheetList; |
| (...skipping 28 matching lines...) Expand all Loading... |
| 316 ostream << "ShadowRootType::Open"; | 316 ostream << "ShadowRootType::Open"; |
| 317 break; | 317 break; |
| 318 case ShadowRootType::Closed: | 318 case ShadowRootType::Closed: |
| 319 ostream << "ShadowRootType::Closed"; | 319 ostream << "ShadowRootType::Closed"; |
| 320 break; | 320 break; |
| 321 } | 321 } |
| 322 return ostream; | 322 return ostream; |
| 323 } | 323 } |
| 324 | 324 |
| 325 } // namespace blink | 325 } // namespace blink |
| OLD | NEW |