| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) | 2 Copyright (C) 1997 Martin Jones (mjones@kde.org) |
| 3 (C) 1998 Waldo Bastian (bastian@kde.org) | 3 (C) 1998 Waldo Bastian (bastian@kde.org) |
| 4 (C) 1998, 1999 Torben Weis (weis@kde.org) | 4 (C) 1998, 1999 Torben Weis (weis@kde.org) |
| 5 (C) 1999 Lars Knoll (knoll@kde.org) | 5 (C) 1999 Lars Knoll (knoll@kde.org) |
| 6 (C) 1999 Antti Koivisto (koivisto@kde.org) | 6 (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. | 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserv
ed. |
| 8 | 8 |
| 9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
| 10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 | 131 |
| 132 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const; | 132 IntRect windowClipRect(IncludeScrollbarsInRect = ExcludeScrollbars) const; |
| 133 | 133 |
| 134 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor
; } | 134 float visibleContentScaleFactor() const { return m_visibleContentScaleFactor
; } |
| 135 void setVisibleContentScaleFactor(float); | 135 void setVisibleContentScaleFactor(float); |
| 136 | 136 |
| 137 float inputEventsScaleFactor() const; | 137 float inputEventsScaleFactor() const; |
| 138 IntSize inputEventsOffsetForEmulation() const; | 138 IntSize inputEventsOffsetForEmulation() const; |
| 139 void setInputEventsTransformForEmulation(const IntSize&, float); | 139 void setInputEventsTransformForEmulation(const IntSize&, float); |
| 140 | 140 |
| 141 // This is different than visibleContentRect() in that it ignores negative (
or overly positive) | |
| 142 // offsets from rubber-banding, and it takes zooming into account. | |
| 143 void viewportConstrainedVisibleContentSizeChanged(bool widthChanged, bool he
ightChanged); | |
| 144 | |
| 145 AtomicString mediaType() const; | 141 AtomicString mediaType() const; |
| 146 void setMediaType(const AtomicString&); | 142 void setMediaType(const AtomicString&); |
| 147 | 143 |
| 148 void addSlowRepaintObject(); | 144 void addSlowRepaintObject(); |
| 149 void removeSlowRepaintObject(); | 145 void removeSlowRepaintObject(); |
| 150 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; } | 146 bool hasSlowRepaintObjects() const { return m_slowRepaintObjectCount; } |
| 151 | 147 |
| 152 // Fixed-position objects. | |
| 153 typedef HashSet<RenderObject*> ViewportConstrainedObjectSet; | |
| 154 void addViewportConstrainedObject(RenderObject*); | |
| 155 void removeViewportConstrainedObject(RenderObject*); | |
| 156 const ViewportConstrainedObjectSet* viewportConstrainedObjects() const { ret
urn m_viewportConstrainedObjects.get(); } | |
| 157 bool hasViewportConstrainedObjects() const { return m_viewportConstrainedObj
ects && m_viewportConstrainedObjects->size() > 0; } | |
| 158 | |
| 159 void restoreScrollbar(); | 148 void restoreScrollbar(); |
| 160 | 149 |
| 161 void postLayoutTimerFired(Timer<FrameView>*); | 150 void postLayoutTimerFired(Timer<FrameView>*); |
| 162 | 151 |
| 163 bool wasScrolledByUser() const; | 152 bool wasScrolledByUser() const; |
| 164 void setWasScrolledByUser(bool); | 153 void setWasScrolledByUser(bool); |
| 165 | 154 |
| 166 void addWidget(RenderWidget*); | 155 void addWidget(RenderWidget*); |
| 167 void removeWidget(RenderWidget*); | 156 void removeWidget(RenderWidget*); |
| 168 void updateWidgetPositions(); | 157 void updateWidgetPositions(); |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 virtual IntPoint convertFromContainingView(const IntPoint&) const override; | 324 virtual IntPoint convertFromContainingView(const IntPoint&) const override; |
| 336 | 325 |
| 337 void updateWidgetPositionsIfNeeded(); | 326 void updateWidgetPositionsIfNeeded(); |
| 338 | 327 |
| 339 bool wasViewportResized(); | 328 bool wasViewportResized(); |
| 340 void sendResizeEventIfNeeded(); | 329 void sendResizeEventIfNeeded(); |
| 341 | 330 |
| 342 void scrollPositionChanged(); | 331 void scrollPositionChanged(); |
| 343 void didScrollTimerFired(Timer<FrameView>*); | 332 void didScrollTimerFired(Timer<FrameView>*); |
| 344 | 333 |
| 345 void updateLayersAndCompositingAfterScrollIfNeeded(); | |
| 346 void updateFixedElementPaintInvalidationRectsAfterScroll(); | |
| 347 void updateCompositedSelectionBoundsIfNeeded(); | 334 void updateCompositedSelectionBoundsIfNeeded(); |
| 348 | 335 |
| 349 void setLayoutSizeInternal(const IntSize&); | 336 void setLayoutSizeInternal(const IntSize&); |
| 350 | 337 |
| 351 bool paintInvalidationIsAllowed() const | 338 bool paintInvalidationIsAllowed() const |
| 352 { | 339 { |
| 353 return !isInPerformLayout() || canInvalidatePaintDuringPerformLayout(); | 340 return !isInPerformLayout() || canInvalidatePaintDuringPerformLayout(); |
| 354 } | 341 } |
| 355 | 342 |
| 356 static double s_currentFrameTimeStamp; // used for detecting decoded resourc
e thrash in the cache | 343 static double s_currentFrameTimeStamp; // used for detecting decoded resourc
e thrash in the cache |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 | 389 |
| 403 bool m_isTrackingPaintInvalidations; // Used for testing. | 390 bool m_isTrackingPaintInvalidations; // Used for testing. |
| 404 Vector<IntRect> m_trackedPaintInvalidationRects; | 391 Vector<IntRect> m_trackedPaintInvalidationRects; |
| 405 | 392 |
| 406 RefPtr<Node> m_nodeToDraw; | 393 RefPtr<Node> m_nodeToDraw; |
| 407 PaintBehavior m_paintBehavior; | 394 PaintBehavior m_paintBehavior; |
| 408 bool m_isPainting; | 395 bool m_isPainting; |
| 409 | 396 |
| 410 OwnPtr<ScrollableAreaSet> m_scrollableAreas; | 397 OwnPtr<ScrollableAreaSet> m_scrollableAreas; |
| 411 OwnPtr<ResizerAreaSet> m_resizerAreas; | 398 OwnPtr<ResizerAreaSet> m_resizerAreas; |
| 412 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | |
| 413 | 399 |
| 414 bool m_hasSoftwareFilters; | 400 bool m_hasSoftwareFilters; |
| 415 | 401 |
| 416 float m_visibleContentScaleFactor; | 402 float m_visibleContentScaleFactor; |
| 417 IntSize m_inputEventsOffsetForEmulation; | 403 IntSize m_inputEventsOffsetForEmulation; |
| 418 float m_inputEventsScaleFactorForEmulation; | 404 float m_inputEventsScaleFactorForEmulation; |
| 419 | 405 |
| 420 IntSize m_layoutSize; | 406 IntSize m_layoutSize; |
| 421 bool m_layoutSizeFixedToFrameSize; | 407 bool m_layoutSizeFixedToFrameSize; |
| 422 | 408 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 449 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); | 435 m_view->setCanInvalidatePaintDuringPerformLayout(m_originalValue); |
| 450 } | 436 } |
| 451 private: | 437 private: |
| 452 FrameView* m_view; | 438 FrameView* m_view; |
| 453 bool m_originalValue; | 439 bool m_originalValue; |
| 454 }; | 440 }; |
| 455 | 441 |
| 456 } // namespace blink | 442 } // namespace blink |
| 457 | 443 |
| 458 #endif // FrameView_h | 444 #endif // FrameView_h |
| OLD | NEW |