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

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

Issue 23757027: Add toHTMLMetaElement(), and use it. (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
« no previous file with comments | « Source/core/html/HTMLMetaElement.h ('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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 if (!document().page() 234 if (!document().page()
235 || !document().page()->settings().needsSiteSpecificQuirks() 235 || !document().page()->settings().needsSiteSpecificQuirks()
236 || hasFallbackContent() 236 || hasFallbackContent()
237 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD DC6B")) 237 || !equalIgnoringCase(classId(), "clsid:02BF25D5-8C17-4B23-BC80-D3488ABD DC6B"))
238 return false; 238 return false;
239 239
240 RefPtr<NodeList> metaElements = document().getElementsByTagName(HTMLNames::m etaTag.localName()); 240 RefPtr<NodeList> metaElements = document().getElementsByTagName(HTMLNames::m etaTag.localName());
241 unsigned length = metaElements->length(); 241 unsigned length = metaElements->length();
242 for (unsigned i = 0; i < length; ++i) { 242 for (unsigned i = 0; i < length; ++i) {
243 ASSERT(metaElements->item(i)->isHTMLElement()); 243 ASSERT(metaElements->item(i)->isHTMLElement());
244 HTMLMetaElement* metaElement = static_cast<HTMLMetaElement*>(metaElement s->item(i)); 244 HTMLMetaElement* metaElement = toHTMLMetaElement(metaElements->item(i));
245 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement-> content().startsWith("Mac OS X Server Web Services Server", false)) 245 if (equalIgnoringCase(metaElement->name(), "generator") && metaElement-> content().startsWith("Mac OS X Server Web Services Server", false))
246 return true; 246 return true;
247 } 247 }
248 248
249 return false; 249 return false;
250 } 250 }
251 251
252 bool HTMLObjectElement::hasValidClassId() 252 bool HTMLObjectElement::hasValidClassId()
253 { 253 {
254 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().start sWith("java:", false)) 254 if (MIMETypeRegistry::isJavaAppletMIMEType(serviceType()) && classId().start sWith("java:", false))
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 encoding.appendData(name(), value); 503 encoding.appendData(name(), value);
504 return true; 504 return true;
505 } 505 }
506 506
507 HTMLFormElement* HTMLObjectElement::virtualForm() const 507 HTMLFormElement* HTMLObjectElement::virtualForm() const
508 { 508 {
509 return FormAssociatedElement::form(); 509 return FormAssociatedElement::form();
510 } 510 }
511 511
512 } 512 }
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMetaElement.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698