Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/PluginDocument.cpp |
| diff --git a/third_party/WebKit/Source/core/html/PluginDocument.cpp b/third_party/WebKit/Source/core/html/PluginDocument.cpp |
| index 84f3c5a2256aeea4d7f0060f4105a3b020646959..1ef9e3f5bef541ab63aefd5b1ca1719a5bec7f40 100644 |
| --- a/third_party/WebKit/Source/core/html/PluginDocument.cpp |
| +++ b/third_party/WebKit/Source/core/html/PluginDocument.cpp |
| @@ -72,7 +72,8 @@ class PluginDocumentParser : public RawDataDocumentParser { |
| void PluginDocumentParser::createDocumentStructure() { |
| // FIXME: Assert we have a loader to figure out why the original null checks |
| - // and assert were added for the security bug in http://trac.webkit.org/changeset/87566 |
| + // and assert were added for the security bug in |
| + // http://trac.webkit.org/changeset/87566 |
| DCHECK(document()); |
| RELEASE_ASSERT(document()->loader()); |
| @@ -97,7 +98,8 @@ void PluginDocumentParser::createDocumentStructure() { |
| "100%; overflow: hidden; margin: 0"); |
| rootElement->appendChild(body); |
| if (isStopped()) |
| - return; // Possibly detached by a mutation event listener installed in runScriptsAtDocumentElementAvailable. |
| + return; // Possibly detached by a mutation event listener installed in |
|
dcheng
2016/10/05 22:29:17
Nit: own line, maybe?
(Also surprised that check-
Nico
2016/10/05 22:35:17
Done.
|
| + // runScriptsAtDocumentElementAvailable. |
| m_embedElement = HTMLEmbedElement::create(*document()); |
| m_embedElement->setAttribute(widthAttr, "100%"); |
| @@ -109,7 +111,8 @@ void PluginDocumentParser::createDocumentStructure() { |
| m_embedElement->setAttribute(typeAttr, document()->loader()->mimeType()); |
| body->appendChild(m_embedElement); |
| if (isStopped()) |
| - return; // Possibly detached by a mutation event listener installed in runScriptsAtDocumentElementAvailable. |
| + return; // Possibly detached by a mutation event listener installed in |
| + // runScriptsAtDocumentElementAvailable. |
| toPluginDocument(document())->setPluginNode(m_embedElement.get()); |
| @@ -122,7 +125,8 @@ void PluginDocumentParser::createDocumentStructure() { |
| if (frame->isMainFrame()) { |
| m_embedElement->focus(); |
| if (isStopped()) |
| - return; // Possibly detached by a focus event listener installed in runScriptsAtDocumentElementAvailable. |
| + return; // Possibly detached by a focus event listener installed in |
| + // runScriptsAtDocumentElementAvailable. |
| } |
| if (PluginView* view = pluginView()) |