OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
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 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 return; | 1030 return; |
1031 | 1031 |
1032 // If the string is a named CSS color or a 3/6-digit hex color, use that. | 1032 // If the string is a named CSS color or a 3/6-digit hex color, use that. |
1033 Color parsedColor(colorString); | 1033 Color parsedColor(colorString); |
1034 if (!parsedColor.isValid()) | 1034 if (!parsedColor.isValid()) |
1035 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); | 1035 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); |
1036 | 1036 |
1037 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); | 1037 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); |
1038 } | 1038 } |
1039 | 1039 |
| 1040 void HTMLElement::acceptHeapVisitor(Visitor* visitor) const |
| 1041 { |
| 1042 StyledElement::acceptHeapVisitor(visitor); |
| 1043 } |
| 1044 |
1040 } // namespace WebCore | 1045 } // namespace WebCore |
1041 | 1046 |
1042 #ifndef NDEBUG | 1047 #ifndef NDEBUG |
1043 | 1048 |
1044 // For use in the debugger | 1049 // For use in the debugger |
1045 void dumpInnerHTML(WebCore::HTMLElement*); | 1050 void dumpInnerHTML(WebCore::HTMLElement*); |
1046 | 1051 |
1047 void dumpInnerHTML(WebCore::HTMLElement* element) | 1052 void dumpInnerHTML(WebCore::HTMLElement* element) |
1048 { | 1053 { |
1049 printf("%s\n", element->innerHTML().ascii().data()); | 1054 printf("%s\n", element->innerHTML().ascii().data()); |
1050 } | 1055 } |
1051 #endif | 1056 #endif |
OLD | NEW |