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

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

Issue 15660004: Reporing invalid CSS selectors. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/inspector/InspectorCSSAgent.h » ('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) 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 * 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } 63 }
64 } 64 }
65 65
66 void clear() 66 void clear()
67 { 67 {
68 m_data.characters8 = 0; 68 m_data.characters8 = 0;
69 m_length = 0; 69 m_length = 0;
70 m_is8Bit = false; 70 m_is8Bit = false;
71 } 71 }
72 72
73 void trimTrailingWhitespace();
74
73 bool is8Bit() const { return m_is8Bit; } 75 bool is8Bit() const { return m_is8Bit; }
74 const LChar* characters8() const { ASSERT(is8Bit()); return m_data.character s8; } 76 const LChar* characters8() const { ASSERT(is8Bit()); return m_data.character s8; }
75 const UChar* characters16() const { ASSERT(!is8Bit()); return m_data.charact ers16; } 77 const UChar* characters16() const { ASSERT(!is8Bit()); return m_data.charact ers16; }
76 template <typename CharacterType> 78 template <typename CharacterType>
77 const CharacterType* characters() const; 79 const CharacterType* characters() const;
78 80
79 unsigned length() const { return m_length; } 81 unsigned length() const { return m_length; }
80 void setLength(unsigned length) { m_length = length; } 82 void setLength(unsigned length) { m_length = length; }
81 83
82 UChar operator[](unsigned i) const 84 UChar operator[](unsigned i) const
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 }; 229 };
228 230
229 inline bool CSSParserSelector::hasShadowPseudo() const 231 inline bool CSSParserSelector::hasShadowPseudo() const
230 { 232 {
231 return m_selector->relation() == CSSSelector::ShadowPseudo; 233 return m_selector->relation() == CSSSelector::ShadowPseudo;
232 } 234 }
233 235
234 } 236 }
235 237
236 #endif 238 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/inspector/InspectorCSSAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698