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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Created 4 years, 5 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 reserv ed. 5 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2011 Apple Inc. All rights reserv ed.
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 } 86 }
87 87
88 void HTMLEmbedElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& oldValue, const AtomicString& value) 88 void HTMLEmbedElement::parseAttribute(const QualifiedName& name, const AtomicStr ing& oldValue, const AtomicString& value)
89 { 89 {
90 if (name == typeAttr) { 90 if (name == typeAttr) {
91 m_serviceType = value.lower(); 91 m_serviceType = value.lower();
92 size_t pos = m_serviceType.find(";"); 92 size_t pos = m_serviceType.find(";");
93 if (pos != kNotFound) 93 if (pos != kNotFound)
94 m_serviceType = m_serviceType.left(pos); 94 m_serviceType = m_serviceType.left(pos);
95 if (layoutObject()) { 95 if (hasLayoutObject()) {
96 setNeedsWidgetUpdate(true); 96 setNeedsWidgetUpdate(true);
97 layoutObject()->setNeedsLayoutAndFullPaintInvalidation("Embed type c hanged"); 97 layoutObject()->setNeedsLayoutAndFullPaintInvalidation("Embed type c hanged");
98 } else { 98 } else {
99 requestPluginCreationWithoutLayoutObjectIfPossible(); 99 requestPluginCreationWithoutLayoutObjectIfPossible();
100 } 100 }
101 } else if (name == codeAttr) { // TODO(schenney): Remove this? It's not in t he spec and we're not in the HTMLAppletElement hierarchy 101 } else if (name == codeAttr) { // TODO(schenney): Remove this? It's not in t he spec and we're not in the HTMLAppletElement hierarchy
102 m_url = stripLeadingAndTrailingHTMLSpaces(value); 102 m_url = stripLeadingAndTrailingHTMLSpaces(value);
103 } else if (name == srcAttr) { 103 } else if (name == srcAttr) {
104 m_url = stripLeadingAndTrailingHTMLSpaces(value); 104 m_url = stripLeadingAndTrailingHTMLSpaces(value);
105 if (layoutObject() && isImageType()) { 105 if (layoutObject() && isImageType()) {
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 { 198 {
199 // http://www.whatwg.org/specs/web-apps/current-work/#exposed 199 // http://www.whatwg.org/specs/web-apps/current-work/#exposed
200 for (HTMLObjectElement* object = Traversal<HTMLObjectElement>::firstAncestor (*this); object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) { 200 for (HTMLObjectElement* object = Traversal<HTMLObjectElement>::firstAncestor (*this); object; object = Traversal<HTMLObjectElement>::firstAncestor(*object)) {
201 if (object->isExposed()) 201 if (object->isExposed())
202 return false; 202 return false;
203 } 203 }
204 return true; 204 return true;
205 } 205 }
206 206
207 } // namespace blink 207 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698