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

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

Issue 2844163002: Remove public methods on StyleBoxData and rename member. (Closed)
Patch Set: Rebase Created 3 years, 7 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 30 matching lines...) Expand all
41 static PassRefPtr<StyleBoxData> Create() { 41 static PassRefPtr<StyleBoxData> Create() {
42 return AdoptRef(new StyleBoxData); 42 return AdoptRef(new StyleBoxData);
43 } 43 }
44 PassRefPtr<StyleBoxData> Copy() const { 44 PassRefPtr<StyleBoxData> Copy() const {
45 return AdoptRef(new StyleBoxData(*this)); 45 return AdoptRef(new StyleBoxData(*this));
46 } 46 }
47 47
48 bool operator==(const StyleBoxData&) const; 48 bool operator==(const StyleBoxData&) const;
49 bool operator!=(const StyleBoxData& o) const { return !(*this == o); } 49 bool operator!=(const StyleBoxData& o) const { return !(*this == o); }
50 50
51 const Length& Width() const { return width_; }
52 const Length& Height() const { return height_; }
53
54 const Length& MinWidth() const { return min_width_; }
55 const Length& MinHeight() const { return min_height_; }
56
57 const Length& MaxWidth() const { return max_width_; }
58 const Length& MaxHeight() const { return max_height_; }
59
60 const Length& VerticalAlign() const { return vertical_align_; }
61
62 int ZIndex() const { return z_index_; }
63 bool HasAutoZIndex() const { return has_auto_z_index_; }
64
65 EBoxSizing BoxSizing() const { return static_cast<EBoxSizing>(box_sizing_); }
66 EBoxDecorationBreak BoxDecorationBreak() const {
67 return static_cast<EBoxDecorationBreak>(box_decoration_break_);
68 }
69
70 private: 51 private:
71 friend class ComputedStyle; 52 friend class ComputedStyle;
72 53
73 StyleBoxData(); 54 StyleBoxData();
74 StyleBoxData(const StyleBoxData&) = default; 55 StyleBoxData(const StyleBoxData&) = default;
75 56
76 Length width_; 57 Length width_;
77 Length height_; 58 Length height_;
78 59
79 Length min_width_; 60 Length min_width_;
80 Length max_width_; 61 Length max_width_;
81 62
82 Length min_height_; 63 Length min_height_;
83 Length max_height_; 64 Length max_height_;
84 65
85 Length vertical_align_; 66 Length vertical_align_length_;
86 67
87 int z_index_; 68 int z_index_;
88 unsigned has_auto_z_index_ : 1; 69 unsigned has_auto_z_index_ : 1;
89 unsigned box_sizing_ : 1; // EBoxSizing 70 unsigned box_sizing_ : 1; // EBoxSizing
90 unsigned box_decoration_break_ : 1; // EBoxDecorationBreak 71 unsigned box_decoration_break_ : 1; // EBoxDecorationBreak
91 }; 72 };
92 73
93 } // namespace blink 74 } // namespace blink
94 75
95 #endif // StyleBoxData_h 76 #endif // StyleBoxData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.cpp ('k') | third_party/WebKit/Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698