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

Side by Side Diff: Source/WebCore/css/CSSGrammar.y.in

Issue 13771002: Recalc styles on resize if we have viewport units. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 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) 2002-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2002-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 App le Inc. All rights reserved.
4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com) 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@nypop.com)
5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
6 * Copyright (C) 2012 Intel Corporation. All rights reserved. 6 * Copyright (C) 2012 Intel Corporation. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public 9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1788 | QEMS maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSParserValue::Q_EM S; } 1788 | QEMS maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSParserValue::Q_EM S; }
1789 | EXS maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CS S_EXS; } 1789 | EXS maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CS S_EXS; }
1790 | REMS maybe_space { 1790 | REMS maybe_space {
1791 $$.id = 0; 1791 $$.id = 0;
1792 $$.fValue = $1; 1792 $$.fValue = $1;
1793 $$.unit = CSSPrimitiveValue::CSS_REMS; 1793 $$.unit = CSSPrimitiveValue::CSS_REMS;
1794 if (parser->m_styleSheet) 1794 if (parser->m_styleSheet)
1795 parser->m_styleSheet->parserSetUsesRemUnits(true); 1795 parser->m_styleSheet->parserSetUsesRemUnits(true);
1796 } 1796 }
1797 | CHS maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CS S_CHS; } 1797 | CHS maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CS S_CHS; }
1798 | VW maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CSS _VW; } 1798 | VW maybe_space {
1799 | VH maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CSS _VH; } 1799 $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CSS_VW;
1800 | VMIN maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::C SS_VMIN; } 1800 if (parser->m_styleSheet)
1801 | VMAX maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::C SS_VMAX; } 1801 parser->m_styleSheet->parserSetUsesViewportUnits(true);
1802 }
1803 | VH maybe_space {
1804 $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CSS_VH;
1805 if (parser->m_styleSheet)
1806 parser->m_styleSheet->parserSetUsesViewportUnits(true);
1807 }
1808 | VMIN maybe_space {
1809 $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CSS_VMIN;
1810 if (parser->m_styleSheet)
1811 parser->m_styleSheet->parserSetUsesViewportUnits(true);
1812 }
1813 | VMAX maybe_space {
1814 $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CSS_VMAX;
1815 if (parser->m_styleSheet)
1816 parser->m_styleSheet->parserSetUsesViewportUnits(true);
1817 }
1802 | DPPX maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::C SS_DPPX; } 1818 | DPPX maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::C SS_DPPX; }
1803 | DPI maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CS S_DPI; } 1819 | DPI maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::CS S_DPI; }
1804 | DPCM maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::C SS_DPCM; } 1820 | DPCM maybe_space { $$.id = 0; $$.fValue = $1; $$.unit = CSSPrimitiveValue::C SS_DPCM; }
1805 ; 1821 ;
1806 1822
1807 function: 1823 function:
1808 FUNCTION maybe_space expr ')' maybe_space { 1824 FUNCTION maybe_space expr ')' maybe_space {
1809 CSSParserFunction* f = parser->createFloatingFunction(); 1825 CSSParserFunction* f = parser->createFloatingFunction();
1810 f->name = $1; 1826 f->name = $1;
1811 f->args = parser->sinkFloatingValueList($3); 1827 f->args = parser->sinkFloatingValueList($3);
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
2030 } 2046 }
2031 ; 2047 ;
2032 2048
2033 error_location: { 2049 error_location: {
2034 $$ = parser->currentLocation(); 2050 $$ = parser->currentLocation();
2035 } 2051 }
2036 ; 2052 ;
2037 2053
2038 %% 2054 %%
2039 2055
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698