Index: Source/core/html/HTMLFrameSetElement.cpp |
diff --git a/Source/core/html/HTMLFrameSetElement.cpp b/Source/core/html/HTMLFrameSetElement.cpp |
index cfa41341e716902b531c00ee926558e6609c84df..db0043491203ad814be74cfdcc3f181dc0b8f96a 100644 |
--- a/Source/core/html/HTMLFrameSetElement.cpp |
+++ b/Source/core/html/HTMLFrameSetElement.cpp |
@@ -128,10 +128,8 @@ void HTMLFrameSetElement::parseAttribute(const QualifiedName& name, const Atomic |
document().setWindowAttributeEventListener(EventTypeNames::focusin, createAttributeEventListener(document().frame(), name, value)); |
else if (name == onfocusoutAttr) |
document().setWindowAttributeEventListener(EventTypeNames::focusout, createAttributeEventListener(document().frame(), name, value)); |
-#if ENABLE(ORIENTATION_EVENTS) |
- else if (name == onorientationchangeAttr) |
+ else if (RuntimeEnabledFeatures::orientationEventEnabled() && name == onorientationchangeAttr) |
document().setWindowAttributeEventListener(EventTypeNames::orientationchange, createAttributeEventListener(document().frame(), name, value)); |
-#endif |
else if (name == onhashchangeAttr) |
document().setWindowAttributeEventListener(EventTypeNames::hashchange, createAttributeEventListener(document().frame(), name, value)); |
else if (name == onmessageAttr) |