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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLFrameSetElement.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) 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, 2009, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009, 2010 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 evt->setDefaultHandled(); 255 evt->setDefaultHandled();
256 return; 256 return;
257 } 257 }
258 } 258 }
259 HTMLElement::defaultEventHandler(evt); 259 HTMLElement::defaultEventHandler(evt);
260 } 260 }
261 261
262 Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto( 262 Node::InsertionNotificationRequest HTMLFrameSetElement::insertedInto(
263 ContainerNode* insertionPoint) { 263 ContainerNode* insertionPoint) {
264 if (insertionPoint->isConnected() && document().frame()) { 264 if (insertionPoint->isConnected() && document().frame()) {
265 // A document using <frameset> likely won't literally have a body, but as fa r as the client is concerned, the frameset is effectively the body. 265 // A document using <frameset> likely won't literally have a body, but as
266 // far as the client is concerned, the frameset is effectively the body.
266 document().willInsertBody(); 267 document().willInsertBody();
267 } 268 }
268 return HTMLElement::insertedInto(insertionPoint); 269 return HTMLElement::insertedInto(insertionPoint);
269 } 270 }
270 271
271 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) { 272 void HTMLFrameSetElement::willRecalcStyle(StyleRecalcChange) {
272 if (needsStyleRecalc() && layoutObject()) { 273 if (needsStyleRecalc() && layoutObject()) {
273 layoutObject()->setNeedsLayoutAndFullPaintInvalidation( 274 layoutObject()->setNeedsLayoutAndFullPaintInvalidation(
274 LayoutInvalidationReason::StyleChange); 275 LayoutInvalidationReason::StyleChange);
275 clearNeedsStyleRecalc(); 276 clearNeedsStyleRecalc();
276 } 277 }
277 } 278 }
278 279
279 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter( 280 LocalDOMWindow* HTMLFrameSetElement::anonymousNamedGetter(
280 const AtomicString& name) { 281 const AtomicString& name) {
281 Element* frameElement = children()->namedItem(name); 282 Element* frameElement = children()->namedItem(name);
282 if (!isHTMLFrameElement(frameElement)) 283 if (!isHTMLFrameElement(frameElement))
283 return nullptr; 284 return nullptr;
284 Document* document = toHTMLFrameElement(frameElement)->contentDocument(); 285 Document* document = toHTMLFrameElement(frameElement)->contentDocument();
285 if (!document || !document->frame()) 286 if (!document || !document->frame())
286 return nullptr; 287 return nullptr;
287 return document->domWindow(); 288 return document->domWindow();
288 } 289 }
289 290
290 } // namespace blink 291 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698