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

Side by Side Diff: third_party/WebKit/Source/core/style/StyleSurroundData.cpp

Issue 2834603003: Split StyleSurroundData::padding into four individual Lengths. (Closed)
Patch Set: Split StyleSurroundData::padding into four individual Lengths. 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) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 10 matching lines...) Expand all
21 21
22 #include "core/style/StyleSurroundData.h" 22 #include "core/style/StyleSurroundData.h"
23 23
24 namespace blink { 24 namespace blink {
25 25
26 StyleSurroundData::StyleSurroundData() 26 StyleSurroundData::StyleSurroundData()
27 : margin_left_(kFixed), 27 : margin_left_(kFixed),
28 margin_right_(kFixed), 28 margin_right_(kFixed),
29 margin_top_(kFixed), 29 margin_top_(kFixed),
30 margin_bottom_(kFixed), 30 margin_bottom_(kFixed),
31 padding_(kFixed) {} 31 padding_left_(kFixed),
32 padding_right_(kFixed),
33 padding_top_(kFixed),
34 padding_bottom_(kFixed) {}
32 35
33 StyleSurroundData::StyleSurroundData(const StyleSurroundData& o) 36 StyleSurroundData::StyleSurroundData(const StyleSurroundData& o)
34 : RefCounted<StyleSurroundData>(), 37 : RefCounted<StyleSurroundData>(),
35 left_(o.left_), 38 left_(o.left_),
36 right_(o.right_), 39 right_(o.right_),
37 top_(o.top_), 40 top_(o.top_),
38 bottom_(o.bottom_), 41 bottom_(o.bottom_),
39 margin_left_(o.margin_left_), 42 margin_left_(o.margin_left_),
40 margin_right_(o.margin_right_), 43 margin_right_(o.margin_right_),
41 margin_top_(o.margin_top_), 44 margin_top_(o.margin_top_),
42 margin_bottom_(o.margin_bottom_), 45 margin_bottom_(o.margin_bottom_),
43 padding_(o.padding_), 46 padding_left_(o.padding_left_),
47 padding_right_(o.padding_right_),
48 padding_top_(o.padding_top_),
49 padding_bottom_(o.padding_bottom_),
44 border_(o.border_) {} 50 border_(o.border_) {}
45 51
46 bool StyleSurroundData::operator==(const StyleSurroundData& o) const { 52 bool StyleSurroundData::operator==(const StyleSurroundData& o) const {
47 return (left_ == o.left_ && right_ == o.right_ && top_ == o.top_ && 53 return (left_ == o.left_ && right_ == o.right_ && top_ == o.top_ &&
48 bottom_ == o.bottom_) && 54 bottom_ == o.bottom_) &&
49 (margin_left_ == o.margin_left_ && margin_right_ == o.margin_right_ && 55 (margin_left_ == o.margin_left_ && margin_right_ == o.margin_right_ &&
50 margin_top_ == o.margin_top_ && margin_bottom_ == o.margin_bottom_) && 56 margin_top_ == o.margin_top_ && margin_bottom_ == o.margin_bottom_) &&
51 padding_ == o.padding_ && border_ == o.border_; 57 (padding_left_ == o.padding_left_ &&
58 padding_right_ == o.padding_right_ &&
59 padding_top_ == o.padding_top_ &&
60 padding_bottom_ == o.padding_bottom_) &&
61 border_ == o.border_;
52 } 62 }
53 63
54 } // namespace blink 64 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/StyleSurroundData.h ('k') | third_party/WebKit/Source/platform/Theme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698