| 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 { | 638 { |
| 639 ASSERT(element); | 639 ASSERT(element); |
| 640 if (!isHTMLInputElement(*element)) | 640 if (!isHTMLInputElement(*element)) |
| 641 return; | 641 return; |
| 642 Color color; | 642 Color color; |
| 643 if (!color.setFromString(colorValue)) | 643 if (!color.setFromString(colorValue)) |
| 644 return; | 644 return; |
| 645 toHTMLInputElement(*element).selectColorInColorChooser(color); | 645 toHTMLInputElement(*element).selectColorInColorChooser(color); |
| 646 } | 646 } |
| 647 | 647 |
| 648 void Internals::endColorChooser(Element* element) |
| 649 { |
| 650 ASSERT(element); |
| 651 if (!isHTMLInputElement(*element)) |
| 652 return; |
| 653 toHTMLInputElement(*element).endColorChooser(); |
| 654 } |
| 655 |
| 648 bool Internals::hasAutofocusRequest(Document* document) | 656 bool Internals::hasAutofocusRequest(Document* document) |
| 649 { | 657 { |
| 650 if (!document) | 658 if (!document) |
| 651 document = contextDocument(); | 659 document = contextDocument(); |
| 652 return document->autofocusElement(); | 660 return document->autofocusElement(); |
| 653 } | 661 } |
| 654 | 662 |
| 655 bool Internals::hasAutofocusRequest() | 663 bool Internals::hasAutofocusRequest() |
| 656 { | 664 { |
| 657 return hasAutofocusRequest(0); | 665 return hasAutofocusRequest(0); |
| (...skipping 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2285 | 2293 |
| 2286 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); | 2294 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); |
| 2287 } | 2295 } |
| 2288 | 2296 |
| 2289 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2297 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
| 2290 { | 2298 { |
| 2291 return new InternalsIterator; | 2299 return new InternalsIterator; |
| 2292 } | 2300 } |
| 2293 | 2301 |
| 2294 } // namespace blink | 2302 } // namespace blink |
| OLD | NEW |