| OLD | NEW |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 class StyleFilterData; | 57 class StyleFilterData; |
| 58 class StyleFlexibleBoxData; | 58 class StyleFlexibleBoxData; |
| 59 class StyleGridData; | 59 class StyleGridData; |
| 60 class StyleGridItemData; | 60 class StyleGridItemData; |
| 61 class StyleMultiColData; | 61 class StyleMultiColData; |
| 62 class StyleNonInheritedVariables; | 62 class StyleNonInheritedVariables; |
| 63 class StyleReflection; | 63 class StyleReflection; |
| 64 class StyleTransformData; | 64 class StyleTransformData; |
| 65 class StyleWillChangeData; | 65 class StyleWillChangeData; |
| 66 | 66 |
| 67 // Page size type. | |
| 68 // StyleRareNonInheritedData::page_size_ is meaningful only when | |
| 69 // StyleRareNonInheritedData::page_size_type_ is kResolved. | |
| 70 enum class PageSizeType { | |
| 71 kAuto, // size: auto | |
| 72 kLandscape, // size: landscape | |
| 73 kPortrait, // size: portrait | |
| 74 kResolved // Size is fully resolved. | |
| 75 }; | |
| 76 | |
| 77 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific | 67 // This struct is for rarely used non-inherited CSS3, CSS2, and WebKit-specific |
| 78 // properties. By grouping them together, we save space, and only allocate this | 68 // properties. By grouping them together, we save space, and only allocate this |
| 79 // object when someone actually uses one of these properties. | 69 // object when someone actually uses one of these properties. |
| 80 // TODO(sashab): Move this into a private class on ComputedStyle, and remove | 70 // TODO(sashab): Move this into a private class on ComputedStyle, and remove |
| 81 // all methods on it, merging them into copy/creation methods on ComputedStyle | 71 // all methods on it, merging them into copy/creation methods on ComputedStyle |
| 82 // instead. Keep the allocation logic, only allocating a new object if needed. | 72 // instead. Keep the allocation logic, only allocating a new object if needed. |
| 83 class CORE_EXPORT StyleRareNonInheritedData | 73 class CORE_EXPORT StyleRareNonInheritedData |
| 84 : public RefCounted<StyleRareNonInheritedData> { | 74 : public RefCounted<StyleRareNonInheritedData> { |
| 85 public: | 75 public: |
| 86 static PassRefPtr<StyleRareNonInheritedData> Create() { | 76 static PassRefPtr<StyleRareNonInheritedData> Create() { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 unsigned has_author_border_ : 1; // Whether there is a author-defined border. | 218 unsigned has_author_border_ : 1; // Whether there is a author-defined border. |
| 229 | 219 |
| 230 private: | 220 private: |
| 231 StyleRareNonInheritedData(); | 221 StyleRareNonInheritedData(); |
| 232 StyleRareNonInheritedData(const StyleRareNonInheritedData&); | 222 StyleRareNonInheritedData(const StyleRareNonInheritedData&); |
| 233 }; | 223 }; |
| 234 | 224 |
| 235 } // namespace blink | 225 } // namespace blink |
| 236 | 226 |
| 237 #endif // StyleRareNonInheritedData_h | 227 #endif // StyleRareNonInheritedData_h |
| OLD | NEW |