| 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 29 matching lines...) Expand all Loading... |
| 40 static PassRefPtr<StyleMultiColData> Create() { | 40 static PassRefPtr<StyleMultiColData> Create() { |
| 41 return AdoptRef(new StyleMultiColData); | 41 return AdoptRef(new StyleMultiColData); |
| 42 } | 42 } |
| 43 PassRefPtr<StyleMultiColData> Copy() const { | 43 PassRefPtr<StyleMultiColData> Copy() const { |
| 44 return AdoptRef(new StyleMultiColData(*this)); | 44 return AdoptRef(new StyleMultiColData(*this)); |
| 45 } | 45 } |
| 46 | 46 |
| 47 bool operator==(const StyleMultiColData&) const; | 47 bool operator==(const StyleMultiColData&) const; |
| 48 bool operator!=(const StyleMultiColData& o) const { return !(*this == o); } | 48 bool operator!=(const StyleMultiColData& o) const { return !(*this == o); } |
| 49 | 49 |
| 50 unsigned short RuleWidth() const { | |
| 51 if (rule_.Style() == EBorderStyle::kNone || | |
| 52 rule_.Style() == EBorderStyle::kHidden) | |
| 53 return 0; | |
| 54 return rule_.Width(); | |
| 55 } | |
| 56 | |
| 57 float width_; | 50 float width_; |
| 58 unsigned short count_; | 51 unsigned short count_; |
| 59 float gap_; | 52 float gap_; |
| 60 BorderValue rule_; | 53 BorderValue rule_; |
| 61 StyleColor visited_link_column_rule_color_; | 54 StyleColor visited_link_column_rule_color_; |
| 62 | 55 |
| 63 unsigned auto_width_ : 1; | 56 unsigned auto_width_ : 1; |
| 64 unsigned auto_count_ : 1; | 57 unsigned auto_count_ : 1; |
| 65 unsigned normal_gap_ : 1; | 58 unsigned normal_gap_ : 1; |
| 66 unsigned fill_ : 1; // ColumnFill | 59 unsigned fill_ : 1; // ColumnFill |
| 67 unsigned column_span_ : 1; | 60 unsigned column_span_ : 1; |
| 68 | 61 |
| 69 private: | 62 private: |
| 70 StyleMultiColData(); | 63 StyleMultiColData(); |
| 71 StyleMultiColData(const StyleMultiColData&); | 64 StyleMultiColData(const StyleMultiColData&); |
| 72 }; | 65 }; |
| 73 | 66 |
| 74 } // namespace blink | 67 } // namespace blink |
| 75 | 68 |
| 76 #endif // StyleMultiColData_h | 69 #endif // StyleMultiColData_h |
| OLD | NEW |