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

Side by Side Diff: Source/WebCore/rendering/RenderSlider.h

Issue 10871074: Merge 124556 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 4 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/WebCore/rendering/RenderProgress.cpp ('k') | Source/WebCore/rendering/RenderSlider.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 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 21 matching lines...) Expand all
32 class RenderSlider : public RenderBlock { 32 class RenderSlider : public RenderBlock {
33 public: 33 public:
34 RenderSlider(HTMLInputElement*); 34 RenderSlider(HTMLInputElement*);
35 virtual ~RenderSlider(); 35 virtual ~RenderSlider();
36 36
37 bool inDragMode() const; 37 bool inDragMode() const;
38 38
39 private: 39 private:
40 virtual const char* renderName() const { return "RenderSlider"; } 40 virtual const char* renderName() const { return "RenderSlider"; }
41 virtual bool isSlider() const { return true; } 41 virtual bool isSlider() const { return true; }
42 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE;
42 43
43 virtual LayoutUnit baselinePosition(FontBaseline, bool firstLine, LineDi rectionMode, LinePositionMode = PositionOnContainingLine) const; 44 virtual LayoutUnit baselinePosition(FontBaseline, bool firstLine, LineDi rectionMode, LinePositionMode = PositionOnContainingLine) const;
44 virtual void computePreferredLogicalWidths(); 45 virtual void computePreferredLogicalWidths();
45 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } 46 virtual bool requiresForcedStyleRecalcPropagation() const { return true; }
46 virtual void layout(); 47 virtual void layout();
47 }; 48 };
48 49
49 inline RenderSlider* toRenderSlider(RenderObject* object) 50 inline RenderSlider* toRenderSlider(RenderObject* object)
50 { 51 {
51 ASSERT(!object || object->isSlider()); 52 ASSERT(!object || object->isSlider());
52 return static_cast<RenderSlider*>(object); 53 return static_cast<RenderSlider*>(object);
53 } 54 }
54 55
55 // This will catch anyone doing an unnecessary cast. 56 // This will catch anyone doing an unnecessary cast.
56 void toRenderSlider(const RenderSlider*); 57 void toRenderSlider(const RenderSlider*);
57 58
58 } // namespace WebCore 59 } // namespace WebCore
59 60
60 #endif // RenderSlider_h 61 #endif // RenderSlider_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderProgress.cpp ('k') | Source/WebCore/rendering/RenderSlider.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698