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 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 bool wheelEvent(const PlatformWheelEvent&); | 321 bool wheelEvent(const PlatformWheelEvent&); |
322 | 322 |
323 // Page and FrameView both store a Pagination value. Page::pagination() is s
et only by API, | 323 // Page and FrameView both store a Pagination value. Page::pagination() is s
et only by API, |
324 // and FrameView::pagination() is set only by CSS. Page::pagination() will a
ffect all | 324 // and FrameView::pagination() is set only by CSS. Page::pagination() will a
ffect all |
325 // FrameViews in the page cache, but FrameView::pagination() only affects th
e current | 325 // FrameViews in the page cache, but FrameView::pagination() only affects th
e current |
326 // FrameView. FrameView::pagination() will return m_pagination if it has bee
n set. Otherwise, | 326 // FrameView. FrameView::pagination() will return m_pagination if it has bee
n set. Otherwise, |
327 // it will return Page::pagination() since currently there are no callers th
at need to | 327 // it will return Page::pagination() since currently there are no callers th
at need to |
328 // distinguish between the two. | 328 // distinguish between the two. |
329 const Pagination& pagination() const; | 329 const Pagination& pagination() const; |
330 void setPagination(const Pagination&); | 330 void setPagination(const Pagination&); |
331 | 331 |
332 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } | 332 bool inProgrammaticScroll() const { return m_inProgrammaticScroll; } |
333 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } | 333 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } |
334 | 334 |
335 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } | 335 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } |
336 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } | 336 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } |
337 #if ENABLE(CSS_DEVICE_ADAPTATION) | |
338 IntSize initialViewportSize() const { return m_initialViewportSize; } | |
339 void setInitialViewportSize(const IntSize& size) { m_initialViewportSize = s
ize; } | |
340 #endif | |
341 | 337 |
342 virtual bool isActive() const OVERRIDE; | 338 virtual bool isActive() const OVERRIDE; |
343 | 339 |
344 #if ENABLE(RUBBER_BANDING) | 340 #if ENABLE(RUBBER_BANDING) |
345 GraphicsLayer* setWantsLayerForTopOverHangArea(bool) const; | 341 GraphicsLayer* setWantsLayerForTopOverHangArea(bool) const; |
346 GraphicsLayer* setWantsLayerForBottomOverHangArea(bool) const; | 342 GraphicsLayer* setWantsLayerForBottomOverHangArea(bool) const; |
347 #endif | 343 #endif |
348 | 344 |
349 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. | 345 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. |
350 IntSize scrollOffsetForFixedPosition() const; | 346 IntSize scrollOffsetForFixedPosition() const; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 OwnPtr<ScrollableAreaSet> m_scrollableAreas; | 526 OwnPtr<ScrollableAreaSet> m_scrollableAreas; |
531 OwnPtr<ResizerAreaSet> m_resizerAreas; | 527 OwnPtr<ResizerAreaSet> m_resizerAreas; |
532 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 528 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
533 | 529 |
534 static double s_normalDeferredRepaintDelay; | 530 static double s_normalDeferredRepaintDelay; |
535 static double s_initialDeferredRepaintDelayDuringLoading; | 531 static double s_initialDeferredRepaintDelayDuringLoading; |
536 static double s_maxDeferredRepaintDelayDuringLoading; | 532 static double s_maxDeferredRepaintDelayDuringLoading; |
537 static double s_deferredRepaintDelayIncrementDuringLoading; | 533 static double s_deferredRepaintDelayIncrementDuringLoading; |
538 | 534 |
539 bool m_hasSoftwareFilters; | 535 bool m_hasSoftwareFilters; |
540 #if ENABLE(CSS_DEVICE_ADAPTATION) | |
541 // Size of viewport before any UA or author styles have overridden | |
542 // the viewport given by the window or viewing area of the UA. | |
543 IntSize m_initialViewportSize; | |
544 #endif | |
545 | 536 |
546 float m_visibleContentScaleFactor; | 537 float m_visibleContentScaleFactor; |
547 }; | 538 }; |
548 | 539 |
549 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 540 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
550 { | 541 { |
551 if (m_isVisuallyNonEmpty) | 542 if (m_isVisuallyNonEmpty) |
552 return; | 543 return; |
553 m_visuallyNonEmptyCharacterCount += count; | 544 m_visuallyNonEmptyCharacterCount += count; |
554 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. | 545 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 ASSERT(!widget || widget->isFrameView()); | 581 ASSERT(!widget || widget->isFrameView()); |
591 return static_cast<const FrameView*>(widget); | 582 return static_cast<const FrameView*>(widget); |
592 } | 583 } |
593 | 584 |
594 // This will catch anyone doing an unnecessary cast. | 585 // This will catch anyone doing an unnecessary cast. |
595 void toFrameView(const FrameView*); | 586 void toFrameView(const FrameView*); |
596 | 587 |
597 } // namespace WebCore | 588 } // namespace WebCore |
598 | 589 |
599 #endif // FrameView_h | 590 #endif // FrameView_h |
OLD | NEW |