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

Side by Side Diff: Source/WebCore/rendering/RenderTextControl.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 virtual void computeLogicalHeight(); 65 virtual void computeLogicalHeight();
66 virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren); 66 virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren);
67 67
68 private: 68 private:
69 virtual const char* renderName() const { return "RenderTextControl"; } 69 virtual const char* renderName() const { return "RenderTextControl"; }
70 virtual bool isTextControl() const { return true; } 70 virtual bool isTextControl() const { return true; }
71 virtual void computePreferredLogicalWidths(); 71 virtual void computePreferredLogicalWidths();
72 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } 72 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { }
73 virtual bool avoidsFloats() const { return true; } 73 virtual bool avoidsFloats() const { return true; }
74 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } 74 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; }
75 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE;
75 76
76 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint&); 77 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint&);
77 78
78 virtual bool canBeProgramaticallyScrolled() const { return true; } 79 virtual bool canBeProgramaticallyScrolled() const { return true; }
79 80
80 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } 81 virtual bool requiresForcedStyleRecalcPropagation() const { return true; }
81 82
82 static bool isSelectableElement(HTMLElement*, Node*); 83 static bool isSelectableElement(HTMLElement*, Node*);
83 }; 84 };
84 85
85 inline RenderTextControl* toRenderTextControl(RenderObject* object) 86 inline RenderTextControl* toRenderTextControl(RenderObject* object)
86 { 87 {
87 ASSERT(!object || object->isTextControl()); 88 ASSERT(!object || object->isTextControl());
88 return static_cast<RenderTextControl*>(object); 89 return static_cast<RenderTextControl*>(object);
89 } 90 }
90 91
91 inline const RenderTextControl* toRenderTextControl(const RenderObject* object) 92 inline const RenderTextControl* toRenderTextControl(const RenderObject* object)
92 { 93 {
93 ASSERT(!object || object->isTextControl()); 94 ASSERT(!object || object->isTextControl());
94 return static_cast<const RenderTextControl*>(object); 95 return static_cast<const RenderTextControl*>(object);
95 } 96 }
96 97
97 // This will catch anyone doing an unnecessary cast. 98 // This will catch anyone doing an unnecessary cast.
98 void toRenderTextControl(const RenderTextControl*); 99 void toRenderTextControl(const RenderTextControl*);
99 100
100 } // namespace WebCore 101 } // namespace WebCore
101 102
102 #endif // RenderTextControl_h 103 #endif // RenderTextControl_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderSlider.cpp ('k') | Source/WebCore/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698