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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 bool VisuallyEqual(const OutlineValue& o) const { | 47 bool VisuallyEqual(const OutlineValue& o) const { |
48 if (style_ == kBorderStyleNone && o.style_ == kBorderStyleNone) | 48 if (style_ == kBorderStyleNone && o.style_ == kBorderStyleNone) |
49 return true; | 49 return true; |
50 return *this == o; | 50 return *this == o; |
51 } | 51 } |
52 | 52 |
53 int Offset() const { return offset_; } | 53 int Offset() const { return offset_; } |
54 void SetOffset(int offset) { offset_ = offset; } | 54 void SetOffset(int offset) { offset_ = offset; } |
55 | 55 |
56 OutlineIsAuto IsAuto() const { return static_cast<OutlineIsAuto>(is_auto_); } | |
57 void SetIsAuto(OutlineIsAuto is_auto) { is_auto_ = is_auto; } | |
58 | |
59 private: | 56 private: |
60 int offset_; | 57 int offset_; |
61 }; | 58 }; |
62 | 59 |
63 } // namespace blink | 60 } // namespace blink |
64 | 61 |
65 #endif // OutlineValue_h | 62 #endif // OutlineValue_h |
OLD | NEW |