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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.cpp

Issue 2384273007: reflow comments in core/html/*.{cpp,h},core/html/imports (Closed)
Patch Set: comments 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) 2006, 2007, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 145
146 LayoutPart* HTMLFrameOwnerElement::layoutPart() const { 146 LayoutPart* HTMLFrameOwnerElement::layoutPart() const {
147 // HTMLObjectElement and HTMLEmbedElement may return arbitrary layoutObjects 147 // HTMLObjectElement and HTMLEmbedElement may return arbitrary layoutObjects
148 // when using fallback content. 148 // when using fallback content.
149 if (!layoutObject() || !layoutObject()->isLayoutPart()) 149 if (!layoutObject() || !layoutObject()->isLayoutPart())
150 return nullptr; 150 return nullptr;
151 return toLayoutPart(layoutObject()); 151 return toLayoutPart(layoutObject());
152 } 152 }
153 153
154 void HTMLFrameOwnerElement::setContentFrame(Frame& frame) { 154 void HTMLFrameOwnerElement::setContentFrame(Frame& frame) {
155 // Make sure we will not end up with two frames referencing the same owner ele ment. 155 // Make sure we will not end up with two frames referencing the same owner
156 // element.
156 DCHECK(!m_contentFrame || m_contentFrame->owner() != this); 157 DCHECK(!m_contentFrame || m_contentFrame->owner() != this);
157 // Disconnected frames should not be allowed to load. 158 // Disconnected frames should not be allowed to load.
158 DCHECK(isConnected()); 159 DCHECK(isConnected());
159 m_contentFrame = &frame; 160 m_contentFrame = &frame;
160 161
161 for (ContainerNode* node = this; node; node = node->parentOrShadowHostNode()) 162 for (ContainerNode* node = this; node; node = node->parentOrShadowHostNode())
162 node->incrementConnectedSubframeCount(); 163 node->incrementConnectedSubframeCount();
163 } 164 }
164 165
165 void HTMLFrameOwnerElement::clearContentFrame() { 166 void HTMLFrameOwnerElement::clearContentFrame() {
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 } 322 }
322 323
323 DEFINE_TRACE(HTMLFrameOwnerElement) { 324 DEFINE_TRACE(HTMLFrameOwnerElement) {
324 visitor->trace(m_contentFrame); 325 visitor->trace(m_contentFrame);
325 visitor->trace(m_widget); 326 visitor->trace(m_widget);
326 HTMLElement::trace(visitor); 327 HTMLElement::trace(visitor);
327 FrameOwner::trace(visitor); 328 FrameOwner::trace(visitor);
328 } 329 }
329 330
330 } // namespace blink 331 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698