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

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

Issue 2393803004: blink: Enforce comment formatting (except in core/layout, for now) (Closed)
Patch Set: Created 4 years, 2 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, 2008, 2009, 2011 Apple Inc. All rights 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 7 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (pos != kNotFound) 101 if (pos != kNotFound)
102 m_serviceType = m_serviceType.left(pos); 102 m_serviceType = m_serviceType.left(pos);
103 if (layoutObject()) { 103 if (layoutObject()) {
104 setNeedsWidgetUpdate(true); 104 setNeedsWidgetUpdate(true);
105 layoutObject()->setNeedsLayoutAndFullPaintInvalidation( 105 layoutObject()->setNeedsLayoutAndFullPaintInvalidation(
106 "Embed type changed"); 106 "Embed type changed");
107 } else { 107 } else {
108 requestPluginCreationWithoutLayoutObjectIfPossible(); 108 requestPluginCreationWithoutLayoutObjectIfPossible();
109 } 109 }
110 } else if (name == codeAttr) { 110 } else if (name == codeAttr) {
111 // TODO(schenney): Remove this branch? It's not in the spec and we're not in the 111 // TODO(schenney): Remove this branch? It's not in the spec and we're not in
112 // HTMLAppletElement hierarchy. 112 // the HTMLAppletElement hierarchy.
113 m_url = stripLeadingAndTrailingHTMLSpaces(value); 113 m_url = stripLeadingAndTrailingHTMLSpaces(value);
114 } else if (name == srcAttr) { 114 } else if (name == srcAttr) {
115 m_url = stripLeadingAndTrailingHTMLSpaces(value); 115 m_url = stripLeadingAndTrailingHTMLSpaces(value);
116 if (layoutObject() && isImageType()) { 116 if (layoutObject() && isImageType()) {
117 if (!m_imageLoader) 117 if (!m_imageLoader)
118 m_imageLoader = HTMLImageLoader::create(this); 118 m_imageLoader = HTMLImageLoader::create(this);
119 m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError); 119 m_imageLoader->updateFromElement(ImageLoader::UpdateIgnorePreviousError);
120 } 120 }
121 } else { 121 } else {
122 HTMLPlugInElement::parseAttribute(name, oldValue, value); 122 HTMLPlugInElement::parseAttribute(name, oldValue, value);
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 for (HTMLObjectElement* object = 216 for (HTMLObjectElement* object =
217 Traversal<HTMLObjectElement>::firstAncestor(*this); 217 Traversal<HTMLObjectElement>::firstAncestor(*this);
218 object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) { 218 object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) {
219 if (object->isExposed()) 219 if (object->isExposed())
220 return false; 220 return false;
221 } 221 }
222 return true; 222 return true;
223 } 223 }
224 224
225 } // namespace blink 225 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698