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

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

Issue 2174703002: Organize public ComputedStyle methods by property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 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) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 enum PageSizeType { 68 enum PageSizeType {
69 PAGE_SIZE_AUTO, // size: auto 69 PAGE_SIZE_AUTO, // size: auto
70 PAGE_SIZE_AUTO_LANDSCAPE, // size: landscape 70 PAGE_SIZE_AUTO_LANDSCAPE, // size: landscape
71 PAGE_SIZE_AUTO_PORTRAIT, // size: portrait 71 PAGE_SIZE_AUTO_PORTRAIT, // size: portrait
72 PAGE_SIZE_RESOLVED // Size is fully resolved. 72 PAGE_SIZE_RESOLVED // Size is fully resolved.
73 }; 73 };
74 74
75 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific properties. 75 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific properties.
76 // By grouping them together, we save space, and only allocate this object when someone 76 // By grouping them together, we save space, and only allocate this object when someone
77 // actually uses one of these properties. 77 // actually uses one of these properties.
78 // TODO(sashab): Move this into a private class on ComputedStyle, and remove
79 // all methods on it, merging them into copy/creation methods on ComputedStyle
80 // instead. Keep the allocation logic, only allocating a new object if needed.
78 class CORE_EXPORT StyleRareNonInheritedData : public RefCounted<StyleRareNonInhe ritedData> { 81 class CORE_EXPORT StyleRareNonInheritedData : public RefCounted<StyleRareNonInhe ritedData> {
79 public: 82 public:
80 static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new StyleRareNonInheritedData); } 83 static PassRefPtr<StyleRareNonInheritedData> create() { return adoptRef(new StyleRareNonInheritedData); }
81 PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new Sty leRareNonInheritedData(*this)); } 84 PassRefPtr<StyleRareNonInheritedData> copy() const { return adoptRef(new Sty leRareNonInheritedData(*this)); }
82 ~StyleRareNonInheritedData(); 85 ~StyleRareNonInheritedData();
83 86
84 bool operator==(const StyleRareNonInheritedData&) const; 87 bool operator==(const StyleRareNonInheritedData&) const;
85 bool operator!=(const StyleRareNonInheritedData& o) const { return !(*this = = o); } 88 bool operator!=(const StyleRareNonInheritedData& o) const { return !(*this = = o); }
86 89
87 bool contentDataEquivalent(const StyleRareNonInheritedData&) const; 90 bool contentDataEquivalent(const StyleRareNonInheritedData&) const;
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 unsigned m_hasAuthorBorder : 1; // Whether there is a author-defined border. 220 unsigned m_hasAuthorBorder : 1; // Whether there is a author-defined border.
218 221
219 private: 222 private:
220 StyleRareNonInheritedData(); 223 StyleRareNonInheritedData();
221 StyleRareNonInheritedData(const StyleRareNonInheritedData&); 224 StyleRareNonInheritedData(const StyleRareNonInheritedData&);
222 }; 225 };
223 226
224 } // namespace blink 227 } // namespace blink
225 228
226 #endif // StyleRareNonInheritedData_h 229 #endif // StyleRareNonInheritedData_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698