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

Side by Side Diff: sky/engine/core/css/parser/CSSTokenizer-in.cpp

Issue 760183003: Enable/Unprefix Animations & Transitions, add basic tests (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: patch for landing Created 6 years 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
« no previous file with comments | « sky/engine/core/css/parser/CSSPropertyParser.cpp ('k') | sky/engine/core/dom/Document.cpp » ('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) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 // -webkit-keyframes, keyframes, and -webkit-mediaquery are not affected by hasEscape. 897 // -webkit-keyframes, keyframes, and -webkit-mediaquery are not affected by hasEscape.
898 SWITCH(name, length) { 898 SWITCH(name, length) {
899 CASE("charset") { 899 CASE("charset") {
900 if (name - 1 == dataStart<CharacterType>()) 900 if (name - 1 == dataStart<CharacterType>())
901 m_token = CHARSET_SYM; 901 m_token = CHARSET_SYM;
902 } 902 }
903 CASE("font-face") { 903 CASE("font-face") {
904 m_token = FONT_FACE_SYM; 904 m_token = FONT_FACE_SYM;
905 } 905 }
906 CASE("keyframes") { 906 CASE("keyframes") {
907 if (RuntimeEnabledFeatures::cssAnimationUnprefixedEnabled()) 907 m_token = KEYFRAMES_SYM;
908 m_token = KEYFRAMES_SYM;
909 } 908 }
910 CASE("media") { 909 CASE("media") {
911 m_parsingMode = MediaQueryMode; 910 m_parsingMode = MediaQueryMode;
912 m_token = MEDIA_SYM; 911 m_token = MEDIA_SYM;
913 } 912 }
914 CASE("supports") { 913 CASE("supports") {
915 m_parsingMode = SupportsMode; 914 m_parsingMode = SupportsMode;
916 m_token = SUPPORTS_SYM; 915 m_token = SUPPORTS_SYM;
917 } 916 }
918 CASE("-internal-rule") { 917 CASE("-internal-rule") {
919 if (LIKELY(!hasEscape && m_internal)) 918 if (LIKELY(!hasEscape && m_internal))
920 m_token = INTERNAL_RULE_SYM; 919 m_token = INTERNAL_RULE_SYM;
921 } 920 }
922 CASE("-internal-decls") { 921 CASE("-internal-decls") {
923 if (LIKELY(!hasEscape && m_internal)) 922 if (LIKELY(!hasEscape && m_internal))
924 m_token = INTERNAL_DECLS_SYM; 923 m_token = INTERNAL_DECLS_SYM;
925 } 924 }
926 CASE("-internal-value") { 925 CASE("-internal-value") {
927 if (LIKELY(!hasEscape && m_internal)) 926 if (LIKELY(!hasEscape && m_internal))
928 m_token = INTERNAL_VALUE_SYM; 927 m_token = INTERNAL_VALUE_SYM;
929 } 928 }
930 CASE("-webkit-keyframes") {
931 m_token = WEBKIT_KEYFRAMES_SYM;
932 }
933 CASE("-internal-selector") { 929 CASE("-internal-selector") {
934 if (LIKELY(!hasEscape && m_internal)) 930 if (LIKELY(!hasEscape && m_internal))
935 m_token = INTERNAL_SELECTOR_SYM; 931 m_token = INTERNAL_SELECTOR_SYM;
936 } 932 }
937 CASE("-internal-medialist") { 933 CASE("-internal-medialist") {
938 if (!m_internal) 934 if (!m_internal)
939 return; 935 return;
940 m_parsingMode = MediaQueryMode; 936 m_parsingMode = MediaQueryMode;
941 m_token = INTERNAL_MEDIALIST_SYM; 937 m_token = INTERNAL_MEDIALIST_SYM;
942 } 938 }
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 m_dataStart16[length - 1] = 0; 1347 m_dataStart16[length - 1] = 0;
1352 1348
1353 m_is8BitSource = false; 1349 m_is8BitSource = false;
1354 m_currentCharacter8 = 0; 1350 m_currentCharacter8 = 0;
1355 m_currentCharacter16 = m_dataStart16.get(); 1351 m_currentCharacter16 = m_dataStart16.get();
1356 setTokenStart<UChar>(m_currentCharacter16); 1352 setTokenStart<UChar>(m_currentCharacter16);
1357 m_lexFunc = &CSSTokenizer::realLex<UChar>; 1353 m_lexFunc = &CSSTokenizer::realLex<UChar>;
1358 } 1354 }
1359 1355
1360 } // namespace blink 1356 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/parser/CSSPropertyParser.cpp ('k') | sky/engine/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698