| 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 Simon Hausmann <hausmann@kde.org> | 5 * 2000 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000 Stefan Schimanski <1Stein@gmx.de> | 6 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 7 * 2001 George Staikos <staikos@kde.org> | 7 * 2001 George Staikos <staikos@kde.org> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All |
| 9 * rights reserved. | 9 * rights reserved. |
| 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> | 10 * Copyright (C) 2005 Alexey Proskuryakov <ap@nypop.com> |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 #include "platform/RuntimeEnabledFeatures.h" | 85 #include "platform/RuntimeEnabledFeatures.h" |
| 86 #include "platform/ScriptForbiddenScope.h" | 86 #include "platform/ScriptForbiddenScope.h" |
| 87 #include "platform/WebFrameScheduler.h" | 87 #include "platform/WebFrameScheduler.h" |
| 88 #include "platform/graphics/GraphicsContext.h" | 88 #include "platform/graphics/GraphicsContext.h" |
| 89 #include "platform/graphics/StaticBitmapImage.h" | 89 #include "platform/graphics/StaticBitmapImage.h" |
| 90 #include "platform/graphics/paint/ClipRecorder.h" | 90 #include "platform/graphics/paint/ClipRecorder.h" |
| 91 #include "platform/graphics/paint/PaintCanvas.h" | 91 #include "platform/graphics/paint/PaintCanvas.h" |
| 92 #include "platform/graphics/paint/PaintController.h" | 92 #include "platform/graphics/paint/PaintController.h" |
| 93 #include "platform/graphics/paint/PaintRecordBuilder.h" | 93 #include "platform/graphics/paint/PaintRecordBuilder.h" |
| 94 #include "platform/graphics/paint/TransformDisplayItem.h" | 94 #include "platform/graphics/paint/TransformDisplayItem.h" |
| 95 #include "platform/instrumentation/resource_coordinator/FrameResourceCoordinator
.h" |
| 95 #include "platform/json/JSONValues.h" | 96 #include "platform/json/JSONValues.h" |
| 96 #include "platform/loader/fetch/FetchParameters.h" | 97 #include "platform/loader/fetch/FetchParameters.h" |
| 97 #include "platform/loader/fetch/ResourceFetcher.h" | 98 #include "platform/loader/fetch/ResourceFetcher.h" |
| 98 #include "platform/loader/fetch/ResourceRequest.h" | 99 #include "platform/loader/fetch/ResourceRequest.h" |
| 99 #include "platform/plugins/PluginData.h" | 100 #include "platform/plugins/PluginData.h" |
| 100 #include "platform/scheduler/renderer/web_view_scheduler.h" | 101 #include "platform/scheduler/renderer/web_view_scheduler.h" |
| 101 #include "platform/text/TextStream.h" | 102 #include "platform/text/TextStream.h" |
| 102 #include "platform/wtf/PtrUtil.h" | 103 #include "platform/wtf/PtrUtil.h" |
| 103 #include "platform/wtf/StdLibExtras.h" | 104 #include "platform/wtf/StdLibExtras.h" |
| 104 #include "public/platform/InterfaceProvider.h" | 105 #include "public/platform/InterfaceProvider.h" |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 363 visitor->Trace(view_); | 364 visitor->Trace(view_); |
| 364 visitor->Trace(dom_window_); | 365 visitor->Trace(dom_window_); |
| 365 visitor->Trace(page_popup_owner_); | 366 visitor->Trace(page_popup_owner_); |
| 366 visitor->Trace(script_controller_); | 367 visitor->Trace(script_controller_); |
| 367 visitor->Trace(editor_); | 368 visitor->Trace(editor_); |
| 368 visitor->Trace(spell_checker_); | 369 visitor->Trace(spell_checker_); |
| 369 visitor->Trace(selection_); | 370 visitor->Trace(selection_); |
| 370 visitor->Trace(event_handler_); | 371 visitor->Trace(event_handler_); |
| 371 visitor->Trace(console_); | 372 visitor->Trace(console_); |
| 372 visitor->Trace(input_method_controller_); | 373 visitor->Trace(input_method_controller_); |
| 374 visitor->Trace(frame_resource_coordinator_); |
| 373 Frame::Trace(visitor); | 375 Frame::Trace(visitor); |
| 374 Supplementable<LocalFrame>::Trace(visitor); | 376 Supplementable<LocalFrame>::Trace(visitor); |
| 375 } | 377 } |
| 376 | 378 |
| 377 void LocalFrame::Navigate(Document& origin_document, | 379 void LocalFrame::Navigate(Document& origin_document, |
| 378 const KURL& url, | 380 const KURL& url, |
| 379 bool replace_current_item, | 381 bool replace_current_item, |
| 380 UserGestureStatus user_gesture_status) { | 382 UserGestureStatus user_gesture_status) { |
| 381 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, | 383 navigation_scheduler_->ScheduleLocationChange(&origin_document, url, |
| 382 replace_current_item); | 384 replace_current_item); |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 selection_(FrameSelection::Create(*this)), | 903 selection_(FrameSelection::Create(*this)), |
| 902 event_handler_(new EventHandler(*this)), | 904 event_handler_(new EventHandler(*this)), |
| 903 console_(FrameConsole::Create(*this)), | 905 console_(FrameConsole::Create(*this)), |
| 904 input_method_controller_(InputMethodController::Create(*this)), | 906 input_method_controller_(InputMethodController::Create(*this)), |
| 905 navigation_disable_count_(0), | 907 navigation_disable_count_(0), |
| 906 page_zoom_factor_(ParentPageZoomFactor(this)), | 908 page_zoom_factor_(ParentPageZoomFactor(this)), |
| 907 text_zoom_factor_(ParentTextZoomFactor(this)), | 909 text_zoom_factor_(ParentTextZoomFactor(this)), |
| 908 in_view_source_mode_(false), | 910 in_view_source_mode_(false), |
| 909 interface_provider_(interface_provider), | 911 interface_provider_(interface_provider), |
| 910 interface_registry_(interface_registry) { | 912 interface_registry_(interface_registry) { |
| 913 if (FrameResourceCoordinator::IsEnabled()) { |
| 914 frame_resource_coordinator_ = |
| 915 FrameResourceCoordinator::Create(interface_provider); |
| 916 } |
| 911 if (IsLocalRoot()) { | 917 if (IsLocalRoot()) { |
| 912 probe_sink_ = new CoreProbeSink(); | 918 probe_sink_ = new CoreProbeSink(); |
| 913 performance_monitor_ = new PerformanceMonitor(this); | 919 performance_monitor_ = new PerformanceMonitor(this); |
| 914 } else { | 920 } else { |
| 915 probe_sink_ = LocalFrameRoot().probe_sink_; | 921 probe_sink_ = LocalFrameRoot().probe_sink_; |
| 916 performance_monitor_ = LocalFrameRoot().performance_monitor_; | 922 performance_monitor_ = LocalFrameRoot().performance_monitor_; |
| 917 } | 923 } |
| 918 } | 924 } |
| 919 | 925 |
| 920 WebFrameScheduler* LocalFrame::FrameScheduler() { | 926 WebFrameScheduler* LocalFrame::FrameScheduler() { |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1211 void LocalFrame::SetViewportIntersectionFromParent( | 1217 void LocalFrame::SetViewportIntersectionFromParent( |
| 1212 const IntRect& viewport_intersection) { | 1218 const IntRect& viewport_intersection) { |
| 1213 if (remote_viewport_intersection_ != viewport_intersection) { | 1219 if (remote_viewport_intersection_ != viewport_intersection) { |
| 1214 remote_viewport_intersection_ = viewport_intersection; | 1220 remote_viewport_intersection_ = viewport_intersection; |
| 1215 if (View()) | 1221 if (View()) |
| 1216 View()->ScheduleAnimation(); | 1222 View()->ScheduleAnimation(); |
| 1217 } | 1223 } |
| 1218 } | 1224 } |
| 1219 | 1225 |
| 1220 } // namespace blink | 1226 } // namespace blink |
| OLD | NEW |