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

Side by Side Diff: Source/core/layout/LayoutThemeChromiumSkia.cpp

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 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 * 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 return 0; 125 return 0;
126 126
127 return caretBlinkIntervalInternal(); 127 return caretBlinkIntervalInternal();
128 } 128 }
129 129
130 void LayoutThemeChromiumSkia::systemFont(CSSValueID systemFontID, FontStyle& fon tStyle, FontWeight& fontWeight, float& fontSize, AtomicString& fontFamily) const 130 void LayoutThemeChromiumSkia::systemFont(CSSValueID systemFontID, FontStyle& fon tStyle, FontWeight& fontWeight, float& fontSize, AtomicString& fontFamily) const
131 { 131 {
132 LayoutThemeChromiumFontProvider::systemFont(systemFontID, fontStyle, fontWei ght, fontSize, fontFamily); 132 LayoutThemeChromiumFontProvider::systemFont(systemFontID, fontStyle, fontWei ght, fontSize, fontFamily);
133 } 133 }
134 134
135 int LayoutThemeChromiumSkia::minimumMenuListSize(RenderStyle* style) const 135 int LayoutThemeChromiumSkia::minimumMenuListSize(const RenderStyle* style) const
136 { 136 {
137 return 0; 137 return 0;
138 } 138 }
139 139
140 // These are the default dimensions of radio buttons and checkboxes. 140 // These are the default dimensions of radio buttons and checkboxes.
141 static const int widgetStandardWidth = 13; 141 static const int widgetStandardWidth = 13;
142 static const int widgetStandardHeight = 13; 142 static const int widgetStandardHeight = 13;
143 143
144 // Return a rectangle that has the same center point as |original|, but with a 144 // Return a rectangle that has the same center point as |original|, but with a
145 // size capped at |width| by |height|. 145 // size capped at |width| by |height|.
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } 486 }
487 487
488 LayoutThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() 488 LayoutThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope()
489 { 489 {
490 if (!m_needsFlipping) 490 if (!m_needsFlipping)
491 return; 491 return;
492 m_paintInfo.context->restore(); 492 m_paintInfo.context->restore();
493 } 493 }
494 494
495 } // namespace blink 495 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698