| OLD | NEW |
| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #include "config.h" | 22 #include "config.h" |
| 23 #include "core/style/StyleBoxData.h" | 23 #include "core/style/StyleBoxData.h" |
| 24 | 24 |
| 25 #include "core/style/ComputedStyle.h" | 25 #include "core/style/ComputedStyle.h" |
| 26 #include "wtf/SizeAssertions.h" |
| 26 | 27 |
| 27 namespace blink { | 28 namespace blink { |
| 28 | 29 |
| 29 struct SameSizeAsStyleBoxData : public RefCounted<SameSizeAsStyleBoxData> { | 30 ASSERT_SIZE(StyleBoxData, 68, 68); |
| 30 Length length[7]; | |
| 31 int m_zIndex; | |
| 32 uint32_t bitfields; | |
| 33 }; | |
| 34 | |
| 35 static_assert(sizeof(StyleBoxData) == sizeof(SameSizeAsStyleBoxData), "StyleBoxD
ata should stay small"); | |
| 36 | 31 |
| 37 StyleBoxData::StyleBoxData() | 32 StyleBoxData::StyleBoxData() |
| 38 : m_minWidth(ComputedStyle::initialMinSize()) | 33 : m_minWidth(ComputedStyle::initialMinSize()) |
| 39 , m_maxWidth(ComputedStyle::initialMaxSize()) | 34 , m_maxWidth(ComputedStyle::initialMaxSize()) |
| 40 , m_minHeight(ComputedStyle::initialMinSize()) | 35 , m_minHeight(ComputedStyle::initialMinSize()) |
| 41 , m_maxHeight(ComputedStyle::initialMaxSize()) | 36 , m_maxHeight(ComputedStyle::initialMaxSize()) |
| 42 , m_zIndex(0) | 37 , m_zIndex(0) |
| 43 , m_hasAutoZIndex(true) | 38 , m_hasAutoZIndex(true) |
| 44 , m_boxSizing(CONTENT_BOX) | 39 , m_boxSizing(CONTENT_BOX) |
| 45 , m_boxDecorationBreak(DSLICE) | 40 , m_boxDecorationBreak(DSLICE) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 71 && m_minHeight == o.m_minHeight | 66 && m_minHeight == o.m_minHeight |
| 72 && m_maxHeight == o.m_maxHeight | 67 && m_maxHeight == o.m_maxHeight |
| 73 && m_verticalAlign == o.m_verticalAlign | 68 && m_verticalAlign == o.m_verticalAlign |
| 74 && m_zIndex == o.m_zIndex | 69 && m_zIndex == o.m_zIndex |
| 75 && m_hasAutoZIndex == o.m_hasAutoZIndex | 70 && m_hasAutoZIndex == o.m_hasAutoZIndex |
| 76 && m_boxSizing == o.m_boxSizing | 71 && m_boxSizing == o.m_boxSizing |
| 77 && m_boxDecorationBreak == o.m_boxDecorationBreak; | 72 && m_boxDecorationBreak == o.m_boxDecorationBreak; |
| 78 } | 73 } |
| 79 | 74 |
| 80 } // namespace blink | 75 } // namespace blink |
| OLD | NEW |