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

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

Issue 13877010: Remove frame flattening from rendering code. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Less overzealousness. Created 7 years, 8 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 | « no previous file | Source/WebCore/page/FrameView.cpp » ('j') | Source/WebCore/page/FrameView.cpp » ('J')
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def ault 83 LayoutUnit marginWidth() const { return m_margins.width(); } // -1 means def ault
84 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d efault 84 LayoutUnit marginHeight() const { return m_margins.height(); } // -1 means d efault
85 void setMarginWidth(LayoutUnit); 85 void setMarginWidth(LayoutUnit);
86 void setMarginHeight(LayoutUnit); 86 void setMarginHeight(LayoutUnit);
87 87
88 virtual void setCanHaveScrollbars(bool); 88 virtual void setCanHaveScrollbars(bool);
89 void updateCanHaveScrollbars(); 89 void updateCanHaveScrollbars();
90 90
91 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation); 91 virtual PassRefPtr<Scrollbar> createScrollbar(ScrollbarOrientation);
92 92
93 virtual bool avoidScrollbarCreation() const;
94
95 virtual void setContentsSize(const IntSize&); 93 virtual void setContentsSize(const IntSize&);
96 94
97 void layout(bool allowSubtree = true); 95 void layout(bool allowSubtree = true);
98 bool didFirstLayout() const; 96 bool didFirstLayout() const;
99 void layoutTimerFired(Timer<FrameView>*); 97 void layoutTimerFired(Timer<FrameView>*);
100 void scheduleRelayout(); 98 void scheduleRelayout();
101 void scheduleRelayoutOfSubtree(RenderObject*); 99 void scheduleRelayoutOfSubtree(RenderObject*);
102 void unscheduleRelayout(); 100 void unscheduleRelayout();
103 bool layoutPending() const; 101 bool layoutPending() const;
104 bool isInLayout() const { return m_inLayout; } 102 bool isInLayout() const { return m_inLayout; }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 bool hasEverPainted() const { return m_lastPaintTime; } 236 bool hasEverPainted() const { return m_lastPaintTime; }
239 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim e; } 237 void setLastPaintTime(double lastPaintTime) { m_lastPaintTime = lastPaintTim e; }
240 void setNodeToDraw(Node*); 238 void setNodeToDraw(Node*);
241 239
242 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect); 240 virtual void paintOverhangAreas(GraphicsContext*, const IntRect& horizontalO verhangArea, const IntRect& verticalOverhangArea, const IntRect& dirtyRect);
243 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect); 241 virtual void paintScrollCorner(GraphicsContext*, const IntRect& cornerRect);
244 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV ERRIDE; 242 virtual void paintScrollbar(GraphicsContext*, Scrollbar*, const IntRect&) OV ERRIDE;
245 243
246 Color documentBackgroundColor() const; 244 Color documentBackgroundColor() const;
247 245
248 bool isInChildFrameWithFrameFlattening() const;
249
250 static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } // returns 0 if not painting 246 static double currentPaintTimeStamp() { return sCurrentPaintTimeStamp; } // returns 0 if not painting
251 247
252 void updateLayoutAndStyleIfNeededRecursive(); 248 void updateLayoutAndStyleIfNeededRecursive();
253 249
254 void incrementVisuallyNonEmptyCharacterCount(unsigned); 250 void incrementVisuallyNonEmptyCharacterCount(unsigned);
255 void incrementVisuallyNonEmptyPixelCount(const IntSize&); 251 void incrementVisuallyNonEmptyPixelCount(const IntSize&);
256 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; } 252 void setIsVisuallyNonEmpty() { m_isVisuallyNonEmpty = true; }
257 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; } 253 bool isVisuallyNonEmpty() const { return m_isVisuallyNonEmpty; }
258 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize); 254 void enableAutoSizeMode(bool enable, const IntSize& minSize, const IntSize& maxSize);
259 255
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 void updateWidget(RenderObject*); 429 void updateWidget(RenderObject*);
434 void scrollToAnchor(); 430 void scrollToAnchor();
435 void scrollPositionChanged(); 431 void scrollPositionChanged();
436 432
437 bool hasCustomScrollbars() const; 433 bool hasCustomScrollbars() const;
438 434
439 virtual void updateScrollCorner(); 435 virtual void updateScrollCorner();
440 436
441 FrameView* parentFrameView() const; 437 FrameView* parentFrameView() const;
442 438
443 bool doLayoutWithFrameFlattening(bool allowSubtree);
444
445 virtual AXObjectCache* axObjectCache() const; 439 virtual AXObjectCache* axObjectCache() const;
446 void notifyWidgetsInAllFrames(WidgetNotification); 440 void notifyWidgetsInAllFrames(WidgetNotification);
447 void removeFromAXObjectCache(); 441 void removeFromAXObjectCache();
448 442
449 static double sCurrentPaintTimeStamp; // used for detecting decoded resource thrash in the cache 443 static double sCurrentPaintTimeStamp; // used for detecting decoded resource thrash in the cache
450 444
451 LayoutSize m_size; 445 LayoutSize m_size;
452 LayoutSize m_margins; 446 LayoutSize m_margins;
453 447
454 typedef HashSet<RenderObject*> RenderObjectSet; 448 typedef HashSet<RenderObject*> RenderObjectSet;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 ASSERT(!widget || widget->isFrameView()); 600 ASSERT(!widget || widget->isFrameView());
607 return static_cast<const FrameView*>(widget); 601 return static_cast<const FrameView*>(widget);
608 } 602 }
609 603
610 // This will catch anyone doing an unnecessary cast. 604 // This will catch anyone doing an unnecessary cast.
611 void toFrameView(const FrameView*); 605 void toFrameView(const FrameView*);
612 606
613 } // namespace WebCore 607 } // namespace WebCore
614 608
615 #endif // FrameView_h 609 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/page/FrameView.cpp » ('j') | Source/WebCore/page/FrameView.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698