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

Side by Side Diff: Source/core/css/CSSParser-in.cpp

Issue 18328028: Enable MQ evaluation off the main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@threaded_mqe_rebase
Patch Set: Created 7 years, 5 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) 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 10699 matching lines...) Expand 10 before | Expand all | Expand 10 after
10710 10710
10711 CSSParserValue& CSSParser::sinkFloatingValue(CSSParserValue& value) 10711 CSSParserValue& CSSParser::sinkFloatingValue(CSSParserValue& value)
10712 { 10712 {
10713 if (value.unit == CSSParserValue::Function) { 10713 if (value.unit == CSSParserValue::Function) {
10714 ASSERT(m_floatingFunctions.contains(value.function)); 10714 ASSERT(m_floatingFunctions.contains(value.function));
10715 m_floatingFunctions.remove(value.function); 10715 m_floatingFunctions.remove(value.function);
10716 } 10716 }
10717 return value; 10717 return value;
10718 } 10718 }
10719 10719
10720 MediaQueryExp* CSSParser::createFloatingMediaQueryExp(const AtomicString& mediaF eature, CSSParserValueList* values) 10720 MediaQueryExp* CSSParser::createFloatingMediaQueryExp(const String& mediaFeature , CSSParserValueList* values)
10721 { 10721 {
10722 m_floatingMediaQueryExp = MediaQueryExp::create(mediaFeature, values); 10722 m_floatingMediaQueryExp = MediaQueryExp::create(mediaFeature, values);
10723 return m_floatingMediaQueryExp.get(); 10723 return m_floatingMediaQueryExp.get();
10724 } 10724 }
10725 10725
10726 PassOwnPtr<MediaQueryExp> CSSParser::sinkFloatingMediaQueryExp(MediaQueryExp* ex pression) 10726 PassOwnPtr<MediaQueryExp> CSSParser::sinkFloatingMediaQueryExp(MediaQueryExp* ex pression)
10727 { 10727 {
10728 ASSERT_UNUSED(expression, expression == m_floatingMediaQueryExp); 10728 ASSERT_UNUSED(expression, expression == m_floatingMediaQueryExp);
10729 return m_floatingMediaQueryExp.release(); 10729 return m_floatingMediaQueryExp.release();
10730 } 10730 }
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after
11721 { 11721 {
11722 // The tokenizer checks for the construct of an+b. 11722 // The tokenizer checks for the construct of an+b.
11723 // However, since the {ident} rule precedes the {nth} rule, some of those 11723 // However, since the {ident} rule precedes the {nth} rule, some of those
11724 // tokens are identified as string literal. Furthermore we need to accept 11724 // tokens are identified as string literal. Furthermore we need to accept
11725 // "odd" and "even" which does not match to an+b. 11725 // "odd" and "even" which does not match to an+b.
11726 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even") 11726 return equalIgnoringCase(token, "odd") || equalIgnoringCase(token, "even")
11727 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n"); 11727 || equalIgnoringCase(token, "n") || equalIgnoringCase(token, "-n");
11728 } 11728 }
11729 11729
11730 } 11730 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698