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

Side by Side Diff: third_party/WebKit/Source/core/style/NinePieceImage.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, 2013 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2013 Apple Inc. All rights reserv ed.
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 LengthBox imageSlices; 53 LengthBox imageSlices;
54 BorderImageLengthBox borderSlices; 54 BorderImageLengthBox borderSlices;
55 BorderImageLengthBox outset; 55 BorderImageLengthBox outset;
56 56
57 private: 57 private:
58 NinePieceImageData(); 58 NinePieceImageData();
59 NinePieceImageData(const NinePieceImageData&); 59 NinePieceImageData(const NinePieceImageData&);
60 }; 60 };
61 61
62 class CORE_EXPORT NinePieceImage { 62 class CORE_EXPORT NinePieceImage {
63 DISALLOW_ALLOCATION(); 63 DISALLOW_NEW();
64 public: 64 public:
65 NinePieceImage(); 65 NinePieceImage();
66 NinePieceImage(PassRefPtrWillBeRawPtr<StyleImage>, LengthBox imageSlices, bo ol fill, const BorderImageLengthBox& borderSlices, 66 NinePieceImage(PassRefPtrWillBeRawPtr<StyleImage>, LengthBox imageSlices, bo ol fill, const BorderImageLengthBox& borderSlices,
67 const BorderImageLengthBox& outset, ENinePieceImageRule horizontalRule, ENinePieceImageRule verticalRule); 67 const BorderImageLengthBox& outset, ENinePieceImageRule horizontalRule, ENinePieceImageRule verticalRule);
68 68
69 bool operator==(const NinePieceImage& other) const { return m_data == other. m_data; } 69 bool operator==(const NinePieceImage& other) const { return m_data == other. m_data; }
70 bool operator!=(const NinePieceImage& other) const { return m_data != other. m_data; } 70 bool operator!=(const NinePieceImage& other) const { return m_data != other. m_data; }
71 71
72 bool hasImage() const { return m_data->image; } 72 bool hasImage() const { return m_data->image; }
73 StyleImage* image() const { return m_data->image.get(); } 73 StyleImage* image() const { return m_data->image.get(); }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 return outsetSide.length().value(); 127 return outsetSide.length().value();
128 } 128 }
129 129
130 private: 130 private:
131 DataRef<NinePieceImageData> m_data; 131 DataRef<NinePieceImageData> m_data;
132 }; 132 };
133 133
134 } // namespace blink 134 } // namespace blink
135 135
136 #endif // NinePieceImage_h 136 #endif // NinePieceImage_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/LineClampValue.h ('k') | third_party/WebKit/Source/core/style/OutlineValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698