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

Side by Side Diff: Source/core/css/CSSParser.h

Issue 14408004: Fix incorrect evaluation of resolution media queries (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 FUnknown = 0x0000, 579 FUnknown = 0x0000,
580 FInteger = 0x0001, 580 FInteger = 0x0001,
581 FNumber = 0x0002, // Real Numbers 581 FNumber = 0x0002, // Real Numbers
582 FPercent = 0x0004, 582 FPercent = 0x0004,
583 FLength = 0x0008, 583 FLength = 0x0008,
584 FAngle = 0x0010, 584 FAngle = 0x0010,
585 FTime = 0x0020, 585 FTime = 0x0020,
586 FFrequency = 0x0040, 586 FFrequency = 0x0040,
587 FPositiveInteger = 0x0080, 587 FPositiveInteger = 0x0080,
588 FRelative = 0x0100, 588 FRelative = 0x0100,
589 #if ENABLE(RESOLUTION_MEDIA_QUERY)
590 FResolution = 0x0200, 589 FResolution = 0x0200,
591 #endif
592 FNonNeg = 0x0400 590 FNonNeg = 0x0400
593 }; 591 };
594 592
595 friend inline Units operator|(Units a, Units b) 593 friend inline Units operator|(Units a, Units b)
596 { 594 {
597 return static_cast<Units>(static_cast<unsigned>(a) | static_cast<unsigne d>(b)); 595 return static_cast<Units>(static_cast<unsigned>(a) | static_cast<unsigne d>(b));
598 } 596 }
599 597
600 enum ReleaseParsedCalcValueCondition { 598 enum ReleaseParsedCalcValueCondition {
601 ReleaseParsedCalcValue, 599 ReleaseParsedCalcValue,
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 } 696 }
699 697
700 inline int cssyylex(void* yylval, CSSParser* parser) 698 inline int cssyylex(void* yylval, CSSParser* parser)
701 { 699 {
702 return parser->lex(yylval); 700 return parser->lex(yylval);
703 } 701 }
704 702
705 } // namespace WebCore 703 } // namespace WebCore
706 704
707 #endif // CSSParser_h 705 #endif // CSSParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698