Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Side by Side Diff: Source/core/page/FrameView.h

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: define RenderObject::frameView in the header Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/shadow/SliderThumbElement.h ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; } 328 void setInProgrammaticScroll(bool programmaticScroll) { m_inProgrammaticScro ll = programmaticScroll; }
328 329
329 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; } 330 void setHasSoftwareFilters(bool hasSoftwareFilters) { m_hasSoftwareFilters = hasSoftwareFilters; }
330 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; } 331 bool hasSoftwareFilters() const { return m_hasSoftwareFilters; }
331 332
332 virtual bool isActive() const OVERRIDE; 333 virtual bool isActive() const OVERRIDE;
333 334
334 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead. 335 // DEPRECATED: Use viewportConstrainedVisibleContentRect() instead.
335 IntSize scrollOffsetForFixedPosition() const; 336 IntSize scrollOffsetForFixedPosition() const;
336 337
338 PartialLayoutState& partialLayout() { return m_partialLayout; }
339
337 protected: 340 protected:
338 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec t& rectToScroll, const IntRect& clipRect); 341 virtual bool scrollContentsFastPath(const IntSize& scrollDelta, const IntRec t& rectToScroll, const IntRect& clipRect);
339 virtual void scrollContentsSlowPath(const IntRect& updateRect); 342 virtual void scrollContentsSlowPath(const IntRect& updateRect);
340 343
341 virtual bool isVerticalDocument() const; 344 virtual bool isVerticalDocument() const;
342 virtual bool isFlippedDocument() const; 345 virtual bool isFlippedDocument() const;
343 346
344 private: 347 private:
345 explicit FrameView(Frame*); 348 explicit FrameView(Frame*);
346 349
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/html/shadow/SliderThumbElement.h ('k') | Source/core/page/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698