| 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 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 class Color; | 38 class Color; |
| 39 class Event; | 39 class Event; |
| 40 class FloatSize; | 40 class FloatSize; |
| 41 class Frame; | 41 class Frame; |
| 42 class FrameActionScheduler; | 42 class FrameActionScheduler; |
| 43 class IntRect; | 43 class IntRect; |
| 44 class KURL; | 44 class KURL; |
| 45 class Node; | 45 class Node; |
| 46 class Page; | 46 class Page; |
| 47 class RenderBox; |
| 47 class RenderEmbeddedObject; | 48 class RenderEmbeddedObject; |
| 48 class RenderLayer; | 49 class RenderLayer; |
| 49 class RenderObject; | 50 class RenderObject; |
| 50 class RenderScrollbarPart; | 51 class RenderScrollbarPart; |
| 51 | 52 |
| 52 typedef unsigned long long DOMTimeStamp; | 53 typedef unsigned long long DOMTimeStamp; |
| 53 | 54 |
| 54 class FrameView : public ScrollView { | 55 class FrameView : public ScrollView { |
| 55 public: | 56 public: |
| 56 friend class RenderView; | 57 friend class RenderView; |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 | 280 |
| 280 virtual IntPoint currentMousePosition() const; | 281 virtual IntPoint currentMousePosition() const; |
| 281 | 282 |
| 282 // FIXME: Remove this method once plugin loading is decoupled from layout. | 283 // FIXME: Remove this method once plugin loading is decoupled from layout. |
| 283 void flushAnyPendingPostLayoutTasks(); | 284 void flushAnyPendingPostLayoutTasks(); |
| 284 | 285 |
| 285 virtual bool shouldSuspendScrollAnimations() const; | 286 virtual bool shouldSuspendScrollAnimations() const; |
| 286 | 287 |
| 287 void setAnimatorsAreActive(); | 288 void setAnimatorsAreActive(); |
| 288 | 289 |
| 290 void clearOwningRendererForCustomScrollbars(RenderBox*); |
| 291 |
| 289 protected: | 292 protected: |
| 290 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect); | 293 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec
t& rectToScroll, const IntRect& clipRect); |
| 291 virtual void scrollContentsSlowPath(const IntRect& updateRect); | 294 virtual void scrollContentsSlowPath(const IntRect& updateRect); |
| 292 | 295 |
| 293 virtual bool isVerticalDocument() const; | 296 virtual bool isVerticalDocument() const; |
| 294 virtual bool isFlippedDocument() const; | 297 virtual bool isFlippedDocument() const; |
| 295 | 298 |
| 296 private: | 299 private: |
| 297 FrameView(Frame*); | 300 FrameView(Frame*); |
| 298 | 301 |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 m_visuallyNonEmptyPixelCount += size.width() * size.height(); | 477 m_visuallyNonEmptyPixelCount += size.width() * size.height(); |
| 475 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout | 478 // Use a threshold value to prevent very small amounts of visible content fr
om triggering didFirstVisuallyNonEmptyLayout |
| 476 static const unsigned visualPixelThreshold = 256 * 256; | 479 static const unsigned visualPixelThreshold = 256 * 256; |
| 477 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) | 480 if (m_visuallyNonEmptyPixelCount > visualPixelThreshold) |
| 478 setIsVisuallyNonEmpty(); | 481 setIsVisuallyNonEmpty(); |
| 479 } | 482 } |
| 480 | 483 |
| 481 } // namespace WebCore | 484 } // namespace WebCore |
| 482 | 485 |
| 483 #endif // FrameView_h | 486 #endif // FrameView_h |
| OLD | NEW |