OLD | NEW |
1 /** | 1 /** |
2 * This file is part of the html renderer for KDE. | 2 * This file is part of the html renderer for KDE. |
3 * | 3 * |
4 * Copyright (C) 2005 Apple Computer, Inc. | 4 * Copyright (C) 2005 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 m_buttonText = new (renderArena()) RenderTextFragment(document(), st
r.impl()); | 157 m_buttonText = new (renderArena()) RenderTextFragment(document(), st
r.impl()); |
158 m_buttonText->setStyle(style()); | 158 m_buttonText->setStyle(style()); |
159 addChild(m_buttonText); | 159 addChild(m_buttonText); |
160 } | 160 } |
161 } | 161 } |
162 } | 162 } |
163 | 163 |
164 void RenderButton::updateBeforeAfterContent(RenderStyle::PseudoId type) | 164 void RenderButton::updateBeforeAfterContent(RenderStyle::PseudoId type) |
165 { | 165 { |
166 if (m_inner) | 166 if (m_inner) |
167 m_inner->updateBeforeAfterContentForContainer(type, this); | 167 m_inner->children()->updateBeforeAfterContent(m_inner, type, this); |
168 else | 168 else |
169 updateBeforeAfterContentForContainer(type, this); | 169 children()->updateBeforeAfterContent(this, type); |
170 } | 170 } |
171 | 171 |
172 IntRect RenderButton::controlClipRect(int tx, int ty) const | 172 IntRect RenderButton::controlClipRect(int tx, int ty) const |
173 { | 173 { |
174 // Clip to the padding box to at least give content the extra padding space. | 174 // Clip to the padding box to at least give content the extra padding space. |
175 return IntRect(tx + borderLeft(), ty + borderTop(), width() - borderLeft() -
borderRight(), height() - borderTop() - borderBottom()); | 175 return IntRect(tx + borderLeft(), ty + borderTop(), width() - borderLeft() -
borderRight(), height() - borderTop() - borderBottom()); |
176 } | 176 } |
177 | 177 |
178 void RenderButton::timerFired(Timer<RenderButton>*) | 178 void RenderButton::timerFired(Timer<RenderButton>*) |
179 { | 179 { |
180 repaint(); | 180 repaint(); |
181 } | 181 } |
182 | 182 |
183 } // namespace WebCore | 183 } // namespace WebCore |
OLD | NEW |