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

Side by Side Diff: Source/WebCore/html/HTMLFrameElementBase.cpp

Issue 10875067: Merge 126131 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « Source/WebCore/html/HTMLFrameElementBase.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 m_frameName = getNameAttribute(); 150 m_frameName = getNameAttribute();
151 if (m_frameName.isNull()) 151 if (m_frameName.isNull())
152 m_frameName = getIdAttribute(); 152 m_frameName = getIdAttribute();
153 openURL(); 153 openURL();
154 } 154 }
155 155
156 Node::InsertionNotificationRequest HTMLFrameElementBase::insertedInto(ContainerN ode* insertionPoint) 156 Node::InsertionNotificationRequest HTMLFrameElementBase::insertedInto(ContainerN ode* insertionPoint)
157 { 157 {
158 HTMLFrameOwnerElement::insertedInto(insertionPoint); 158 HTMLFrameOwnerElement::insertedInto(insertionPoint);
159 if (insertionPoint->inDocument()) 159 if (insertionPoint->inDocument())
160 return InsertionShouldCallDidNotifyDescendantInsertions; 160 return InsertionShouldCallDidNotifySubtreeInsertions;
161 return InsertionDone; 161 return InsertionDone;
162 } 162 }
163 163
164 void HTMLFrameElementBase::didNotifyDescendantInsertions(ContainerNode* insertio nPoint) 164 void HTMLFrameElementBase::didNotifySubtreeInsertions(ContainerNode* insertionPo int)
165 { 165 {
166 ASSERT_UNUSED(insertionPoint, insertionPoint->inDocument()); 166 ASSERT_UNUSED(insertionPoint, insertionPoint->inDocument());
167 167
168 // DocumentFragments don't kick of any loads. 168 // DocumentFragments don't kick of any loads.
169 if (!document()->frame()) 169 if (!document()->frame())
170 return; 170 return;
171 171
172 // JavaScript in src=javascript: and beforeonload can access the renderer 172 // JavaScript in src=javascript: and beforeonload can access the renderer
173 // during attribute parsing *before* the normal parser machinery would 173 // during attribute parsing *before* the normal parser machinery would
174 // attach the element. To support this, we lazyAttach here, but only 174 // attach the element. To support this, we lazyAttach here, but only
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 int HTMLFrameElementBase::height() 241 int HTMLFrameElementBase::height()
242 { 242 {
243 document()->updateLayoutIgnorePendingStylesheets(); 243 document()->updateLayoutIgnorePendingStylesheets();
244 if (!renderBox()) 244 if (!renderBox())
245 return 0; 245 return 0;
246 return renderBox()->height(); 246 return renderBox()->height();
247 } 247 }
248 248
249 } // namespace WebCore 249 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLFrameElementBase.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698