OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 25 matching lines...) Expand all Loading... |
36 #include "bindings/v8/ExceptionStatePlaceholder.h" | 36 #include "bindings/v8/ExceptionStatePlaceholder.h" |
37 #include "bindings/v8/ScriptController.h" | 37 #include "bindings/v8/ScriptController.h" |
38 #include "core/events/MouseEvent.h" | 38 #include "core/events/MouseEvent.h" |
39 #include "core/dom/shadow/ShadowRoot.h" | 39 #include "core/dom/shadow/ShadowRoot.h" |
40 #include "core/html/HTMLDataListElement.h" | 40 #include "core/html/HTMLDataListElement.h" |
41 #include "core/html/HTMLDivElement.h" | 41 #include "core/html/HTMLDivElement.h" |
42 #include "core/html/HTMLInputElement.h" | 42 #include "core/html/HTMLInputElement.h" |
43 #include "core/html/HTMLOptionElement.h" | 43 #include "core/html/HTMLOptionElement.h" |
44 #include "core/html/forms/InputTypeNames.h" | 44 #include "core/html/forms/InputTypeNames.h" |
45 #include "core/page/Chrome.h" | 45 #include "core/page/Chrome.h" |
46 #include "core/platform/graphics/Color.h" | |
47 #include "core/rendering/RenderView.h" | 46 #include "core/rendering/RenderView.h" |
48 #include "platform/UserGestureIndicator.h" | 47 #include "platform/UserGestureIndicator.h" |
| 48 #include "platform/graphics/Color.h" |
49 #include "wtf/PassOwnPtr.h" | 49 #include "wtf/PassOwnPtr.h" |
50 #include "wtf/text/WTFString.h" | 50 #include "wtf/text/WTFString.h" |
51 | 51 |
52 namespace WebCore { | 52 namespace WebCore { |
53 | 53 |
54 using namespace HTMLNames; | 54 using namespace HTMLNames; |
55 | 55 |
56 static bool isValidColorString(const String& value) | 56 static bool isValidColorString(const String& value) |
57 { | 57 { |
58 if (value.isEmpty()) | 58 if (value.isEmpty()) |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 if (!color.isValid()) | 239 if (!color.isValid()) |
240 continue; | 240 continue; |
241 suggestions.append(color); | 241 suggestions.append(color); |
242 } | 242 } |
243 } | 243 } |
244 } | 244 } |
245 return suggestions; | 245 return suggestions; |
246 } | 246 } |
247 | 247 |
248 } // namespace WebCore | 248 } // namespace WebCore |
OLD | NEW |