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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 { | 684 { |
685 ASSERT(root); | 685 ASSERT(root); |
686 if (!root->isShadowRoot()) { | 686 if (!root->isShadowRoot()) { |
687 exceptionState.throwDOMException(InvalidAccessError, "The node provided
is not a shadow root."); | 687 exceptionState.throwDOMException(InvalidAccessError, "The node provided
is not a shadow root."); |
688 return String(); | 688 return String(); |
689 } | 689 } |
690 | 690 |
691 switch (toShadowRoot(root)->type()) { | 691 switch (toShadowRoot(root)->type()) { |
692 case ShadowRootType::UserAgent: | 692 case ShadowRootType::UserAgent: |
693 return String("UserAgentShadowRoot"); | 693 return String("UserAgentShadowRoot"); |
694 case ShadowRootType::OpenByDefault: | 694 case ShadowRootType::V0: |
695 return String("OpenByDefaultShadowRoot"); | 695 return String("V0ShadowRoot"); |
696 case ShadowRootType::Open: | 696 case ShadowRootType::Open: |
697 return String("OpenShadowRoot"); | 697 return String("OpenShadowRoot"); |
698 case ShadowRootType::Closed: | 698 case ShadowRootType::Closed: |
699 return String("ClosedShadowRoot"); | 699 return String("ClosedShadowRoot"); |
700 default: | 700 default: |
701 ASSERT_NOT_REACHED(); | 701 ASSERT_NOT_REACHED(); |
702 return String("Unknown"); | 702 return String("Unknown"); |
703 } | 703 } |
704 } | 704 } |
705 | 705 |
(...skipping 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2535 Document* document = contextDocument(); | 2535 Document* document = contextDocument(); |
2536 if (!document) { | 2536 if (!document) { |
2537 exceptionState.throwDOMException(InvalidAccessError, "No context documen
t is available."); | 2537 exceptionState.throwDOMException(InvalidAccessError, "No context documen
t is available."); |
2538 return 0; | 2538 return 0; |
2539 } | 2539 } |
2540 | 2540 |
2541 return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(pla
tformTime); | 2541 return document->loader()->timing().monotonicTimeToZeroBasedDocumentTime(pla
tformTime); |
2542 } | 2542 } |
2543 | 2543 |
2544 } // namespace blink | 2544 } // namespace blink |
OLD | NEW |