| 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
reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. | 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 PassRefPtr<ComputedStyle> ComputedStyle::create() | 76 PassRefPtr<ComputedStyle> ComputedStyle::create() |
| 77 { | 77 { |
| 78 return adoptRef(new ComputedStyle()); | 78 return adoptRef(new ComputedStyle()); |
| 79 } | 79 } |
| 80 | 80 |
| 81 PassRefPtr<ComputedStyle> ComputedStyle::createInitialStyle() | 81 PassRefPtr<ComputedStyle> ComputedStyle::createInitialStyle() |
| 82 { | 82 { |
| 83 return adoptRef(new ComputedStyle(InitialStyle)); | 83 return adoptRef(new ComputedStyle(InitialStyle)); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void ComputedStyle::invalidateInitialStyle() |
| 87 { |
| 88 initialStyle()->setTapHighlightColor(initialTapHighlightColor()); |
| 89 } |
| 90 |
| 86 PassRefPtr<ComputedStyle> ComputedStyle::createAnonymousStyleWithDisplay(const C
omputedStyle& parentStyle, EDisplay display) | 91 PassRefPtr<ComputedStyle> ComputedStyle::createAnonymousStyleWithDisplay(const C
omputedStyle& parentStyle, EDisplay display) |
| 87 { | 92 { |
| 88 RefPtr<ComputedStyle> newStyle = ComputedStyle::create(); | 93 RefPtr<ComputedStyle> newStyle = ComputedStyle::create(); |
| 89 newStyle->inheritFrom(parentStyle); | 94 newStyle->inheritFrom(parentStyle); |
| 90 newStyle->inheritUnicodeBidiFrom(parentStyle); | 95 newStyle->inheritUnicodeBidiFrom(parentStyle); |
| 91 newStyle->setDisplay(display); | 96 newStyle->setDisplay(display); |
| 92 return newStyle; | 97 return newStyle; |
| 93 } | 98 } |
| 94 | 99 |
| 95 PassRefPtr<ComputedStyle> ComputedStyle::clone(const ComputedStyle& other) | 100 PassRefPtr<ComputedStyle> ComputedStyle::clone(const ComputedStyle& other) |
| (...skipping 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1876 if (!shadowList) | 1881 if (!shadowList) |
| 1877 return false; | 1882 return false; |
| 1878 for (size_t i = shadowList->shadows().size(); i--; ) { | 1883 for (size_t i = shadowList->shadows().size(); i--; ) { |
| 1879 if (shadowList->shadows()[i].color().isCurrentColor()) | 1884 if (shadowList->shadows()[i].color().isCurrentColor()) |
| 1880 return true; | 1885 return true; |
| 1881 } | 1886 } |
| 1882 return false; | 1887 return false; |
| 1883 } | 1888 } |
| 1884 | 1889 |
| 1885 } // namespace blink | 1890 } // namespace blink |
| OLD | NEW |