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 14 matching lines...) Expand all Loading... |
25 #ifndef FrameView_h | 25 #ifndef FrameView_h |
26 #define FrameView_h | 26 #define FrameView_h |
27 | 27 |
28 #include "core/page/AdjustViewSizeOrNot.h" | 28 #include "core/page/AdjustViewSizeOrNot.h" |
29 #include "core/page/Frame.h" | 29 #include "core/page/Frame.h" |
30 #include "core/platform/ScrollView.h" | 30 #include "core/platform/ScrollView.h" |
31 #include "core/platform/graphics/Color.h" | 31 #include "core/platform/graphics/Color.h" |
32 #include "core/platform/graphics/LayoutRect.h" | 32 #include "core/platform/graphics/LayoutRect.h" |
33 #include "core/rendering/Pagination.h" | 33 #include "core/rendering/Pagination.h" |
34 #include "core/rendering/PaintPhase.h" | 34 #include "core/rendering/PaintPhase.h" |
| 35 #include "core/rendering/PartialLayoutState.h" |
35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
36 #include "wtf/OwnPtr.h" | 37 #include "wtf/OwnPtr.h" |
37 #include "wtf/text/WTFString.h" | 38 #include "wtf/text/WTFString.h" |
38 | 39 |
39 namespace WebCore { | 40 namespace WebCore { |
40 | 41 |
41 class Element; | 42 class Element; |
42 class Event; | 43 class Event; |
43 class FloatSize; | 44 class FloatSize; |
44 class FrameActionScheduler; | 45 class FrameActionScheduler; |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } | 329 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro
ll = programmaticScroll; } |
329 | 330 |
330 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } | 331 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters =
hasSoftwareFilters; } |
331 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } | 332 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } |
332 | 333 |
333 virtual bool isActive() const OVERRIDE; | 334 virtual bool isActive() const OVERRIDE; |
334 | 335 |
335 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. | 336 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. |
336 IntSize scrollOffsetForFixedPosition() const; | 337 IntSize scrollOffsetForFixedPosition() const; |
337 | 338 |
| 339 PartialLayoutState& partialLayout() { return m_partialLayout; } |
| 340 |
338 protected: | 341 protected: |
339 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect); | 342 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect); |
340 virtual void scrollContentsSlowPath(const IntRect& updateRect); | 343 virtual void scrollContentsSlowPath(const IntRect& updateRect); |
341 | 344 |
342 virtual bool isVerticalDocument() const; | 345 virtual bool isVerticalDocument() const; |
343 virtual bool isFlippedDocument() const; | 346 virtual bool isFlippedDocument() const; |
344 | 347 |
345 private: | 348 private: |
346 explicit FrameView(Frame*); | 349 explicit FrameView(Frame*); |
347 | 350 |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; | 527 OwnPtr<ViewportConstrainedObjectSet> m_viewportConstrainedObjects; |
525 | 528 |
526 static double s_normalDeferredRepaintDelay; | 529 static double s_normalDeferredRepaintDelay; |
527 static double s_initialDeferredRepaintDelayDuringLoading; | 530 static double s_initialDeferredRepaintDelayDuringLoading; |
528 static double s_maxDeferredRepaintDelayDuringLoading; | 531 static double s_maxDeferredRepaintDelayDuringLoading; |
529 static double s_deferredRepaintDelayIncrementDuringLoading; | 532 static double s_deferredRepaintDelayIncrementDuringLoading; |
530 | 533 |
531 bool m_hasSoftwareFilters; | 534 bool m_hasSoftwareFilters; |
532 | 535 |
533 float m_visibleContentScaleFactor; | 536 float m_visibleContentScaleFactor; |
| 537 |
| 538 PartialLayoutState m_partialLayout; |
534 }; | 539 }; |
535 | 540 |
536 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) | 541 inline void FrameView::incrementVisuallyNonEmptyCharacterCount(unsigned count) |
537 { | 542 { |
538 if (m_isVisuallyNonEmpty) | 543 if (m_isVisuallyNonEmpty) |
539 return; | 544 return; |
540 m_visuallyNonEmptyCharacterCount += count; | 545 m_visuallyNonEmptyCharacterCount += count; |
541 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. | 546 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout. |
542 // The first few hundred characters rarely contain the interesting content o
f the page. | 547 // The first few hundred characters rarely contain the interesting content o
f the page. |
543 static const unsigned visualCharacterThreshold = 200; | 548 static const unsigned visualCharacterThreshold = 200; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 ASSERT(!widget || widget->isFrameView()); | 582 ASSERT(!widget || widget->isFrameView()); |
578 return static_cast<const FrameView*>(widget); | 583 return static_cast<const FrameView*>(widget); |
579 } | 584 } |
580 | 585 |
581 // This will catch anyone doing an unnecessary cast. | 586 // This will catch anyone doing an unnecessary cast. |
582 void toFrameView(const FrameView*); | 587 void toFrameView(const FrameView*); |
583 | 588 |
584 } // namespace WebCore | 589 } // namespace WebCore |
585 | 590 |
586 #endif // FrameView_h | 591 #endif // FrameView_h |
OLD | NEW |