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

Side by Side Diff: Source/core/html/HTMLObjectElement.cpp

Issue 24430002: Rename attach and detach to createRenderTree/destroyRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
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 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 { 349 {
350 return attribute.name() == dataAttr || (attribute.name() == usemapAttr && at tribute.value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(at tribute); 350 return attribute.name() == dataAttr || (attribute.name() == usemapAttr && at tribute.value().string()[0] != '#') || HTMLPlugInImageElement::isURLAttribute(at tribute);
351 } 351 }
352 352
353 const AtomicString HTMLObjectElement::imageSourceURL() const 353 const AtomicString HTMLObjectElement::imageSourceURL() const
354 { 354 {
355 return getAttribute(dataAttr); 355 return getAttribute(dataAttr);
356 } 356 }
357 357
358 // FIXME: Remove this hack. 358 // FIXME: Remove this hack.
359 void HTMLObjectElement::reattachFallbackContent() 359 void HTMLObjectElement::reattachFallbackContent()
ojan 2013/09/24 22:41:24 Rename this too? Or add a FIXME to rename it.
360 { 360 {
361 // This can happen inside of attach() in the middle of a recalcStyle so we n eed to 361 // This can happen inside of attach() in the middle of a recalcStyle so we n eed to
362 // reattach synchronously here. 362 // reattach synchronously here.
363 if (document().inStyleRecalc()) 363 if (document().inStyleRecalc())
364 reattach(); 364 recreateRenderTree();
365 else 365 else
366 lazyReattach(); 366 scheduleRenderTreeReconstruction();
367 } 367 }
368 368
369 void HTMLObjectElement::renderFallbackContent() 369 void HTMLObjectElement::renderFallbackContent()
370 { 370 {
371 if (useFallbackContent()) 371 if (useFallbackContent())
372 return; 372 return;
373 373
374 if (!inDocument()) 374 if (!inDocument())
375 return; 375 return;
376 376
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 encoding.appendData(name(), value); 502 encoding.appendData(name(), value);
503 return true; 503 return true;
504 } 504 }
505 505
506 HTMLFormElement* HTMLObjectElement::virtualForm() const 506 HTMLFormElement* HTMLObjectElement::virtualForm() const
507 { 507 {
508 return FormAssociatedElement::form(); 508 return FormAssociatedElement::form();
509 } 509 }
510 510
511 } 511 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698