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

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

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase better. Created 6 years, 2 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
« no previous file with comments | « Source/core/rendering/RenderSlider.h ('k') | Source/core/rendering/RenderSliderThumb.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) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 27 matching lines...) Expand all
38 namespace blink { 38 namespace blink {
39 39
40 class SliderThumbElement; 40 class SliderThumbElement;
41 41
42 class RenderSliderThumb final : public RenderBlockFlow { 42 class RenderSliderThumb final : public RenderBlockFlow {
43 public: 43 public:
44 RenderSliderThumb(SliderThumbElement*); 44 RenderSliderThumb(SliderThumbElement*);
45 void updateAppearance(RenderStyle* parentStyle); 45 void updateAppearance(RenderStyle* parentStyle);
46 46
47 private: 47 private:
48 virtual bool isSliderThumb() const override; 48 virtual bool isOfType(RenderObjectType type) const override { return type == RenderObjectSliderThumb || RenderBlockFlow::isOfType(type); }
49 }; 49 };
50 50
51 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSliderThumb, isSliderThumb()); 51 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSliderThumb, isSliderThumb());
52 52
53 } // namespace blink 53 } // namespace blink
54 54
55 #endif // RenderSliderThumb_h 55 #endif // RenderSliderThumb_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderSlider.h ('k') | Source/core/rendering/RenderSliderThumb.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698