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

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

Issue 1511523002: Align HTMLImageElement relevant mutations to spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix removal issue when a text node is between <source> and <img> Created 5 years 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 Simon Hausmann (hausmann@kde.org) 4 * (C) 2000 Simon Hausmann (hausmann@kde.org)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2008, 2009 Apple Inc. All rights reserved.
7 * Copyright (C) 2009 Ericsson AB. All rights reserved. 7 * Copyright (C) 2009 Ericsson AB. All rights reserved.
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode * insertionPoint) 128 Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode * insertionPoint)
129 { 129 {
130 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins ertionPoint); 130 InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(ins ertionPoint);
131 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio nPoint->isInShadowTree()) 131 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio nPoint->isInShadowTree())
132 toHTMLDocument(document()).addExtraNamedItem(m_name); 132 toHTMLDocument(document()).addExtraNamedItem(m_name);
133 logEventIfIsolatedWorldAndInDocument("blinkAddElement", "iframe", fastGetAtt ribute(srcAttr)); 133 logEventIfIsolatedWorldAndInDocument("blinkAddElement", "iframe", fastGetAtt ribute(srcAttr));
134 return result; 134 return result;
135 } 135 }
136 136
137 void HTMLIFrameElement::removedFrom(ContainerNode* insertionPoint) 137 void HTMLIFrameElement::removedFrom(ContainerNode* insertionPoint, Node* next)
138 { 138 {
139 HTMLFrameElementBase::removedFrom(insertionPoint); 139 HTMLFrameElementBase::removedFrom(insertionPoint, next);
140 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio nPoint->isInShadowTree()) 140 if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertio nPoint->isInShadowTree())
141 toHTMLDocument(document()).removeExtraNamedItem(m_name); 141 toHTMLDocument(document()).removeExtraNamedItem(m_name);
142 } 142 }
143 143
144 bool HTMLIFrameElement::isInteractiveContent() const 144 bool HTMLIFrameElement::isInteractiveContent() const
145 { 145 {
146 return true; 146 return true;
147 } 147 }
148 148
149 void HTMLIFrameElement::valueWasSet() 149 void HTMLIFrameElement::valueWasSet()
150 { 150 {
151 String invalidTokens; 151 String invalidTokens;
152 setSandboxFlags(m_sandbox->value().isNull() ? SandboxNone : parseSandboxPoli cy(m_sandbox->tokens(), invalidTokens)); 152 setSandboxFlags(m_sandbox->value().isNull() ? SandboxNone : parseSandboxPoli cy(m_sandbox->tokens(), invalidTokens));
153 if (!invalidTokens.isNull()) 153 if (!invalidTokens.isNull())
154 document().addConsoleMessage(ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, "Error while parsing the 'sandbox' attribute: " + invalidToke ns)); 154 document().addConsoleMessage(ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, "Error while parsing the 'sandbox' attribute: " + invalidToke ns));
155 setSynchronizedLazyAttribute(sandboxAttr, m_sandbox->value()); 155 setSynchronizedLazyAttribute(sandboxAttr, m_sandbox->value());
156 } 156 }
157 157
158 ReferrerPolicy HTMLIFrameElement::referrerPolicyAttribute() 158 ReferrerPolicy HTMLIFrameElement::referrerPolicyAttribute()
159 { 159 {
160 return m_referrerPolicy; 160 return m_referrerPolicy;
161 } 161 }
162 } 162 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698