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

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

Issue 1938753002: OOPIF: Replicate allowFullscreen flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 document.addExtraNamedItem(value); 97 document.addExtraNamedItem(value);
98 } 98 }
99 m_name = value; 99 m_name = value;
100 } else if (name == sandboxAttr) { 100 } else if (name == sandboxAttr) {
101 m_sandbox->setValue(value); 101 m_sandbox->setValue(value);
102 UseCounter::count(document(), UseCounter::SandboxViaIFrame); 102 UseCounter::count(document(), UseCounter::SandboxViaIFrame);
103 } else if (name == referrerpolicyAttr) { 103 } else if (name == referrerpolicyAttr) {
104 m_referrerPolicy = ReferrerPolicyDefault; 104 m_referrerPolicy = ReferrerPolicyDefault;
105 if (!value.isNull()) 105 if (!value.isNull())
106 SecurityPolicy::referrerPolicyFromString(value, &m_referrerPolicy); 106 SecurityPolicy::referrerPolicyFromString(value, &m_referrerPolicy);
107 } else if (name == allowfullscreenAttr) {
108 bool oldAllowFullscreen = m_allowFullscreen;
109 m_allowFullscreen = !value.isNull();
110 if (m_allowFullscreen != oldAllowFullscreen)
111 frameOwnerPropertiesChanged();
107 } else { 112 } else {
108 if (name == srcAttr) 113 if (name == srcAttr)
109 logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, ol dValue, value); 114 logUpdateAttributeIfIsolatedWorldAndInDocument("iframe", srcAttr, ol dValue, value);
110 HTMLFrameElementBase::parseAttribute(name, oldValue, value); 115 HTMLFrameElementBase::parseAttribute(name, oldValue, value);
111 } 116 }
112 } 117 }
113 118
114 bool HTMLIFrameElement::layoutObjectIsNeeded(const ComputedStyle& style) 119 bool HTMLIFrameElement::layoutObjectIsNeeded(const ComputedStyle& style)
115 { 120 {
116 return isURLAllowed() && HTMLElement::layoutObjectIsNeeded(style); 121 return isURLAllowed() && HTMLElement::layoutObjectIsNeeded(style);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 if (!invalidTokens.isNull()) 154 if (!invalidTokens.isNull())
150 document().addConsoleMessage(ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, "Error while parsing the 'sandbox' attribute: " + invalidToke ns)); 155 document().addConsoleMessage(ConsoleMessage::create(OtherMessageSource, ErrorMessageLevel, "Error while parsing the 'sandbox' attribute: " + invalidToke ns));
151 setSynchronizedLazyAttribute(sandboxAttr, m_sandbox->value()); 156 setSynchronizedLazyAttribute(sandboxAttr, m_sandbox->value());
152 } 157 }
153 158
154 ReferrerPolicy HTMLIFrameElement::referrerPolicyAttribute() 159 ReferrerPolicy HTMLIFrameElement::referrerPolicyAttribute()
155 { 160 {
156 return m_referrerPolicy; 161 return m_referrerPolicy;
157 } 162 }
158 } // namespace blink 163 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLIFrameElement.h ('k') | third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698