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

Side by Side Diff: Source/core/rendering/RenderThemeChromiumDefault.cpp

Issue 14413014: Remove -webkit-appearance:default-button. This was only used in Safari. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 7 years, 8 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
« no previous file with comments | « Source/core/rendering/RenderTheme.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('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) 2007 Apple Inc. 2 * Copyright (C) 2007 Apple Inc.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2008 Collabora Ltd. 4 * Copyright (C) 2008 Collabora Ltd.
5 * Copyright (C) 2008, 2009 Google Inc. 5 * Copyright (C) 2008, 2009 Google Inc.
6 * Copyright (C) 2009 Kenneth Rohde Christiansen 6 * Copyright (C) 2009 Kenneth Rohde Christiansen
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
246 return; 246 return;
247 247
248 IntSize size = WebKit::Platform::current()->themeEngine()->getSize(WebKit::W ebThemeEngine::PartRadio); 248 IntSize size = WebKit::Platform::current()->themeEngine()->getSize(WebKit::W ebThemeEngine::PartRadio);
249 setSizeIfAuto(style, size); 249 setSizeIfAuto(style, size);
250 } 250 }
251 251
252 bool RenderThemeChromiumDefault::paintButton(RenderObject* o, const PaintInfo& i , const IntRect& rect) 252 bool RenderThemeChromiumDefault::paintButton(RenderObject* o, const PaintInfo& i , const IntRect& rect)
253 { 253 {
254 WebKit::WebThemeEngine::ExtraParams extraParams; 254 WebKit::WebThemeEngine::ExtraParams extraParams;
255 WebKit::WebCanvas* canvas = i.context->platformContext()->canvas(); 255 WebKit::WebCanvas* canvas = i.context->platformContext()->canvas();
256 extraParams.button.isDefault = isDefault(o);
257 extraParams.button.hasBorder = true; 256 extraParams.button.hasBorder = true;
258 extraParams.button.backgroundColor = defaultButtonBackgroundColor; 257 extraParams.button.backgroundColor = defaultButtonBackgroundColor;
259 if (o->hasBackground()) 258 if (o->hasBackground())
260 extraParams.button.backgroundColor = o->style()->visitedDependentColor(C SSPropertyBackgroundColor).rgb(); 259 extraParams.button.backgroundColor = o->style()->visitedDependentColor(C SSPropertyBackgroundColor).rgb();
261 260
262 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn gine::PartButton, getWebThemeState(this, o), WebKit::WebRect(rect), &extraParams ); 261 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn gine::PartButton, getWebThemeState(this, o), WebKit::WebRect(rect), &extraParams );
263 return false; 262 return false;
264 } 263 }
265 264
266 bool RenderThemeChromiumDefault::paintTextField(RenderObject* o, const PaintInfo & i, const IntRect& rect) 265 bool RenderThemeChromiumDefault::paintTextField(RenderObject* o, const PaintInfo & i, const IntRect& rect)
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn gine::PartProgressBar, getWebThemeState(this, o), WebKit::WebRect(rect), &extraP arams); 378 WebKit::Platform::current()->themeEngine()->paint(canvas, WebKit::WebThemeEn gine::PartProgressBar, getWebThemeState(this, o), WebKit::WebRect(rect), &extraP arams);
380 return false; 379 return false;
381 } 380 }
382 381
383 bool RenderThemeChromiumDefault::shouldOpenPickerWithF4Key() const 382 bool RenderThemeChromiumDefault::shouldOpenPickerWithF4Key() const
384 { 383 {
385 return true; 384 return true;
386 } 385 }
387 386
388 } // namespace WebCore 387 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTheme.cpp ('k') | Source/core/rendering/RenderThemeChromiumMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698