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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp

Issue 1511003003: Use refs for non-null GraphicsContext, Scrollbar, etc. in scrollbar related code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ScrollbarRemove
Patch Set: yet another mac fix Created 5 years 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 * 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 } 383 }
384 384
385 // static 385 // static
386 void LayoutThemeDefault::setDefaultFontSize(int fontSize) 386 void LayoutThemeDefault::setDefaultFontSize(int fontSize)
387 { 387 {
388 LayoutThemeFontProvider::setDefaultFontSize(fontSize); 388 LayoutThemeFontProvider::setDefaultFontSize(fontSize);
389 } 389 }
390 390
391 int LayoutThemeDefault::menuListArrowPadding() const 391 int LayoutThemeDefault::menuListArrowPadding() const
392 { 392 {
393 return ScrollbarTheme::theme()->scrollbarThickness(); 393 return ScrollbarTheme::theme().scrollbarThickness();
394 } 394 }
395 395
396 int LayoutThemeDefault::menuListInternalPadding(const ComputedStyle& style, int paddingType) const 396 int LayoutThemeDefault::menuListInternalPadding(const ComputedStyle& style, int paddingType) const
397 { 397 {
398 if (style.appearance() == NoControlPart) 398 if (style.appearance() == NoControlPart)
399 return 0; 399 return 0;
400 // This internal padding is in addition to the user-supplied padding. 400 // This internal padding is in addition to the user-supplied padding.
401 // Matches the FF behavior. 401 // Matches the FF behavior.
402 int padding = styledMenuListInternalPadding[paddingType]; 402 int padding = styledMenuListInternalPadding[paddingType];
403 403
(...skipping 17 matching lines...) Expand all
421 { 421 {
422 return progressAnimationInterval; 422 return progressAnimationInterval;
423 } 423 }
424 424
425 double LayoutThemeDefault::animationDurationForProgressBar() const 425 double LayoutThemeDefault::animationDurationForProgressBar() const
426 { 426 {
427 return progressAnimationInterval * progressAnimationFrames * 2; // "2" for b ack and forth 427 return progressAnimationInterval * progressAnimationFrames * 2; // "2" for b ack and forth
428 } 428 }
429 429
430 } // namespace blink 430 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698