| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "core/editing/markers/DocumentMarkerController.h" | 45 #include "core/editing/markers/DocumentMarkerController.h" |
| 46 #include "core/events/ErrorEvent.h" | 46 #include "core/events/ErrorEvent.h" |
| 47 #include "core/fetch/ResourceFetcher.h" | 47 #include "core/fetch/ResourceFetcher.h" |
| 48 #include "core/frame/BrowserControls.h" | 48 #include "core/frame/BrowserControls.h" |
| 49 #include "core/frame/EventHandlerRegistry.h" | 49 #include "core/frame/EventHandlerRegistry.h" |
| 50 #include "core/frame/FrameHost.h" | 50 #include "core/frame/FrameHost.h" |
| 51 #include "core/frame/LocalFrame.h" | 51 #include "core/frame/LocalFrame.h" |
| 52 #include "core/frame/Location.h" | 52 #include "core/frame/Location.h" |
| 53 #include "core/frame/PageScaleConstraintsSet.h" | 53 #include "core/frame/PageScaleConstraintsSet.h" |
| 54 #include "core/frame/PerformanceMonitor.h" | 54 #include "core/frame/PerformanceMonitor.h" |
| 55 #include "core/frame/RemoteFrame.h" |
| 56 #include "core/frame/RemoteFrameView.h" |
| 55 #include "core/frame/Settings.h" | 57 #include "core/frame/Settings.h" |
| 56 #include "core/frame/VisualViewport.h" | 58 #include "core/frame/VisualViewport.h" |
| 57 #include "core/html/HTMLFrameElement.h" | 59 #include "core/html/HTMLFrameElement.h" |
| 58 #include "core/html/HTMLPlugInElement.h" | 60 #include "core/html/HTMLPlugInElement.h" |
| 59 #include "core/html/TextControlElement.h" | 61 #include "core/html/TextControlElement.h" |
| 60 #include "core/html/parser/TextResourceDecoder.h" | 62 #include "core/html/parser/TextResourceDecoder.h" |
| 61 #include "core/input/EventHandler.h" | 63 #include "core/input/EventHandler.h" |
| 62 #include "core/inspector/InspectorInstrumentation.h" | 64 #include "core/inspector/InspectorInstrumentation.h" |
| 63 #include "core/inspector/InspectorTraceEvents.h" | 65 #include "core/inspector/InspectorTraceEvents.h" |
| 64 #include "core/layout/LayoutAnalyzer.h" | 66 #include "core/layout/LayoutAnalyzer.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 m_hiddenForThrottling(false), | 189 m_hiddenForThrottling(false), |
| 188 m_subtreeThrottled(false), | 190 m_subtreeThrottled(false), |
| 189 m_lifecycleUpdatesThrottled(false), | 191 m_lifecycleUpdatesThrottled(false), |
| 190 m_needsPaintPropertyUpdate(true), | 192 m_needsPaintPropertyUpdate(true), |
| 191 m_currentUpdateLifecyclePhasesTargetState( | 193 m_currentUpdateLifecyclePhasesTargetState( |
| 192 DocumentLifecycle::Uninitialized), | 194 DocumentLifecycle::Uninitialized), |
| 193 m_scrollAnchor(this), | 195 m_scrollAnchor(this), |
| 194 m_scrollbarManager(*this), | 196 m_scrollbarManager(*this), |
| 195 m_needsScrollbarsUpdate(false), | 197 m_needsScrollbarsUpdate(false), |
| 196 m_suppressAdjustViewSize(false), | 198 m_suppressAdjustViewSize(false), |
| 197 m_allowsLayoutInvalidationAfterLayoutClean(true) { | 199 m_allowsLayoutInvalidationAfterLayoutClean(true), |
| 200 m_remoteViewportIntersection(0, 0, 0, 0) { |
| 198 init(); | 201 init(); |
| 199 } | 202 } |
| 200 | 203 |
| 201 FrameView* FrameView::create(LocalFrame& frame) { | 204 FrameView* FrameView::create(LocalFrame& frame) { |
| 202 FrameView* view = new FrameView(frame); | 205 FrameView* view = new FrameView(frame); |
| 203 view->show(); | 206 view->show(); |
| 204 return view; | 207 return view; |
| 205 } | 208 } |
| 206 | 209 |
| 207 FrameView* FrameView::create(LocalFrame& frame, const IntSize& initialSize) { | 210 FrameView* FrameView::create(LocalFrame& frame, const IntSize& initialSize) { |
| (...skipping 4371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4579 int FrameView::initialViewportWidth() const { | 4582 int FrameView::initialViewportWidth() const { |
| 4580 DCHECK(m_frame->isMainFrame()); | 4583 DCHECK(m_frame->isMainFrame()); |
| 4581 return m_initialViewportSize.width(); | 4584 return m_initialViewportSize.width(); |
| 4582 } | 4585 } |
| 4583 | 4586 |
| 4584 int FrameView::initialViewportHeight() const { | 4587 int FrameView::initialViewportHeight() const { |
| 4585 DCHECK(m_frame->isMainFrame()); | 4588 DCHECK(m_frame->isMainFrame()); |
| 4586 return m_initialViewportSize.height(); | 4589 return m_initialViewportSize.height(); |
| 4587 } | 4590 } |
| 4588 | 4591 |
| 4592 void FrameView::setViewportIntersectionFromParent( |
| 4593 const IntRect& viewportIntersection) { |
| 4594 if (m_remoteViewportIntersection != viewportIntersection) { |
| 4595 m_remoteViewportIntersection = viewportIntersection; |
| 4596 scheduleAnimation(); |
| 4597 } |
| 4598 } |
| 4599 |
| 4600 IntRect FrameView::remoteViewportIntersection() { |
| 4601 IntRect intersection(m_remoteViewportIntersection); |
| 4602 intersection.move(scrollOffsetInt()); |
| 4603 return intersection; |
| 4604 } |
| 4605 |
| 4589 } // namespace blink | 4606 } // namespace blink |
| OLD | NEW |