OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
697 return toHTMLTextFormControlElement(element)->placeholderElement()->
textContent(); | 697 return toHTMLTextFormControlElement(element)->placeholderElement()->
textContent(); |
698 } | 698 } |
699 | 699 |
700 return String(); | 700 return String(); |
701 } | 701 } |
702 | 702 |
703 void Internals::selectColorInColorChooser(Element* element, const String& colorV
alue) | 703 void Internals::selectColorInColorChooser(Element* element, const String& colorV
alue) |
704 { | 704 { |
705 if (!element->hasTagName(inputTag)) | 705 if (!element->hasTagName(inputTag)) |
706 return; | 706 return; |
707 toHTMLInputElement(element)->selectColorInColorChooser(Color(colorValue)); | 707 toHTMLInputElement(element)->selectColorInColorChooser(StyleColor(colorValue
).color()); |
708 } | 708 } |
709 | 709 |
710 Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& e
c) | 710 Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& e
c) |
711 { | 711 { |
712 HistoryItem* mainItem = frame()->loader()->history()->previousItem(); | 712 HistoryItem* mainItem = frame()->loader()->history()->previousItem(); |
713 if (!mainItem) { | 713 if (!mainItem) { |
714 ec = InvalidAccessError; | 714 ec = InvalidAccessError; |
715 return Vector<String>(); | 715 return Vector<String>(); |
716 } | 716 } |
717 String uniqueName = frame()->tree()->uniqueName(); | 717 String uniqueName = frame()->tree()->uniqueName(); |
(...skipping 1331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2049 | 2049 |
2050 RenderObject* renderer = select->renderer(); | 2050 RenderObject* renderer = select->renderer(); |
2051 if (!renderer->isMenuList()) | 2051 if (!renderer->isMenuList()) |
2052 return false; | 2052 return false; |
2053 | 2053 |
2054 RenderMenuList* menuList = toRenderMenuList(renderer); | 2054 RenderMenuList* menuList = toRenderMenuList(renderer); |
2055 return menuList->popupIsVisible(); | 2055 return menuList->popupIsVisible(); |
2056 } | 2056 } |
2057 | 2057 |
2058 } | 2058 } |
OLD | NEW |