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

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

Issue 12641003: Merge 144350 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE; 71 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE;
72 virtual void computePreferredLogicalWidths() OVERRIDE; 72 virtual void computePreferredLogicalWidths() OVERRIDE;
73 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } 73 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { }
74 virtual bool avoidsFloats() const { return true; } 74 virtual bool avoidsFloats() const { return true; }
75 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } 75 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; }
76 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; 76 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE;
77 77
78 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint&); 78 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE;
79 79
80 virtual bool canBeProgramaticallyScrolled() const { return true; } 80 virtual bool canBeProgramaticallyScrolled() const { return true; }
81 81
82 virtual bool requiresForcedStyleRecalcPropagation() const { return true; } 82 virtual bool requiresForcedStyleRecalcPropagation() const { return true; }
83 }; 83 };
84 84
85 inline RenderTextControl* toRenderTextControl(RenderObject* object) 85 inline RenderTextControl* toRenderTextControl(RenderObject* object)
86 { 86 {
87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl()); 87 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl());
88 return static_cast<RenderTextControl*>(object); 88 return static_cast<RenderTextControl*>(object);
89 } 89 }
90 90
91 inline const RenderTextControl* toRenderTextControl(const RenderObject* object) 91 inline const RenderTextControl* toRenderTextControl(const RenderObject* object)
92 { 92 {
93 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl()); 93 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isTextControl());
94 return static_cast<const RenderTextControl*>(object); 94 return static_cast<const RenderTextControl*>(object);
95 } 95 }
96 96
97 // This will catch anyone doing an unnecessary cast. 97 // This will catch anyone doing an unnecessary cast.
98 void toRenderTextControl(const RenderTextControl*); 98 void toRenderTextControl(const RenderTextControl*);
99 99
100 } // namespace WebCore 100 } // namespace WebCore
101 101
102 #endif // RenderTextControl_h 102 #endif // RenderTextControl_h
OLDNEW
« no previous file with comments | « Source/WebCore/rendering/RenderTableSection.cpp ('k') | Source/WebCore/rendering/RenderTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698