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

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

Issue 2259963002: [layoutng] Margin support, part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheck 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 17 matching lines...) Expand all
28 #include "core/style/BorderData.h" 28 #include "core/style/BorderData.h"
29 #include "platform/LengthBox.h" 29 #include "platform/LengthBox.h"
30 #include "wtf/PassRefPtr.h" 30 #include "wtf/PassRefPtr.h"
31 #include "wtf/RefCounted.h" 31 #include "wtf/RefCounted.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 // TODO(sashab): Move this into a private class on ComputedStyle, and remove 35 // TODO(sashab): Move this into a private class on ComputedStyle, and remove
36 // all methods on it, merging them into copy/creation methods on ComputedStyle 36 // all methods on it, merging them into copy/creation methods on ComputedStyle
37 // instead. Keep the allocation logic, only allocating a new object if needed. 37 // instead. Keep the allocation logic, only allocating a new object if needed.
38 class StyleSurroundData : public RefCounted<StyleSurroundData> { 38 class CORE_EXPORT StyleSurroundData : public RefCounted<StyleSurroundData> {
39 public: 39 public:
40 static PassRefPtr<StyleSurroundData> create() { return adoptRef(new StyleSur roundData); } 40 static PassRefPtr<StyleSurroundData> create() { return adoptRef(new StyleSur roundData); }
41 PassRefPtr<StyleSurroundData> copy() const { return adoptRef(new StyleSurrou ndData(*this)); } 41 PassRefPtr<StyleSurroundData> copy() const { return adoptRef(new StyleSurrou ndData(*this)); }
42 42
43 bool operator==(const StyleSurroundData&) const; 43 bool operator==(const StyleSurroundData&) const;
44 bool operator!=(const StyleSurroundData& o) const 44 bool operator!=(const StyleSurroundData& o) const
45 { 45 {
46 return !(*this == o); 46 return !(*this == o);
47 } 47 }
48 48
49 LengthBox offset; 49 LengthBox offset;
50 LengthBox margin; 50 LengthBox margin;
51 LengthBox padding; 51 LengthBox padding;
52 BorderData border; 52 BorderData border;
53 53
54 private: 54 private:
55 StyleSurroundData(); 55 StyleSurroundData();
56 StyleSurroundData(const StyleSurroundData&); 56 StyleSurroundData(const StyleSurroundData&);
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // StyleSurroundData_h 61 #endif // StyleSurroundData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_margin_strut.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698