| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999 Lars Knoll <knoll@kde.org> | 3 * 1999 Lars Knoll <knoll@kde.org> |
| 4 * 1999 Antti Koivisto <koivisto@kde.org> | 4 * 1999 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000 Dirk Mueller <mueller@kde.org> | 5 * 2000 Dirk Mueller <mueller@kde.org> |
| 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
| 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) | 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) |
| 9 * Copyright (C) 2009 Google Inc. All rights reserved. | 9 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 23 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 24 * Boston, MA 02110-1301, USA. | 24 * Boston, MA 02110-1301, USA. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/frame/FrameView.h" | 28 #include "core/frame/FrameView.h" |
| 29 | 29 |
| 30 #include "HTMLNames.h" | 30 #include "HTMLNames.h" |
| 31 #include "RuntimeEnabledFeatures.h" | 31 #include "RuntimeEnabledFeatures.h" |
| 32 #include "core/accessibility/AXObjectCache.h" | 32 #include "core/accessibility/AXObjectCache.h" |
| 33 #include "core/animation/DocumentAnimations.h" |
| 33 #include "core/css/FontFaceSet.h" | 34 #include "core/css/FontFaceSet.h" |
| 34 #include "core/css/resolver/StyleResolver.h" | 35 #include "core/css/resolver/StyleResolver.h" |
| 35 #include "core/dom/DocumentMarkerController.h" | 36 #include "core/dom/DocumentMarkerController.h" |
| 36 #include "core/editing/FrameSelection.h" | 37 #include "core/editing/FrameSelection.h" |
| 37 #include "core/events/OverflowEvent.h" | 38 #include "core/events/OverflowEvent.h" |
| 38 #include "core/fetch/ResourceFetcher.h" | 39 #include "core/fetch/ResourceFetcher.h" |
| 39 #include "core/fetch/TextResourceDecoder.h" | 40 #include "core/fetch/TextResourceDecoder.h" |
| 40 #include "core/html/HTMLFrameElement.h" | 41 #include "core/html/HTMLFrameElement.h" |
| 41 #include "core/html/HTMLHtmlElement.h" | 42 #include "core/html/HTMLHtmlElement.h" |
| 42 #include "core/html/HTMLPlugInElement.h" | 43 #include "core/html/HTMLPlugInElement.h" |
| (...skipping 2000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 m_delayedLayout = false; | 2044 m_delayedLayout = false; |
| 2044 } | 2045 } |
| 2045 | 2046 |
| 2046 void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime) | 2047 void FrameView::serviceScriptedAnimations(double monotonicAnimationStartTime) |
| 2047 { | 2048 { |
| 2048 for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNex
t()) { | 2049 for (RefPtr<Frame> frame = m_frame; frame; frame = frame->tree().traverseNex
t()) { |
| 2049 frame->view()->serviceScrollAnimations(); | 2050 frame->view()->serviceScrollAnimations(); |
| 2050 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) | 2051 if (!RuntimeEnabledFeatures::webAnimationsCSSEnabled()) |
| 2051 frame->animation().serviceAnimations(); | 2052 frame->animation().serviceAnimations(); |
| 2052 | 2053 |
| 2053 // FIXME: Animation events for newly started CSS Animations should be fi
red | 2054 DocumentAnimations::serviceOnAnimationFrame(*frame->document(), monotoni
cAnimationStartTime); |
| 2054 // asynchronously after the style recalc that triggered them. For now we
fire | |
| 2055 // them here (a frame late) so that they at least apply against the corr
ect | |
| 2056 // animation state. | |
| 2057 frame->document()->dispatchAnimationEvents(); | |
| 2058 frame->document()->serviceAnimations(monotonicAnimationStartTime); | |
| 2059 frame->document()->dispatchAnimationEvents(); | |
| 2060 } | 2055 } |
| 2061 | 2056 |
| 2062 Vector<RefPtr<Document> > documents; | 2057 Vector<RefPtr<Document> > documents; |
| 2063 for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext
()) | 2058 for (Frame* frame = m_frame.get(); frame; frame = frame->tree().traverseNext
()) |
| 2064 documents.append(frame->document()); | 2059 documents.append(frame->document()); |
| 2065 | 2060 |
| 2066 for (size_t i = 0; i < documents.size(); ++i) | 2061 for (size_t i = 0; i < documents.size(); ++i) |
| 2067 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime); | 2062 documents[i]->serviceScriptedAnimations(monotonicAnimationStartTime); |
| 2068 } | 2063 } |
| 2069 | 2064 |
| (...skipping 1446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3516 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) | 3511 void FrameView::willRemoveScrollbar(Scrollbar* scrollbar, ScrollbarOrientation o
rientation) |
| 3517 { | 3512 { |
| 3518 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); | 3513 ScrollableArea::willRemoveScrollbar(scrollbar, orientation); |
| 3519 if (AXObjectCache* cache = axObjectCache()) { | 3514 if (AXObjectCache* cache = axObjectCache()) { |
| 3520 cache->remove(scrollbar); | 3515 cache->remove(scrollbar); |
| 3521 cache->handleScrollbarUpdate(this); | 3516 cache->handleScrollbarUpdate(this); |
| 3522 } | 3517 } |
| 3523 } | 3518 } |
| 3524 | 3519 |
| 3525 } // namespace WebCore | 3520 } // namespace WebCore |
| OLD | NEW |