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

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

Issue 202633009: Add Element::subResourceAttributeName() virtual function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use nullQName() Created 6 years, 9 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
« no previous file with comments | « Source/core/html/HTMLObjectElement.h ('k') | Source/core/html/HTMLQuoteElement.h » ('j') | 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 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 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 return attribute.name() == codebaseAttr || attribute.name() == dataAttr 368 return attribute.name() == codebaseAttr || attribute.name() == dataAttr
369 || (attribute.name() == usemapAttr && attribute.value().string()[0] != ' #') 369 || (attribute.name() == usemapAttr && attribute.value().string()[0] != ' #')
370 || HTMLPlugInElement::isURLAttribute(attribute); 370 || HTMLPlugInElement::isURLAttribute(attribute);
371 } 371 }
372 372
373 bool HTMLObjectElement::hasLegalLinkAttribute(const QualifiedName& name) const 373 bool HTMLObjectElement::hasLegalLinkAttribute(const QualifiedName& name) const
374 { 374 {
375 return name == classidAttr || name == dataAttr || name == codebaseAttr || HT MLPlugInElement::hasLegalLinkAttribute(name); 375 return name == classidAttr || name == dataAttr || name == codebaseAttr || HT MLPlugInElement::hasLegalLinkAttribute(name);
376 } 376 }
377 377
378 const QualifiedName& HTMLObjectElement::subResourceAttributeName() const
379 {
380 return dataAttr;
381 }
382
378 const AtomicString HTMLObjectElement::imageSourceURL() const 383 const AtomicString HTMLObjectElement::imageSourceURL() const
379 { 384 {
380 return getAttribute(dataAttr); 385 return getAttribute(dataAttr);
381 } 386 }
382 387
383 // FIXME: Remove this hack. 388 // FIXME: Remove this hack.
384 void HTMLObjectElement::reattachFallbackContent() 389 void HTMLObjectElement::reattachFallbackContent()
385 { 390 {
386 // This can happen inside of attach() in the middle of a recalcStyle so we n eed to 391 // This can happen inside of attach() in the middle of a recalcStyle so we n eed to
387 // reattach synchronously here. 392 // reattach synchronously here.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 { 484 {
480 return fastHasAttribute(usemapAttr); 485 return fastHasAttribute(usemapAttr);
481 } 486 }
482 487
483 bool HTMLObjectElement::useFallbackContent() const 488 bool HTMLObjectElement::useFallbackContent() const
484 { 489 {
485 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; 490 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent;
486 } 491 }
487 492
488 } 493 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLObjectElement.h ('k') | Source/core/html/HTMLQuoteElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698