OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 18 matching lines...) Expand all Loading... |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/css/CSSGridTemplateAreasValue.h" | 32 #include "core/css/CSSGridTemplateAreasValue.h" |
33 | 33 |
34 #include "wtf/text/StringBuilder.h" | 34 #include "wtf/text/StringBuilder.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 CSSGridTemplateAreasValue::CSSGridTemplateAreasValue(const NamedGridAreaMap& gri
dAreaMap, size_t rowCount, size_t columnCount) | 38 CSSGridTemplateAreasValue::CSSGridTemplateAreasValue(const NamedGridAreaMap& gri
dAreaMap, size_t rowCount, size_t columnCount) |
39 : CSSValue(GridTemplateAreasClass) | 39 : CSSValueObject(GridTemplateAreasClass) |
40 , m_gridAreaMap(gridAreaMap) | 40 , m_gridAreaMap(gridAreaMap) |
41 , m_rowCount(rowCount) | 41 , m_rowCount(rowCount) |
42 , m_columnCount(columnCount) | 42 , m_columnCount(columnCount) |
43 { | 43 { |
44 ASSERT(m_rowCount); | 44 ASSERT(m_rowCount); |
45 ASSERT(m_columnCount); | 45 ASSERT(m_columnCount); |
46 } | 46 } |
47 | 47 |
48 static String stringForPosition(const NamedGridAreaMap& gridAreaMap, size_t row,
size_t column) | 48 static String stringForPosition(const NamedGridAreaMap& gridAreaMap, size_t row,
size_t column) |
49 { | 49 { |
(...skipping 30 matching lines...) Expand all Loading... |
80 } | 80 } |
81 return builder.toString(); | 81 return builder.toString(); |
82 } | 82 } |
83 | 83 |
84 bool CSSGridTemplateAreasValue::equals(const CSSGridTemplateAreasValue& other) c
onst | 84 bool CSSGridTemplateAreasValue::equals(const CSSGridTemplateAreasValue& other) c
onst |
85 { | 85 { |
86 return m_gridAreaMap == other.m_gridAreaMap && m_rowCount == other.m_rowCoun
t && m_columnCount == other.m_columnCount; | 86 return m_gridAreaMap == other.m_gridAreaMap && m_rowCount == other.m_rowCoun
t && m_columnCount == other.m_columnCount; |
87 } | 87 } |
88 | 88 |
89 } // namespace blink | 89 } // namespace blink |
OLD | NEW |