| Index: Source/core/html/PluginDocument.cpp
|
| diff --git a/Source/core/html/PluginDocument.cpp b/Source/core/html/PluginDocument.cpp
|
| index 154d2aeb12e7c998e2ed7d95c7bbbac0114c440c..106783c596821b4ddf0d8927de97df83d2c5d354 100644
|
| --- a/Source/core/html/PluginDocument.cpp
|
| +++ b/Source/core/html/PluginDocument.cpp
|
| @@ -19,7 +19,7 @@
|
| * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| #include "config.h"
|
| @@ -39,7 +39,7 @@
|
| #include "core/rendering/RenderEmbeddedObject.h"
|
|
|
| namespace WebCore {
|
| -
|
| +
|
| using namespace HTMLNames;
|
|
|
| // FIXME: Share more code with MediaDocumentParser.
|
| @@ -83,16 +83,16 @@ void PluginDocumentParser::createDocumentStructure()
|
| body->setAttribute(styleAttr, "background-color: rgb(38,38,38)");
|
|
|
| rootElement->appendChild(body, IGNORE_EXCEPTION);
|
| -
|
| +
|
| RefPtr<Element> embedElement = document()->createElement(embedTag, false);
|
| -
|
| +
|
| m_embedElement = static_cast<HTMLEmbedElement*>(embedElement.get());
|
| m_embedElement->setAttribute(widthAttr, "100%");
|
| m_embedElement->setAttribute(heightAttr, "100%");
|
| -
|
| +
|
| m_embedElement->setAttribute(nameAttr, "plugin");
|
| m_embedElement->setAttribute(srcAttr, document()->url().string());
|
| -
|
| +
|
| DocumentLoader* loader = document()->loader();
|
| ASSERT(loader);
|
| if (loader)
|
| @@ -112,7 +112,7 @@ void PluginDocumentParser::createDocumentStructure()
|
| document()->updateLayout();
|
|
|
| // Below we assume that renderer->widget() to have been created by
|
| - // document()->updateLayout(). However, in some cases, updateLayout() will
|
| + // document()->updateLayout(). However, in some cases, updateLayout() will
|
| // recurse too many times and delay its post-layout tasks (such as creating
|
| // the widget). Here we kick off the pending post-layout tasks so that we
|
| // can synchronously redirect data to the plugin.
|
|
|