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

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

Issue 1844383003: Remove NPAPI support for form data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 414
415 return false; 415 return false;
416 } 416 }
417 417
418 void HTMLObjectElement::didMoveToNewDocument(Document& oldDocument) 418 void HTMLObjectElement::didMoveToNewDocument(Document& oldDocument)
419 { 419 {
420 FormAssociatedElement::didMoveToNewDocument(oldDocument); 420 FormAssociatedElement::didMoveToNewDocument(oldDocument);
421 HTMLPlugInElement::didMoveToNewDocument(oldDocument); 421 HTMLPlugInElement::didMoveToNewDocument(oldDocument);
422 } 422 }
423 423
424 void HTMLObjectElement::appendToFormData(FormData& formData)
425 {
426 if (name().isEmpty())
427 return;
428
429 Widget* widget = pluginWidget();
430 if (!widget || !widget->isPluginView())
431 return;
432 String value;
433 if (toPluginView(widget)->getFormValue(value))
434 formData.append(name(), value);
435 }
436
437 HTMLFormElement* HTMLObjectElement::formOwner() const 424 HTMLFormElement* HTMLObjectElement::formOwner() const
438 { 425 {
439 return FormAssociatedElement::form(); 426 return FormAssociatedElement::form();
440 } 427 }
441 428
442 bool HTMLObjectElement::isInteractiveContent() const 429 bool HTMLObjectElement::isInteractiveContent() const
443 { 430 {
444 return fastHasAttribute(usemapAttr); 431 return fastHasAttribute(usemapAttr);
445 } 432 }
446 433
447 bool HTMLObjectElement::useFallbackContent() const 434 bool HTMLObjectElement::useFallbackContent() const
448 { 435 {
449 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent; 436 return HTMLPlugInElement::useFallbackContent() || m_useFallbackContent;
450 } 437 }
451 438
452 } // namespace blink 439 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLObjectElement.h ('k') | third_party/WebKit/Source/core/plugins/PluginView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698