| 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 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 { | 637 { |
| 638 ASSERT(element); | 638 ASSERT(element); |
| 639 if (!isHTMLInputElement(*element)) | 639 if (!isHTMLInputElement(*element)) |
| 640 return; | 640 return; |
| 641 Color color; | 641 Color color; |
| 642 if (!color.setFromString(colorValue)) | 642 if (!color.setFromString(colorValue)) |
| 643 return; | 643 return; |
| 644 toHTMLInputElement(*element).selectColorInColorChooser(color); | 644 toHTMLInputElement(*element).selectColorInColorChooser(color); |
| 645 } | 645 } |
| 646 | 646 |
| 647 void Internals::endColorChooser(Element* element) |
| 648 { |
| 649 ASSERT(element); |
| 650 if (!isHTMLInputElement(*element)) |
| 651 return; |
| 652 toHTMLInputElement(*element).endColorChooser(); |
| 653 } |
| 654 |
| 647 bool Internals::hasAutofocusRequest(Document* document) | 655 bool Internals::hasAutofocusRequest(Document* document) |
| 648 { | 656 { |
| 649 if (!document) | 657 if (!document) |
| 650 document = contextDocument(); | 658 document = contextDocument(); |
| 651 return document->autofocusElement(); | 659 return document->autofocusElement(); |
| 652 } | 660 } |
| 653 | 661 |
| 654 bool Internals::hasAutofocusRequest() | 662 bool Internals::hasAutofocusRequest() |
| 655 { | 663 { |
| 656 return hasAutofocusRequest(0); | 664 return hasAutofocusRequest(0); |
| (...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2258 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); | 2266 element->ensureUserAgentShadowRoot().setInnerHTML(htmlSource, exceptionState
); |
| 2259 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); | 2267 toHTMLPlugInElement(element)->setUsePlaceholderContent(true); |
| 2260 } | 2268 } |
| 2261 | 2269 |
| 2262 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2270 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
| 2263 { | 2271 { |
| 2264 return new InternalsIterator; | 2272 return new InternalsIterator; |
| 2265 } | 2273 } |
| 2266 | 2274 |
| 2267 } // namespace blink | 2275 } // namespace blink |
| OLD | NEW |