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-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 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 891 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 | 902 |
903 // "transparent" doesn't apply a color either. | 903 // "transparent" doesn't apply a color either. |
904 if (equalIgnoringCase(colorString, "transparent")) | 904 if (equalIgnoringCase(colorString, "transparent")) |
905 return; | 905 return; |
906 | 906 |
907 // If the string is a named CSS color or a 3/6-digit hex color, use that. | 907 // If the string is a named CSS color or a 3/6-digit hex color, use that. |
908 Color parsedColor; | 908 Color parsedColor; |
909 if (!parsedColor.setFromString(colorString)) | 909 if (!parsedColor.setFromString(colorString)) |
910 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); | 910 parsedColor.setRGB(parseColorStringWithCrazyLegacyRules(colorString)); |
911 | 911 |
912 style->setProperty(propertyID, cssValuePool().createColorValue(parsedColor.r
gb())); | 912 style->setProperty(propertyID, CSSValue(cssValuePool().createColorValue(pars
edColor.rgb()))); |
913 } | 913 } |
914 | 914 |
915 bool HTMLElement::isInteractiveContent() const | 915 bool HTMLElement::isInteractiveContent() const |
916 { | 916 { |
917 return false; | 917 return false; |
918 } | 918 } |
919 | 919 |
920 HTMLMenuElement* HTMLElement::assignedContextMenu() const | 920 HTMLMenuElement* HTMLElement::assignedContextMenu() const |
921 { | 921 { |
922 if (HTMLMenuElement* menu = contextMenu()) | 922 if (HTMLMenuElement* menu = contextMenu()) |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 #ifndef NDEBUG | 1016 #ifndef NDEBUG |
1017 | 1017 |
1018 // For use in the debugger | 1018 // For use in the debugger |
1019 void dumpInnerHTML(blink::HTMLElement*); | 1019 void dumpInnerHTML(blink::HTMLElement*); |
1020 | 1020 |
1021 void dumpInnerHTML(blink::HTMLElement* element) | 1021 void dumpInnerHTML(blink::HTMLElement* element) |
1022 { | 1022 { |
1023 printf("%s\n", element->innerHTML().ascii().data()); | 1023 printf("%s\n", element->innerHTML().ascii().data()); |
1024 } | 1024 } |
1025 #endif | 1025 #endif |
OLD | NEW |