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

Unified Diff: sky/engine/core/dom/Document.cpp

Issue 687783003: More cleanup of dead code now that we don't have frame-level scrolling. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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 | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/frame/FrameView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/Document.cpp
diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
index 465edccdaf8b363eb3ec1508d38d15b16f0665a3..8f395132cee42517a315f929d92311a79da32c37 100644
--- a/sky/engine/core/dom/Document.cpp
+++ b/sky/engine/core/dom/Document.cpp
@@ -2309,10 +2309,7 @@ PassRefPtr<Event> Document::createEvent(const String& eventType, ExceptionState&
void Document::addListenerTypeIfNeeded(const AtomicString& eventType)
{
- if (eventType == EventTypeNames::overflowchanged) {
- UseCounter::countDeprecation(*this, UseCounter::OverflowChangedEvent);
- addListenerType(OVERFLOWCHANGED_LISTENER);
- } else if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::animationstart)) {
+ if (eventType == EventTypeNames::webkitAnimationStart || (RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::animationstart)) {
addListenerType(ANIMATIONSTART_LISTENER);
} else if (eventType == EventTypeNames::webkitAnimationEnd || (RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled() && eventType == EventTypeNames::animationend)) {
addListenerType(ANIMATIONEND_LISTENER);
@@ -2601,12 +2598,6 @@ void Document::finishedParsing()
if (RefPtr<LocalFrame> f = frame()) {
checkCompleted();
-
- // Check if the scrollbars are really needed for the content.
- // If not, remove them, relayout, and repaint.
- if (m_frame->view())
- m_frame->view()->restoreScrollbar();
-
TRACE_EVENT_INSTANT1(TRACE_DISABLED_BY_DEFAULT("devtools.timeline"), "MarkDOMContent", "data", InspectorMarkLoadEvent::data(f.get()));
}
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/frame/FrameView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698