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

Side by Side Diff: third_party/WebKit/WebCore/html/HTMLObjectElement.cpp

Issue 39293: WebKit merge 41447:41498 [third_party/WebKit] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: remove CRLF Created 11 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
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 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } else 116 } else
117 HTMLPlugInElement::parseMappedAttribute(attr); 117 HTMLPlugInElement::parseMappedAttribute(attr);
118 } 118 }
119 119
120 bool HTMLObjectElement::rendererIsNeeded(RenderStyle* style) 120 bool HTMLObjectElement::rendererIsNeeded(RenderStyle* style)
121 { 121 {
122 Frame* frame = document()->frame(); 122 Frame* frame = document()->frame();
123 if (!frame) 123 if (!frame)
124 return false; 124 return false;
125 125
126 return HTMLPlugInElement::rendererIsNeeded(style); 126 // Temporary Workaround for Gears plugin - see bug 24215 for details and bug 24346 to track removal.
127 // Gears expects the plugin to be instantiated even if display:none is set
128 // for the object element.
129 bool isGearsPlugin = equalIgnoringCase(getAttribute(typeAttr), "application/ x-googlegears");
130 return isGearsPlugin || HTMLPlugInElement::rendererIsNeeded(style);
127 } 131 }
128 132
129 RenderObject *HTMLObjectElement::createRenderer(RenderArena* arena, RenderStyle* style) 133 RenderObject *HTMLObjectElement::createRenderer(RenderArena* arena, RenderStyle* style)
130 { 134 {
131 if (m_useFallbackContent) 135 if (m_useFallbackContent)
132 return RenderObject::createObject(this, style); 136 return RenderObject::createObject(this, style);
133 if (isImageType()) 137 if (isImageType())
134 return new (arena) RenderImage(this); 138 return new (arena) RenderImage(this);
135 return new (arena) RenderPartObject(this); 139 return new (arena) RenderPartObject(this);
136 } 140 }
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 void HTMLObjectElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st 441 void HTMLObjectElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) con st
438 { 442 {
439 HTMLPlugInImageElement::addSubresourceAttributeURLs(urls); 443 HTMLPlugInImageElement::addSubresourceAttributeURLs(urls);
440 444
441 addSubresourceURL(urls, data()); 445 addSubresourceURL(urls, data());
442 if (useMap().startsWith("#")) 446 if (useMap().startsWith("#"))
443 addSubresourceURL(urls, document()->completeURL(useMap())); 447 addSubresourceURL(urls, document()->completeURL(useMap()));
444 } 448 }
445 449
446 } 450 }
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/html/HTMLMediaElement.idl ('k') | third_party/WebKit/WebCore/html/PreloadScanner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698