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

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderButton.cpp

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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 | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderBox.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderContainer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698