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

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

Issue 14859003: Remove the compile time flag for DATALIST Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add <datalist> display:none rule in RenderTheme::extraDefaultStyleSheet depending on the runtime fl… Created 7 years, 7 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) 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 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 padding += menuListArrowPadding(); 453 padding += menuListArrowPadding();
454 454
455 return padding; 455 return padding;
456 } 456 }
457 457
458 bool RenderThemeChromiumSkia::shouldShowPlaceholderWhenFocused() const 458 bool RenderThemeChromiumSkia::shouldShowPlaceholderWhenFocused() const
459 { 459 {
460 return true; 460 return true;
461 } 461 }
462 462
463 #if ENABLE(DATALIST_ELEMENT)
464 LayoutUnit RenderThemeChromiumSkia::sliderTickSnappingThreshold() const 463 LayoutUnit RenderThemeChromiumSkia::sliderTickSnappingThreshold() const
465 { 464 {
466 return RenderThemeChromiumCommon::sliderTickSnappingThreshold(); 465 return RenderThemeChromiumCommon::sliderTickSnappingThreshold();
467 } 466 }
468 #endif
469 467
470 // 468 //
471 // Following values are come from default of GTK+ 469 // Following values are come from default of GTK+
472 // 470 //
473 static const int progressDeltaPixelsPerSecond = 100; 471 static const int progressDeltaPixelsPerSecond = 100;
474 static const int progressActivityBlocks = 5; 472 static const int progressActivityBlocks = 5;
475 static const int progressAnimationFrmaes = 10; 473 static const int progressAnimationFrmaes = 10;
476 static const double progressAnimationInterval = 0.125; 474 static const double progressAnimationInterval = 0.125;
477 475
478 IntRect RenderThemeChromiumSkia::determinateProgressValueRectFor(RenderProgress* renderProgress, const IntRect& rect) const 476 IntRect RenderThemeChromiumSkia::determinateProgressValueRectFor(RenderProgress* renderProgress, const IntRect& rect) const
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 520 }
523 521
524 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() 522 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope()
525 { 523 {
526 if (!m_needsFlipping) 524 if (!m_needsFlipping)
527 return; 525 return;
528 m_paintInfo.context->restore(); 526 m_paintInfo.context->restore();
529 } 527 }
530 528
531 } // namespace WebCore 529 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698