| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } | 330 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } |
| 331 | 331 |
| 332 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } | 332 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } |
| 333 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } | 333 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } |
| 334 | 334 |
| 335 virtual bool isActive() const OVERRIDE; | 335 virtual bool isActive() const OVERRIDE; |
| 336 | 336 |
| 337 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. | 337 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. |
| 338 IntSize scrollOffsetForFixedPosition() const; | 338 IntSize scrollOffsetForFixedPosition() const; |
| 339 | 339 |
| 340 bool canStopPartialLayout() const { return m_canStopPartialLayout; } |
| 341 void checkPartialLayoutComplete(RenderObject*); |
| 342 void setStopLayoutAtRenderer(RenderObject* renderer) { m_stopLayoutAtRendere
r = renderer; } |
| 343 void resetPartialLayoutState() { m_stopLayoutAtRenderer = 0; m_canStopPartia
lLayout = false; } |
| 344 |
| 340 protected: | 345 protected: |
| 341 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect); | 346 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect); |
| 342 virtual void scrollContentsSlowPath(const IntRect& updateRect); | 347 virtual void scrollContentsSlowPath(const IntRect& updateRect); |
| 343 | 348 |
| 344 virtual bool isVerticalDocument() const; | 349 virtual bool isVerticalDocument() const; |
| 345 virtual bool isFlippedDocument() const; | 350 virtual bool isFlippedDocument() const; |
| 346 | 351 |
| 347 private: | 352 private: |
| 348 explicit FrameView(Frame*); | 353 explicit FrameView(Frame*); |
| 349 | 354 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 520 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 525 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
| 521 | 526 |
| 522 static double s_normalDeferredRepaintDelay; | 527 static double s_normalDeferredRepaintDelay; |
| 523 static double s_initialDeferredRepaintDelayDuringLoading; | 528 static double s_initialDeferredRepaintDelayDuringLoading; |
| 524 static double s_maxDeferredRepaintDelayDuringLoading; | 529 static double s_maxDeferredRepaintDelayDuringLoading; |
| 525 static double s_deferredRepaintDelayIncrementDuringLoading; | 530 static double s_deferredRepaintDelayIncrementDuringLoading; |
| 526 | 531 |
| 527 bool m_hasSoftwareFilters; | 532 bool m_hasSoftwareFilters; |
| 528 | 533 |
| 529 float m_visibleContentScaleFactor; | 534 float m_visibleContentScaleFactor; |
| 535 |
| 536 bool m_canStopPartialLayout; |
| 537 RenderObject* m_stopLayoutAtRenderer; |
| 530 }; | 538 }; |
| 531 | 539 |
| 532 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 540 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
| 533 { | 541 { |
| 534 if (m_isVisuallyNonEmpty) | 542 if (m_isVisuallyNonEmpty) |
| 535 return; | 543 return; |
| 536 m_visuallyNonEmptyCharacterCount += count; | 544 m_visuallyNonEmptyCharacterCount += count; |
| 537 // 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. |
| 538 // The first few hundred characters rarely contain the interesting content o
f the page. | 546 // The first few hundred characters rarely contain the interesting content o
f the page. |
| 539 static const unsigned visualCharacterThreshold = 200; | 547 static const unsigned visualCharacterThreshold = 200; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 573 ASSERT(!widget || widget->isFrameView()); | 581 ASSERT(!widget || widget->isFrameView()); |
| 574 return static_cast<const FrameView*>(widget); | 582 return static_cast<const FrameView*>(widget); |
| 575 } | 583 } |
| 576 | 584 |
| 577 // This will catch anyone doing an unnecessary cast. | 585 // This will catch anyone doing an unnecessary cast. |
| 578 void toFrameView(const FrameView*); | 586 void toFrameView(const FrameView*); |
| 579 | 587 |
| 580 } // namespace WebCore | 588 } // namespace WebCore |
| 581 | 589 |
| 582 #endif // FrameView_h | 590 #endif // FrameView_h |
| OLD | NEW |