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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 DEFINE_TRACE(ShadowRoot) | 344 DEFINE_TRACE(ShadowRoot) |
345 { | 345 { |
346 visitor->trace(m_prev); | 346 visitor->trace(m_prev); |
347 visitor->trace(m_next); | 347 visitor->trace(m_next); |
348 visitor->trace(m_shadowRootRareData); | 348 visitor->trace(m_shadowRootRareData); |
349 visitor->trace(m_slotAssignment); | 349 visitor->trace(m_slotAssignment); |
350 TreeScope::trace(visitor); | 350 TreeScope::trace(visitor); |
351 DocumentFragment::trace(visitor); | 351 DocumentFragment::trace(visitor); |
352 } | 352 } |
353 | 353 |
| 354 #if DCHECK_IS_ON() |
| 355 std::ostream& operator<<(std::ostream& ostream, const ShadowRootType& type) |
| 356 { |
| 357 switch (type) { |
| 358 case ShadowRootType::UserAgent: |
| 359 ostream << "ShadowRootType::UserAgent"; |
| 360 break; |
| 361 case ShadowRootType::V0: |
| 362 ostream << "ShadowRootType::V0"; |
| 363 break; |
| 364 case ShadowRootType::Open: |
| 365 ostream << "ShadowRootType::Open"; |
| 366 break; |
| 367 case ShadowRootType::Closed: |
| 368 ostream << "ShadowRootType::Closed"; |
| 369 break; |
| 370 } |
| 371 return ostream; |
| 372 } |
| 373 #endif |
| 374 |
354 } // namespace blink | 375 } // namespace blink |
OLD | NEW |