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

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

Issue 16736004: Stylesheet rule.cssText of content property should be quoted when the value is string. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/CSSValueList.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 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 CSSValue* item(size_t index) { return index < m_values.size() ? m_values[ind ex].get() : 0; } 52 CSSValue* item(size_t index) { return index < m_values.size() ? m_values[ind ex].get() : 0; }
53 const CSSValue* item(size_t index) const { return index < m_values.size() ? m_values[index].get() : 0; } 53 const CSSValue* item(size_t index) const { return index < m_values.size() ? m_values[index].get() : 0; }
54 CSSValue* itemWithoutBoundsCheck(size_t index) { return m_values[index].get( ); } 54 CSSValue* itemWithoutBoundsCheck(size_t index) { return m_values[index].get( ); }
55 55
56 void append(PassRefPtr<CSSValue> value) { m_values.append(value); } 56 void append(PassRefPtr<CSSValue> value) { m_values.append(value); }
57 void prepend(PassRefPtr<CSSValue> value) { m_values.prepend(value); } 57 void prepend(PassRefPtr<CSSValue> value) { m_values.prepend(value); }
58 bool removeAll(CSSValue*); 58 bool removeAll(CSSValue*);
59 bool hasValue(CSSValue*) const; 59 bool hasValue(CSSValue*) const;
60 PassRefPtr<CSSValueList> copy(); 60 PassRefPtr<CSSValueList> copy();
61 61
62 String customCssText() const; 62 String customCssText(CssTextFormattingFlags = QuoteCSSStringIfNeeded) const;
63 bool equals(const CSSValueList&) const; 63 bool equals(const CSSValueList&) const;
64 bool equals(const CSSValue&) const; 64 bool equals(const CSSValue&) const;
65 String customSerializeResolvingVariables(const HashMap<AtomicString, String> &) const; 65 String customSerializeResolvingVariables(const HashMap<AtomicString, String> &) const;
66 66
67 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*) const; 67 void addSubresourceStyleURLs(ListHashSet<KURL>&, const StyleSheetContents*) const;
68 68
69 bool hasFailedOrCanceledSubresources() const; 69 bool hasFailedOrCanceledSubresources() const;
70 70
71 PassRefPtr<CSSValueList> cloneForCSSOM() const; 71 PassRefPtr<CSSValueList> cloneForCSSOM() const;
72 72
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 void advance() { m_position++; ASSERT(m_position <= m_inspector.length());} 123 void advance() { m_position++; ASSERT(m_position <= m_inspector.length());}
124 size_t index() const { return m_position; } 124 size_t index() const { return m_position; }
125 private: 125 private:
126 CSSValueListInspector m_inspector; 126 CSSValueListInspector m_inspector;
127 size_t m_position; 127 size_t m_position;
128 }; 128 };
129 129
130 } // namespace WebCore 130 } // namespace WebCore
131 131
132 #endif // CSSValueList_h 132 #endif // CSSValueList_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSValue.h ('k') | Source/core/css/CSSValueList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698