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

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

Issue 1374793005: Single image reload fix (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // reload stuff when a persistable widget-type is specified? 108 // reload stuff when a persistable widget-type is specified?
109 reloadPluginOnAttributeChange(name); 109 reloadPluginOnAttributeChange(name);
110 if (!layoutObject()) 110 if (!layoutObject())
111 requestPluginCreationWithoutLayoutObjectIfPossible(); 111 requestPluginCreationWithoutLayoutObjectIfPossible();
112 } else if (name == dataAttr) { 112 } else if (name == dataAttr) {
113 m_url = stripLeadingAndTrailingHTMLSpaces(value); 113 m_url = stripLeadingAndTrailingHTMLSpaces(value);
114 if (layoutObject() && isImageType()) { 114 if (layoutObject() && isImageType()) {
115 setNeedsWidgetUpdate(true); 115 setNeedsWidgetUpdate(true);
116 if (!m_imageLoader) 116 if (!m_imageLoader)
117 m_imageLoader = HTMLImageLoader::create(this); 117 m_imageLoader = HTMLImageLoader::create(this);
118 m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousEr ror); 118 m_imageLoader->updateFromElement(0, ImageLoader::UpdateIgnorePreviou sError);
119 } else { 119 } else {
120 reloadPluginOnAttributeChange(name); 120 reloadPluginOnAttributeChange(name);
121 } 121 }
122 } else if (name == classidAttr) { 122 } else if (name == classidAttr) {
123 m_classId = value; 123 m_classId = value;
124 reloadPluginOnAttributeChange(name); 124 reloadPluginOnAttributeChange(name);
125 } else { 125 } else {
126 HTMLPlugInElement::parseAttribute(name, value); 126 HTMLPlugInElement::parseAttribute(name, value);
127 } 127 }
128 } 128 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 { 444 {
445 return fastHasAttribute(usemapAttr); 445 return fastHasAttribute(usemapAttr);
446 } 446 }
447 447
448 bool HTMLObjectElement::useFallbackContent() const 448 bool HTMLObjectElement::useFallbackContent() const
449 { 449 {
450 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; 450 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent;
451 } 451 }
452 452
453 } 453 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLImageElement.cpp ('k') | Source/core/html/HTMLPlugInElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698