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

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

Issue 385583005: For flex items, percent paddings should resolve against their respective dimension Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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 22 matching lines...) Expand all
33 #include "core/rendering/RenderThemeChromiumFontProvider.h" 33 #include "core/rendering/RenderThemeChromiumFontProvider.h"
34 #include "platform/LayoutTestSupport.h" 34 #include "platform/LayoutTestSupport.h"
35 #include "platform/graphics/GraphicsContext.h" 35 #include "platform/graphics/GraphicsContext.h"
36 #include "platform/graphics/Image.h" 36 #include "platform/graphics/Image.h"
37 #include "platform/scroll/ScrollbarTheme.h" 37 #include "platform/scroll/ScrollbarTheme.h"
38 #include "wtf/CurrentTime.h" 38 #include "wtf/CurrentTime.h"
39 #include "wtf/StdLibExtras.h" 39 #include "wtf/StdLibExtras.h"
40 40
41 namespace blink { 41 namespace blink {
42 42
43 enum PaddingType {
44 TopPadding,
45 RightPadding,
46 BottomPadding,
47 LeftPadding
48 };
49
50 static const int styledMenuListInternalPadding[4] = { 1, 4, 1, 4 }; 43 static const int styledMenuListInternalPadding[4] = { 1, 4, 1, 4 };
51 44
52 // These values all match Safari/Win. 45 // These values all match Safari/Win.
53 static const float defaultControlFontPixelSize = 13; 46 static const float defaultControlFontPixelSize = 13;
54 static const float defaultCancelButtonSize = 9; 47 static const float defaultCancelButtonSize = 9;
55 static const float minCancelButtonSize = 5; 48 static const float minCancelButtonSize = 5;
56 static const float maxCancelButtonSize = 21; 49 static const float maxCancelButtonSize = 21;
57 static const float defaultSearchFieldResultsDecorationSize = 13; 50 static const float defaultSearchFieldResultsDecorationSize = 13;
58 static const float minSearchFieldResultsDecorationSize = 9; 51 static const float minSearchFieldResultsDecorationSize = 9;
59 static const float maxSearchFieldResultsDecorationSize = 30; 52 static const float maxSearchFieldResultsDecorationSize = 30;
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 } 474 }
482 475
483 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope() 476 RenderThemeChromiumSkia::DirectionFlippingScope::~DirectionFlippingScope()
484 { 477 {
485 if (!m_needsFlipping) 478 if (!m_needsFlipping)
486 return; 479 return;
487 m_paintInfo.context->restore(); 480 m_paintInfo.context->restore();
488 } 481 }
489 482
490 } // namespace blink 483 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698