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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/LegacyCSSPropertyParser.cpp

Issue 1835303002: Implementation of the GreenWeb language extensions. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change GreenWeb-related CSS property names such that they apply in the desired order at runtime. Created 4 years, 8 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 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 addProperty(propId, parsedValue.release(), important); 388 addProperty(propId, parsedValue.release(), important);
389 return true; 389 return true;
390 } 390 }
391 if (parseShorthand(propId, important)) 391 if (parseShorthand(propId, important))
392 return true; 392 return true;
393 393
394 bool validPrimitive = false; 394 bool validPrimitive = false;
395 Units unitless = FUnknown; 395 Units unitless = FUnknown;
396 396
397 switch (propId) { 397 switch (propId) {
398 case CSSPropertyOnclickVpi:
399 case CSSPropertyOnclickVpu:
400 case CSSPropertyOnscrollVpi:
401 case CSSPropertyOnscrollVpu:
402 case CSSPropertyOntouchstartVpi:
403 case CSSPropertyOntouchstartVpu:
404 case CSSPropertyOntouchendVpi:
405 case CSSPropertyOntouchendVpu:
406 case CSSPropertyOntouchmoveVpi:
407 case CSSPropertyOntouchmoveVpu:
408 validPrimitive = validUnit(value, FInteger);
409 break;
398 case CSSPropertyContent: // [ <string> | <uri> | <counter> | at tr(X) | open-quote | 410 case CSSPropertyContent: // [ <string> | <uri> | <counter> | at tr(X) | open-quote |
399 // close-quote | no-open-quote | no-close-quote ]+ | inherit 411 // close-quote | no-open-quote | no-close-quote ]+ | inherit
400 parsedValue = parseContent(); 412 parsedValue = parseContent();
401 break; 413 break;
402 414
403 /* Start of supported CSS properties with validation. This is needed for par seShorthand to work 415 /* Start of supported CSS properties with validation. This is needed for par seShorthand to work
404 * correctly and allows optimization in blink::applyRule(..) 416 * correctly and allows optimization in blink::applyRule(..)
405 */ 417 */
406 418
407 case CSSPropertyTextAlign: 419 case CSSPropertyTextAlign:
(...skipping 6242 matching lines...) Expand 10 before | Expand all | Expand 10 after
6650 } 6662 }
6651 } 6663 }
6652 6664
6653 if (!list->length()) 6665 if (!list->length())
6654 return nullptr; 6666 return nullptr;
6655 6667
6656 return list.release(); 6668 return list.release();
6657 } 6669 }
6658 6670
6659 } // namespace blink 6671 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698