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

Side by Side Diff: third_party/WebKit/Source/core/style/BorderValue.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 static unsigned widthToFixedPoint(float width) { 107 static unsigned widthToFixedPoint(float width) {
108 DCHECK_GE(width, 0); 108 DCHECK_GE(width, 0);
109 return static_cast<unsigned>(std::min<float>(width, kMaxForBorderWidth) * 109 return static_cast<unsigned>(std::min<float>(width, kMaxForBorderWidth) *
110 kBorderWidthDenominator); 110 kBorderWidthDenominator);
111 } 111 }
112 112
113 Color m_color; 113 Color m_color;
114 unsigned m_colorIsCurrentColor : 1; 114 unsigned m_colorIsCurrentColor : 1;
115 115
116 unsigned m_width : 26; // Fixed point width 116 unsigned m_width : 26; // Fixed point width
117 unsigned m_style : 4; // EBorderStyle 117 unsigned m_style : 4; // EBorderStyle
118 118
119 // This is only used by OutlineValue but moved here to keep the bits packed. 119 // This is only used by OutlineValue but moved here to keep the bits packed.
120 unsigned m_isAuto : 1; // OutlineIsAuto 120 unsigned m_isAuto : 1; // OutlineIsAuto
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // BorderValue_h 125 #endif // BorderValue_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/streams/UnderlyingSourceBase.cpp ('k') | third_party/WebKit/Source/core/style/CachedUAStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698