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

Unified Diff: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp

Issue 2331223002: Added allowvr attribute to iframes and vrEnabled to Document (Closed)
Patch Set: Rebase and moved vrEnabled from navigator to document Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
index 3701006c9fe5ce2bd149e314f54818832022ef47..0bcd097271c1b3e2de178d47dcf30d47fa32c876 100644
--- a/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLIFrameElement.cpp
@@ -116,6 +116,11 @@ void HTMLIFrameElement::parseAttribute(const QualifiedName& name, const AtomicSt
m_allowFullscreen = !value.isNull();
if (m_allowFullscreen != oldAllowFullscreen)
frameOwnerPropertiesChanged();
+ } else if (name == allowvrAttr) {
+ bool oldAllowVR = m_allowVR;
+ m_allowVR = !value.isNull();
+ if (m_allowVR != oldAllowVR)
+ frameOwnerPropertiesChanged();
} else if (name == permissionsAttr) {
if (initializePermissionsAttribute())
m_permissions->setValue(value);

Powered by Google App Engine
This is Rietveld 408576698