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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 477593002: Remove CSSTouchAction runtime flag (status=stable) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
« no previous file with comments | « Source/core/css/RuntimeCSSEnabled.cpp ('k') | Source/core/page/EventHandler.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 7625 matching lines...) Expand 10 before | Expand all | Expand 10 after
7636 default: 7636 default:
7637 ASSERT_NOT_REACHED(); 7637 ASSERT_NOT_REACHED();
7638 return false; 7638 return false;
7639 } 7639 }
7640 7640
7641 return value; 7641 return value;
7642 } 7642 }
7643 7643
7644 bool CSSPropertyParser::parseTouchAction(bool important) 7644 bool CSSPropertyParser::parseTouchAction(bool important)
7645 { 7645 {
7646 if (!RuntimeEnabledFeatures::cssTouchActionEnabled())
7647 return false;
7648
7649 CSSParserValue* value = m_valueList->current(); 7646 CSSParserValue* value = m_valueList->current();
7650 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated() ; 7647 RefPtrWillBeRawPtr<CSSValueList> list = CSSValueList::createSpaceSeparated() ;
7651 if (m_valueList->size() == 1 && value && (value->id == CSSValueAuto || value ->id == CSSValueNone || value->id == CSSValueManipulation)) { 7648 if (m_valueList->size() == 1 && value && (value->id == CSSValueAuto || value ->id == CSSValueNone || value->id == CSSValueManipulation)) {
7652 list->append(cssValuePool().createIdentifierValue(value->id)); 7649 list->append(cssValuePool().createIdentifierValue(value->id));
7653 addProperty(CSSPropertyTouchAction, list.release(), important); 7650 addProperty(CSSPropertyTouchAction, list.release(), important);
7654 m_valueList->next(); 7651 m_valueList->next();
7655 return true; 7652 return true;
7656 } 7653 }
7657 7654
7658 bool isValid = true; 7655 bool isValid = true;
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
8533 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); 8530 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill));
8534 if (!seenStroke) 8531 if (!seenStroke)
8535 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) ); 8532 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) );
8536 if (!seenMarkers) 8533 if (!seenMarkers)
8537 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers )); 8534 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers ));
8538 8535
8539 return parsedValues.release(); 8536 return parsedValues.release();
8540 } 8537 }
8541 8538
8542 } // namespace blink 8539 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/RuntimeCSSEnabled.cpp ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698