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

Side by Side Diff: Source/core/html/LinkRelAttribute.cpp

Issue 1140153006: Remove Navigation Transitions from Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed layout tests. Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 , m_isAlternate(false) 42 , m_isAlternate(false)
43 , m_isDNSPrefetch(false) 43 , m_isDNSPrefetch(false)
44 , m_isPreconnect(false) 44 , m_isPreconnect(false)
45 , m_isLinkPrefetch(false) 45 , m_isLinkPrefetch(false)
46 , m_isLinkSubresource(false) 46 , m_isLinkSubresource(false)
47 , m_isLinkPreload(false) 47 , m_isLinkPreload(false)
48 , m_isLinkPrerender(false) 48 , m_isLinkPrerender(false)
49 , m_isLinkNext(false) 49 , m_isLinkNext(false)
50 , m_isImport(false) 50 , m_isImport(false)
51 , m_isManifest(false) 51 , m_isManifest(false)
52 , m_isTransitionExitingStylesheet(false)
53 , m_isDefaultPresentation(false) 52 , m_isDefaultPresentation(false)
54 { 53 {
55 if (rel.isEmpty()) 54 if (rel.isEmpty())
56 return; 55 return;
57 String relCopy = rel; 56 String relCopy = rel;
58 relCopy.replace('\n', ' '); 57 relCopy.replace('\n', ' ');
59 Vector<String> list; 58 Vector<String> list;
60 relCopy.split(' ', list); 59 relCopy.split(' ', list);
61 for (const String& linkType : list) { 60 for (const String& linkType : list) {
62 if (equalIgnoringCase(linkType, "stylesheet")) { 61 if (equalIgnoringCase(linkType, "stylesheet")) {
(...skipping 26 matching lines...) Expand all
89 } else if (equalIgnoringCase(linkType, "next")) { 88 } else if (equalIgnoringCase(linkType, "next")) {
90 m_isLinkNext = true; 89 m_isLinkNext = true;
91 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) { 90 } else if (equalIgnoringCase(linkType, "apple-touch-icon")) {
92 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) 91 if (RuntimeEnabledFeatures::touchIconLoadingEnabled())
93 m_iconType = TouchIcon; 92 m_iconType = TouchIcon;
94 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) { 93 } else if (equalIgnoringCase(linkType, "apple-touch-icon-precomposed")) {
95 if (RuntimeEnabledFeatures::touchIconLoadingEnabled()) 94 if (RuntimeEnabledFeatures::touchIconLoadingEnabled())
96 m_iconType = TouchPrecomposedIcon; 95 m_iconType = TouchPrecomposedIcon;
97 } else if (equalIgnoringCase(linkType, "manifest")) { 96 } else if (equalIgnoringCase(linkType, "manifest")) {
98 m_isManifest = true; 97 m_isManifest = true;
99 } else if (equalIgnoringCase(rel, "transition-exiting-stylesheet")) {
100 if (RuntimeEnabledFeatures::navigationTransitionsEnabled())
101 m_isTransitionExitingStylesheet = true;
102 } else if (equalIgnoringCase(linkType, "default-presentation")) { 98 } else if (equalIgnoringCase(linkType, "default-presentation")) {
103 if (RuntimeEnabledFeatures::presentationEnabled()) 99 if (RuntimeEnabledFeatures::presentationEnabled())
104 m_isDefaultPresentation = true; 100 m_isDefaultPresentation = true;
105 } 101 }
106 } 102 }
107 } 103 }
108 104
109 } 105 }
OLDNEW
« no previous file with comments | « Source/core/html/LinkRelAttribute.h ('k') | Source/core/loader/DocumentLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698