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

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

Issue 7067001: Merge 86725 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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 | « LayoutTests/http/tests/loading/nested_bad_objects-expected.txt ('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 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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 if (useFallbackContent()) 371 if (useFallbackContent())
372 return; 372 return;
373 373
374 if (!inDocument()) 374 if (!inDocument())
375 return; 375 return;
376 376
377 // Before we give up and use fallback content, check to see if this is a MIM E type issue. 377 // Before we give up and use fallback content, check to see if this is a MIM E type issue.
378 if (m_imageLoader && m_imageLoader->image() && m_imageLoader->image()->statu s() != CachedResource::LoadError) { 378 if (m_imageLoader && m_imageLoader->image() && m_imageLoader->image()->statu s() != CachedResource::LoadError) {
379 m_serviceType = m_imageLoader->image()->response().mimeType(); 379 m_serviceType = m_imageLoader->image()->response().mimeType();
380 if (!isImageType()) { 380 if (!isImageType()) {
381 // If we don't think we have an image type anymore, then ditch the i mage loader. 381 // If we don't think we have an image type anymore, then clear the i mage from the loader.
382 m_imageLoader.clear(); 382 m_imageLoader->setImage(0);
383 detach(); 383 detach();
384 attach(); 384 attach();
385 return; 385 return;
386 } 386 }
387 } 387 }
388 388
389 m_useFallbackContent = true; 389 m_useFallbackContent = true;
390 390
391 // FIXME: Style gets recalculated which is suboptimal. 391 // FIXME: Style gets recalculated which is suboptimal.
392 detach(); 392 detach();
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 { 514 {
515 return m_name.isNull() ? emptyAtom : m_name; 515 return m_name.isNull() ? emptyAtom : m_name;
516 } 516 }
517 517
518 HTMLFormElement* HTMLObjectElement::virtualForm() const 518 HTMLFormElement* HTMLObjectElement::virtualForm() const
519 { 519 {
520 return FormAssociatedElement::form(); 520 return FormAssociatedElement::form();
521 } 521 }
522 522
523 } 523 }
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/loading/nested_bad_objects-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698