| 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, 2009, 2010 Apple Inc. All rights | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 4 * reserved. | 4 * reserved. |
| 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 1959 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1970 void ComputedStyle::addAppliedTextDecoration( | 1970 void ComputedStyle::addAppliedTextDecoration( |
| 1971 const AppliedTextDecoration& decoration) { | 1971 const AppliedTextDecoration& decoration) { |
| 1972 RefPtr<AppliedTextDecorationList>& list = | 1972 RefPtr<AppliedTextDecorationList>& list = |
| 1973 m_rareInheritedData.access()->appliedTextDecorations; | 1973 m_rareInheritedData.access()->appliedTextDecorations; |
| 1974 | 1974 |
| 1975 if (!list) | 1975 if (!list) |
| 1976 list = AppliedTextDecorationList::create(); | 1976 list = AppliedTextDecorationList::create(); |
| 1977 else if (!list->hasOneRef()) | 1977 else if (!list->hasOneRef()) |
| 1978 list = list->copy(); | 1978 list = list->copy(); |
| 1979 | 1979 |
| 1980 list->append(decoration); | 1980 list->push_back(decoration); |
| 1981 } | 1981 } |
| 1982 | 1982 |
| 1983 void ComputedStyle::overrideTextDecorationColors(Color overrideColor) { | 1983 void ComputedStyle::overrideTextDecorationColors(Color overrideColor) { |
| 1984 RefPtr<AppliedTextDecorationList>& list = | 1984 RefPtr<AppliedTextDecorationList>& list = |
| 1985 m_rareInheritedData.access()->appliedTextDecorations; | 1985 m_rareInheritedData.access()->appliedTextDecorations; |
| 1986 DCHECK(list); | 1986 DCHECK(list); |
| 1987 if (!list->hasOneRef()) | 1987 if (!list->hasOneRef()) |
| 1988 list = list->copy(); | 1988 list = list->copy(); |
| 1989 | 1989 |
| 1990 for (size_t i = 0; i < list->size(); ++i) | 1990 for (size_t i = 0; i < list->size(); ++i) |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2477 if (value < 0) | 2477 if (value < 0) |
| 2478 fvalue -= 0.5f; | 2478 fvalue -= 0.5f; |
| 2479 else | 2479 else |
| 2480 fvalue += 0.5f; | 2480 fvalue += 0.5f; |
| 2481 } | 2481 } |
| 2482 | 2482 |
| 2483 return roundForImpreciseConversion<int>(fvalue / zoomFactor); | 2483 return roundForImpreciseConversion<int>(fvalue / zoomFactor); |
| 2484 } | 2484 } |
| 2485 | 2485 |
| 2486 } // namespace blink | 2486 } // namespace blink |
| OLD | NEW |