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

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

Issue 2390543002: Reflow comments in core/dom/. (Closed)
Patch Set: Reformat comments in core/dom/. Created 4 years, 2 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 DocumentFragment::detachLayoutTree(context); 145 DocumentFragment::detachLayoutTree(context);
146 } 146 }
147 147
148 Node::InsertionNotificationRequest ShadowRoot::insertedInto( 148 Node::InsertionNotificationRequest ShadowRoot::insertedInto(
149 ContainerNode* insertionPoint) { 149 ContainerNode* insertionPoint) {
150 DocumentFragment::insertedInto(insertionPoint); 150 DocumentFragment::insertedInto(insertionPoint);
151 151
152 if (!insertionPoint->isConnected() || !isOldest()) 152 if (!insertionPoint->isConnected() || !isOldest())
153 return InsertionDone; 153 return InsertionDone;
154 154
155 // FIXME: When parsing <video controls>, insertedInto() is called many times w ithout invoking removedFrom. 155 // FIXME: When parsing <video controls>, insertedInto() is called many times
156 // For now, we check m_registeredWithParentShadowroot. We would like to DCHECK (!m_registeredShadowRoot) here. 156 // without invoking removedFrom. For now, we check
157 // m_registeredWithParentShadowroot. We would like to
158 // DCHECK(!m_registeredShadowRoot) here.
157 // https://bugs.webkit.org/show_bug.cig?id=101316 159 // https://bugs.webkit.org/show_bug.cig?id=101316
158 if (m_registeredWithParentShadowRoot) 160 if (m_registeredWithParentShadowRoot)
159 return InsertionDone; 161 return InsertionDone;
160 162
161 if (ShadowRoot* root = host().containingShadowRoot()) { 163 if (ShadowRoot* root = host().containingShadowRoot()) {
162 root->addChildShadowRoot(); 164 root->addChildShadowRoot();
163 m_registeredWithParentShadowRoot = true; 165 m_registeredWithParentShadowRoot = true;
164 } 166 }
165 167
166 return InsertionDone; 168 return InsertionDone;
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 ostream << "ShadowRootType::Open"; 323 ostream << "ShadowRootType::Open";
322 break; 324 break;
323 case ShadowRootType::Closed: 325 case ShadowRootType::Closed:
324 ostream << "ShadowRootType::Closed"; 326 ostream << "ShadowRootType::Closed";
325 break; 327 break;
326 } 328 }
327 return ostream; 329 return ostream;
328 } 330 }
329 331
330 } // namespace blink 332 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ShadowRoot.h ('k') | third_party/WebKit/Source/core/dom/shadow/SlotAssignment.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698