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

Side by Side Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2901203002: Rename VisualViewport properties to match updated spec (Closed)
Patch Set: Make methods const Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 10 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
(...skipping 4560 matching lines...) Expand 10 before | Expand all | Expand 10 after
4571 } 4571 }
4572 4572
4573 void Document::EnqueueMediaQueryChangeListeners( 4573 void Document::EnqueueMediaQueryChangeListeners(
4574 HeapVector<Member<MediaQueryListListener>>& listeners) { 4574 HeapVector<Member<MediaQueryListListener>>& listeners) {
4575 EnsureScriptedAnimationController().EnqueueMediaQueryChangeListeners( 4575 EnsureScriptedAnimationController().EnqueueMediaQueryChangeListeners(
4576 listeners); 4576 listeners);
4577 } 4577 }
4578 4578
4579 void Document::EnqueueVisualViewportScrollEvent() { 4579 void Document::EnqueueVisualViewportScrollEvent() {
4580 VisualViewportScrollEvent* event = VisualViewportScrollEvent::Create(); 4580 VisualViewportScrollEvent* event = VisualViewportScrollEvent::Create();
4581 event->SetTarget(domWindow()->visualViewport()); 4581 event->SetTarget(domWindow()->view());
4582 EnsureScriptedAnimationController().EnqueuePerFrameEvent(event); 4582 EnsureScriptedAnimationController().EnqueuePerFrameEvent(event);
4583 } 4583 }
4584 4584
4585 void Document::EnqueueVisualViewportResizeEvent() { 4585 void Document::EnqueueVisualViewportResizeEvent() {
4586 VisualViewportResizeEvent* event = VisualViewportResizeEvent::Create(); 4586 VisualViewportResizeEvent* event = VisualViewportResizeEvent::Create();
4587 event->SetTarget(domWindow()->visualViewport()); 4587 event->SetTarget(domWindow()->view());
4588 EnsureScriptedAnimationController().EnqueuePerFrameEvent(event); 4588 EnsureScriptedAnimationController().EnqueuePerFrameEvent(event);
4589 } 4589 }
4590 4590
4591 void Document::DispatchEventsForPrinting() { 4591 void Document::DispatchEventsForPrinting() {
4592 if (!scripted_animation_controller_) 4592 if (!scripted_animation_controller_)
4593 return; 4593 return;
4594 scripted_animation_controller_->DispatchEventsAndCallbacksForPrinting(); 4594 scripted_animation_controller_->DispatchEventsAndCallbacksForPrinting();
4595 } 4595 }
4596 4596
4597 Document::EventFactorySet& Document::EventFactories() { 4597 Document::EventFactorySet& Document::EventFactories() {
(...skipping 2215 matching lines...) Expand 10 before | Expand all | Expand 10 after
6813 } 6813 }
6814 6814
6815 void showLiveDocumentInstances() { 6815 void showLiveDocumentInstances() {
6816 WeakDocumentSet& set = liveDocumentSet(); 6816 WeakDocumentSet& set = liveDocumentSet();
6817 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6817 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6818 for (blink::Document* document : set) 6818 for (blink::Document* document : set)
6819 fprintf(stderr, "- Document %p URL: %s\n", document, 6819 fprintf(stderr, "- Document %p URL: %s\n", document,
6820 document->Url().GetString().Utf8().data()); 6820 document->Url().GetString().Utf8().data());
6821 } 6821 }
6822 #endif 6822 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698