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

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

Issue 1406923009: Rename DISALLOW_ALLOCATION and ALLOW_ONLY_INLINE_ALLOCATION (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 15 matching lines...) Expand all
26 #define BorderValue_h 26 #define BorderValue_h
27 27
28 #include "core/css/StyleColor.h" 28 #include "core/css/StyleColor.h"
29 #include "core/style/ComputedStyleConstants.h" 29 #include "core/style/ComputedStyleConstants.h"
30 #include "platform/graphics/Color.h" 30 #include "platform/graphics/Color.h"
31 #include "wtf/Allocator.h" 31 #include "wtf/Allocator.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class BorderValue { 35 class BorderValue {
36 DISALLOW_ALLOCATION(); 36 DISALLOW_NEW();
37 friend class ComputedStyle; 37 friend class ComputedStyle;
38 public: 38 public:
39 BorderValue() 39 BorderValue()
40 : m_color(0) 40 : m_color(0)
41 , m_colorIsCurrentColor(true) 41 , m_colorIsCurrentColor(true)
42 , m_width(3) 42 , m_width(3)
43 , m_style(BNONE) 43 , m_style(BNONE)
44 , m_isAuto(AUTO_OFF) 44 , m_isAuto(AUTO_OFF)
45 { 45 {
46 } 46 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 unsigned m_width : 26; 100 unsigned m_width : 26;
101 unsigned m_style : 4; // EBorderStyle 101 unsigned m_style : 4; // EBorderStyle
102 102
103 // This is only used by OutlineValue but moved here to keep the bits packed. 103 // This is only used by OutlineValue but moved here to keep the bits packed.
104 unsigned m_isAuto : 1; // OutlineIsAuto 104 unsigned m_isAuto : 1; // OutlineIsAuto
105 }; 105 };
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // BorderValue_h 109 #endif // BorderValue_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698