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

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

Issue 2013693002: [css-tables] Set table and cell widths dirty when section border changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: handle case where row is null Created 4 years, 5 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/TableLayoutAlgorithmFixed.cpp ('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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 bool visualOverflowEqual(const BorderData& o) const 117 bool visualOverflowEqual(const BorderData& o) const
118 { 118 {
119 return m_image.outset() == o.m_image.outset(); 119 return m_image.outset() == o.m_image.outset();
120 } 120 }
121 121
122 bool operator!=(const BorderData& o) const 122 bool operator!=(const BorderData& o) const
123 { 123 {
124 return !(*this == o); 124 return !(*this == o);
125 } 125 }
126 126
127 bool sizeEquals(const BorderData& o) const
128 {
129 return borderLeftWidth() != o.borderLeftWidth()
130 || borderTopWidth() != o.borderTopWidth()
131 || borderRightWidth() != o.borderRightWidth()
132 || borderBottomWidth() != o.borderBottomWidth();
133 }
134
127 const BorderValue& left() const { return m_left; } 135 const BorderValue& left() const { return m_left; }
128 const BorderValue& right() const { return m_right; } 136 const BorderValue& right() const { return m_right; }
129 const BorderValue& top() const { return m_top; } 137 const BorderValue& top() const { return m_top; }
130 const BorderValue& bottom() const { return m_bottom; } 138 const BorderValue& bottom() const { return m_bottom; }
131 139
132 const NinePieceImage& image() const { return m_image; } 140 const NinePieceImage& image() const { return m_image; }
133 141
134 const LengthSize& topLeft() const { return m_topLeft; } 142 const LengthSize& topLeft() const { return m_topLeft; }
135 const LengthSize& topRight() const { return m_topRight; } 143 const LengthSize& topRight() const { return m_topRight; }
136 const LengthSize& bottomLeft() const { return m_bottomLeft; } 144 const LengthSize& bottomLeft() const { return m_bottomLeft; }
137 const LengthSize& bottomRight() const { return m_bottomRight; } 145 const LengthSize& bottomRight() const { return m_bottomRight; }
138 146
139 private: 147 private:
140 BorderValue m_left; 148 BorderValue m_left;
141 BorderValue m_right; 149 BorderValue m_right;
142 BorderValue m_top; 150 BorderValue m_top;
143 BorderValue m_bottom; 151 BorderValue m_bottom;
144 152
145 NinePieceImage m_image; 153 NinePieceImage m_image;
146 154
147 LengthSize m_topLeft; 155 LengthSize m_topLeft;
148 LengthSize m_topRight; 156 LengthSize m_topRight;
149 LengthSize m_bottomLeft; 157 LengthSize m_bottomLeft;
150 LengthSize m_bottomRight; 158 LengthSize m_bottomRight;
151 }; 159 };
152 160
153 } // namespace blink 161 } // namespace blink
154 162
155 #endif // BorderData_h 163 #endif // BorderData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/TableLayoutAlgorithmFixed.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698