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

Side by Side Diff: sky/engine/core/css/parser/BisonCSSParser-in.cpp

Issue 758573005: Remove CSSOM mutability in StyleRule. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « sky/engine/core/css/StyleSheetContents.cpp ('k') | sky/engine/core/dom/StyleEngine.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 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after
1673 // See http://dev.w3.org/csswg/css3-fonts/#font-family-desc 1673 // See http://dev.w3.org/csswg/css3-fonts/#font-family-desc
1674 clearProperties(); 1674 clearProperties();
1675 return 0; 1675 return 0;
1676 } 1676 }
1677 } 1677 }
1678 RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create(); 1678 RefPtr<StyleRuleFontFace> rule = StyleRuleFontFace::create();
1679 rule->setProperties(createStylePropertySet()); 1679 rule->setProperties(createStylePropertySet());
1680 clearProperties(); 1680 clearProperties();
1681 StyleRuleFontFace* result = rule.get(); 1681 StyleRuleFontFace* result = rule.get();
1682 m_parsedRules.append(rule.release()); 1682 m_parsedRules.append(rule.release());
1683 if (m_styleSheet)
1684 m_styleSheet->setHasFontFaceRule(true);
1685 return result; 1683 return result;
1686 } 1684 }
1687 1685
1688 CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithNamespaceIfNeeded(CSSPar serSelector* specifiers) 1686 CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithNamespaceIfNeeded(CSSPar serSelector* specifiers)
1689 { 1687 {
1690 if (m_defaultNamespace != starAtom) 1688 if (m_defaultNamespace != starAtom)
1691 return rewriteSpecifiersWithElementName(nullAtom, starAtom, specifiers, /*tagIsForNamespaceRule*/true); 1689 return rewriteSpecifiersWithElementName(nullAtom, starAtom, specifiers, /*tagIsForNamespaceRule*/true);
1692 return specifiers; 1690 return specifiers;
1693 } 1691 }
1694 1692
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
1818 m_observer->endProperty(isImportantFound, isPropertyParsed, m_tokenizer. safeUserStringTokenOffset(), errorType); 1816 m_observer->endProperty(isImportantFound, isPropertyParsed, m_tokenizer. safeUserStringTokenOffset(), errorType);
1819 } 1817 }
1820 1818
1821 void BisonCSSParser::startEndUnknownRule() 1819 void BisonCSSParser::startEndUnknownRule()
1822 { 1820 {
1823 if (m_observer) 1821 if (m_observer)
1824 m_observer->startEndUnknownRule(); 1822 m_observer->startEndUnknownRule();
1825 } 1823 }
1826 1824
1827 } 1825 }
OLDNEW
« no previous file with comments | « sky/engine/core/css/StyleSheetContents.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698