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

Unified Diff: Source/core/frame/FrameView.cpp

Issue 1230013003: Remove the (already disabled) OverflowChangedEvent runtime flag (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/frame/FrameView.h ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « Source/core/frame/FrameView.h ('k') | Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698