OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 if (!pageSpecification.isEmpty() && pageSpecification != starAtom) { | 63 if (!pageSpecification.isEmpty() && pageSpecification != starAtom) { |
64 text.append(' '); | 64 text.append(' '); |
65 text.append(pageSpecification); | 65 text.append(pageSpecification); |
66 } | 66 } |
67 } | 67 } |
68 return text.toString(); | 68 return text.toString(); |
69 } | 69 } |
70 | 70 |
71 void CSSPageRule::setSelectorText(const String& selectorText) | 71 void CSSPageRule::setSelectorText(const String& selectorText) |
72 { | 72 { |
73 CSSParserContext context(parserContext(), 0); | 73 CSSParserContext context(parserContext(), 0, 0); |
74 CSSSelectorList selectorList; | 74 CSSSelectorList selectorList; |
75 CSSParser::parseSelector(context, selectorText, selectorList); | 75 CSSParser::parseSelector(context, selectorText, selectorList); |
76 if (!selectorList.isValid()) | 76 if (!selectorList.isValid()) |
77 return; | 77 return; |
78 | 78 |
79 CSSStyleSheet::RuleMutationScope mutationScope(this); | 79 CSSStyleSheet::RuleMutationScope mutationScope(this); |
80 | 80 |
81 m_pageRule->wrapperAdoptSelectorList(selectorList); | 81 m_pageRule->wrapperAdoptSelectorList(selectorList); |
82 } | 82 } |
83 | 83 |
(...skipping 19 matching lines...) Expand all Loading... |
103 } | 103 } |
104 | 104 |
105 DEFINE_TRACE(CSSPageRule) | 105 DEFINE_TRACE(CSSPageRule) |
106 { | 106 { |
107 visitor->trace(m_pageRule); | 107 visitor->trace(m_pageRule); |
108 visitor->trace(m_propertiesCSSOMWrapper); | 108 visitor->trace(m_propertiesCSSOMWrapper); |
109 CSSRule::trace(visitor); | 109 CSSRule::trace(visitor); |
110 } | 110 } |
111 | 111 |
112 } // namespace blink | 112 } // namespace blink |
OLD | NEW |