Chromium Code Reviews| 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 std::ostream& operator<<(std::ostream& ostream, const ShadowRootType& type) | |
|
kochi
2016/04/20 08:21:07
Can this be compiled in only when DCHECK() is enab
tkent
2016/04/20 08:31:05
Yes. Done. Release build doesn't need this funct
| |
| 355 { | |
| 356 switch (type) { | |
| 357 case ShadowRootType::UserAgent: | |
| 358 ostream << "ShadowRootType::UserAgent"; | |
| 359 break; | |
| 360 case ShadowRootType::V0: | |
| 361 ostream << "ShadowRootType::V0"; | |
| 362 break; | |
| 363 case ShadowRootType::Open: | |
| 364 ostream << "ShadowRootType::Open"; | |
| 365 break; | |
| 366 case ShadowRootType::Closed: | |
| 367 ostream << "ShadowRootType::Closed"; | |
| 368 break; | |
| 369 } | |
| 370 return ostream; | |
| 371 } | |
| 372 | |
| 354 } // namespace blink | 373 } // namespace blink |
| OLD | NEW |