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

Unified Diff: Source/core/events/OverflowEvent.cpp

Issue 959643002: Remove the overflowchanged event with a runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tests Created 5 years, 10 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/events/OverflowEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/OverflowEvent.cpp
diff --git a/Source/core/events/OverflowEvent.cpp b/Source/core/events/OverflowEvent.cpp
index 2f21507a850f750682cfe17176ef0d3cd8e4722f..e25e59b239aca6d4d93b471c5b3f233d81048e5e 100644
--- a/Source/core/events/OverflowEvent.cpp
+++ b/Source/core/events/OverflowEvent.cpp
@@ -26,6 +26,8 @@
#include "config.h"
#include "core/events/OverflowEvent.h"
+#include "platform/RuntimeEnabledFeatures.h"
+
namespace blink {
OverflowEvent::OverflowEvent()
@@ -34,6 +36,7 @@ OverflowEvent::OverflowEvent()
, m_horizontalOverflow(false)
, m_verticalOverflow(false)
{
+ ASSERT(RuntimeEnabledFeatures::overflowChangedEventEnabled());
}
OverflowEvent::OverflowEvent(bool horizontalOverflowChanged, bool horizontalOverflow, bool verticalOverflowChanged, bool verticalOverflow)
@@ -41,6 +44,7 @@ OverflowEvent::OverflowEvent(bool horizontalOverflowChanged, bool horizontalOver
, m_horizontalOverflow(horizontalOverflow)
, m_verticalOverflow(verticalOverflow)
{
+ ASSERT(RuntimeEnabledFeatures::overflowChangedEventEnabled());
ASSERT(horizontalOverflowChanged || verticalOverflowChanged);
if (horizontalOverflowChanged && verticalOverflowChanged)
@@ -57,6 +61,8 @@ OverflowEvent::OverflowEvent(const AtomicString& type, const OverflowEventInit&
, m_horizontalOverflow(false)
, m_verticalOverflow(false)
{
+ ASSERT(RuntimeEnabledFeatures::overflowChangedEventEnabled());
+
if (initializer.hasOrient())
m_orient = initializer.orient();
if (initializer.hasHorizontalOverflow())
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/events/OverflowEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698