Changeset 69097 in webkit


Ignore:
Timestamp:
Oct 5, 2010 1:42:47 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

2010-10-05 Sanjeev Radhakrishnan <sanjeevr@chromium.org>

Reviewed by Darin Fisher.

Fixed implementation of pluginWidgetFromDocument to search for the "embed" element rather than just use the first child.
https://bugs.webkit.org/show_bug.cgi?id=47129

  • html/PluginDocument.cpp: (WebCore::PluginDocumentParser::pluginWidgetFromDocument):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r69095 r69097  
     12010-10-05  Sanjeev Radhakrishnan  <sanjeevr@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Fixed implementation of pluginWidgetFromDocument to search for the "embed" element rather than just use the first child.
     6        https://bugs.webkit.org/show_bug.cgi?id=47129
     7
     8        * html/PluginDocument.cpp:
     9        (WebCore::PluginDocumentParser::pluginWidgetFromDocument):
     10
    1112010-10-05  Chris Rogers  <crogers@google.com>
    212
  • trunk/WebCore/html/PluginDocument.cpp

    r69026 r69097  
    3333#include "HTMLNames.h"
    3434#include "MainResourceLoader.h"
     35#include "NodeList.h"
    3536#include "Page.h"
    3637#include "RawDataDocumentParser.h"
     
    7172    RefPtr<Element> body = doc->body();
    7273    if (body) {
    73         RefPtr<Node> node = body->firstChild();
     74        RefPtr<NodeList> embedNodes = body->getElementsByTagName("embed");
     75        ASSERT(embedNodes && embedNodes->length());
     76        Node* node = embedNodes->item(0);
    7477        if (node && node->renderer()) {
    7578            ASSERT(node->renderer()->isEmbeddedObject());
Note: See TracChangeset for help on using the changeset viewer.