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

Side by Side Diff: Source/core/rendering/RenderScrollbarPart.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/rendering/RenderRubyText.h ('k') | Source/core/rendering/RenderTable.h » ('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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 protected: 59 protected:
60 virtual void styleWillChange(StyleDifference diff, const RenderStyle* newSty le); 60 virtual void styleWillChange(StyleDifference diff, const RenderStyle* newSty le);
61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 61 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
62 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0); 62 virtual void imageChanged(WrappedImagePtr, const IntRect* = 0);
63 63
64 private: 64 private:
65 RenderScrollbarPart(RenderScrollbar*, ScrollbarPart); 65 RenderScrollbarPart(RenderScrollbar*, ScrollbarPart);
66 66
67 virtual void computePreferredLogicalWidths(); 67 virtual void computePreferredLogicalWidths();
68 68
69 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
70
69 void layoutHorizontalPart(); 71 void layoutHorizontalPart();
70 void layoutVerticalPart(); 72 void layoutVerticalPart();
71 73
72 void computeScrollbarWidth(); 74 void computeScrollbarWidth();
73 void computeScrollbarHeight(); 75 void computeScrollbarHeight();
74 76
75 RenderScrollbar* m_scrollbar; 77 RenderScrollbar* m_scrollbar;
76 ScrollbarPart m_part; 78 ScrollbarPart m_part;
77 }; 79 };
78 80
79 inline RenderScrollbarPart* toRenderScrollbarPart(RenderObject* object) 81 inline RenderScrollbarPart* toRenderScrollbarPart(RenderObject* object)
80 { 82 {
81 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart()) ; 83 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart()) ;
82 return static_cast<RenderScrollbarPart*>(object); 84 return static_cast<RenderScrollbarPart*>(object);
83 } 85 }
84 86
85 inline const RenderScrollbarPart* toRenderScrollbarPart(const RenderObject* obje ct) 87 inline const RenderScrollbarPart* toRenderScrollbarPart(const RenderObject* obje ct)
86 { 88 {
87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart()) ; 89 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isRenderScrollbarPart()) ;
88 return static_cast<const RenderScrollbarPart*>(object); 90 return static_cast<const RenderScrollbarPart*>(object);
89 } 91 }
90 92
91 // This will catch anyone doing an unnecessary cast. 93 // This will catch anyone doing an unnecessary cast.
92 void toRenderScrollbarPart(const RenderScrollbarPart*); 94 void toRenderScrollbarPart(const RenderScrollbarPart*);
93 95
94 } // namespace WebCore 96 } // namespace WebCore
95 97
96 #endif // RenderScrollbarPart_h 98 #endif // RenderScrollbarPart_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderRubyText.h ('k') | Source/core/rendering/RenderTable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698