Index: Source/core/frame/FrameView.cpp |
diff --git a/Source/core/frame/FrameView.cpp b/Source/core/frame/FrameView.cpp |
index c03e12774f169758fd811bd15a18466d8bdb0bc5..b6cdb4a69ea023472b57651e565e4f887e7cb070 100644 |
--- a/Source/core/frame/FrameView.cpp |
+++ b/Source/core/frame/FrameView.cpp |
@@ -36,7 +36,6 @@ |
#include "core/dom/Fullscreen.h" |
#include "core/editing/FrameSelection.h" |
#include "core/editing/RenderedPosition.h" |
-#include "core/events/OverflowEvent.h" |
#include "core/fetch/ResourceFetcher.h" |
#include "core/fetch/ResourceLoadPriorityOptimizer.h" |
#include "core/frame/FrameHost.h" |
@@ -118,7 +117,6 @@ FrameView::FrameView(LocalFrame* frame) |
, m_isTransparent(false) |
, m_baseBackgroundColor(Color::white) |
, m_mediaType(MediaTypeNames::screen) |
- , m_overflowStatusDirty(true) |
, m_wasScrolledByUser(false) |
, m_safeToPropagateScrollToParent(true) |
, m_isTrackingPaintInvalidations(false) |
@@ -1063,9 +1061,6 @@ void FrameView::layout() |
} |
updateAnnotatedRegions(); |
- if (document->hasListenerType(Document::OVERFLOWCHANGED_LISTENER)) |
- updateOverflowStatus(layoutSize().width() < contentsWidth(), layoutSize().height() < contentsHeight()); |
- |
scheduleOrPerformPostLayoutTasks(); |
// FIXME: The notion of a single root for layout is no longer applicable. Remove or update this code. crbug.com/460596 |
@@ -2068,33 +2063,6 @@ void FrameView::updateCounters() |
} |
} |
-void FrameView::updateOverflowStatus(bool horizontalOverflow, bool verticalOverflow) |
-{ |
- LayoutObject* viewport = viewportLayoutObject(); |
- if (!viewport) |
- return; |
- |
- if (m_overflowStatusDirty) { |
- m_horizontalOverflow = horizontalOverflow; |
- m_verticalOverflow = verticalOverflow; |
- m_overflowStatusDirty = false; |
- return; |
- } |
- |
- bool horizontalOverflowChanged = (m_horizontalOverflow != horizontalOverflow); |
- bool verticalOverflowChanged = (m_verticalOverflow != verticalOverflow); |
- |
- if (horizontalOverflowChanged || verticalOverflowChanged) { |
- m_horizontalOverflow = horizontalOverflow; |
- m_verticalOverflow = verticalOverflow; |
- |
- RefPtrWillBeRawPtr<OverflowEvent> event = OverflowEvent::create(horizontalOverflowChanged, horizontalOverflow, verticalOverflowChanged, verticalOverflow); |
- event->setTarget(viewport->node()); |
- m_frame->document()->enqueueAnimationFrameEvent(event.release()); |
- } |
- |
-} |
- |
IntRect FrameView::windowClipRect(IncludeScrollbarsInRect scrollbarInclusion) const |
{ |
ASSERT(m_frame->view() == this); |