Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 1407183002: Rename ShadowRootType::OpenByDefault to ShadowRootType::V0. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1-attach-shadow
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/InspectorDOMAgent.cpp ('k') | third_party/WebKit/Source/web/WebElementTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698