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

Side by Side Diff: Source/core/rendering/RenderScrollbar.h

Issue 48733005: Fix regression introduced with r159483. The RenderScrollbar's parent class had the signature of a … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | Source/core/rendering/RenderScrollbar.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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 IntRect buttonRect(ScrollbarPart); 54 IntRect buttonRect(ScrollbarPart);
55 IntRect trackRect(int startLength, int endLength); 55 IntRect trackRect(int startLength, int endLength);
56 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&); 56 IntRect trackPieceRectWithMargins(ScrollbarPart, const IntRect&);
57 57
58 int minimumThumbLength(); 58 int minimumThumbLength();
59 59
60 virtual bool isOverlayScrollbar() const { return false; } 60 virtual bool isOverlayScrollbar() const { return false; }
61 61
62 private: 62 private:
63 virtual void setParent(ScrollView*); 63 virtual void setParent(Widget*) OVERRIDE;
64 virtual void setEnabled(bool); 64 virtual void setEnabled(bool);
65 65
66 virtual void paint(GraphicsContext*, const IntRect& damageRect); 66 virtual void paint(GraphicsContext*, const IntRect& damageRect);
67 67
68 virtual void setHoveredPart(ScrollbarPart); 68 virtual void setHoveredPart(ScrollbarPart);
69 virtual void setPressedPart(ScrollbarPart); 69 virtual void setPressedPart(ScrollbarPart);
70 70
71 virtual void styleChanged(); 71 virtual void styleChanged();
72 72
73 virtual bool isCustomScrollbar() const { return true; } 73 virtual bool isCustomScrollbar() const { return true; }
(...skipping 18 matching lines...) Expand all
92 ASSERT_WITH_SECURITY_IMPLICATION(!scrollbar || scrollbar->isCustomScrollbar( )); 92 ASSERT_WITH_SECURITY_IMPLICATION(!scrollbar || scrollbar->isCustomScrollbar( ));
93 return static_cast<RenderScrollbar*>(scrollbar); 93 return static_cast<RenderScrollbar*>(scrollbar);
94 } 94 }
95 95
96 // This will catch anyone doing an unnecessary cast. 96 // This will catch anyone doing an unnecessary cast.
97 void toRenderScrollbar(const RenderScrollbar*); 97 void toRenderScrollbar(const RenderScrollbar*);
98 98
99 } // namespace WebCore 99 } // namespace WebCore
100 100
101 #endif // RenderScrollbar_h 101 #endif // RenderScrollbar_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/RenderScrollbar.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698