Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(858)

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp

Issue 1901403002: Remove UserAgent ShadowRoot + Author ShadowRoot code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h ('k') | third_party/WebKit/Source/core/frame/Deprecation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698