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

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

Issue 183853035: Renamed /shadow-all/ to /shadow/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/CSSGrammar.y ('k') | Source/core/css/CSSSelector.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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 UChar operator[](unsigned i) const 91 UChar operator[](unsigned i) const
92 { 92 {
93 ASSERT_WITH_SECURITY_IMPLICATION(i < m_length); 93 ASSERT_WITH_SECURITY_IMPLICATION(i < m_length);
94 if (is8Bit()) 94 if (is8Bit())
95 return m_data.characters8[i]; 95 return m_data.characters8[i];
96 return m_data.characters16[i]; 96 return m_data.characters16[i];
97 } 97 }
98 98
99 bool equalIgnoringCase(const char* str) const 99 bool equalIgnoringCase(const char* str) const
100 { 100 {
101 if (is8Bit()) 101 bool match = is8Bit() ? WTF::equalIgnoringCase(str, characters8(), lengt h()) : WTF::equalIgnoringCase(str, characters16(), length());
102 return WTF::equalIgnoringCase(str, characters8(), length()); 102 return match ? str[length()] == '\0' : false;
dglazkov 2014/03/06 18:35:03 We shouldn't wallpaper of what looks like a bug in
adamk 2014/03/06 22:42:18 Seems like you this function should just start wit
tasak 2014/03/07 05:08:18 Yeah. So is it ok to use strlen? I think, strlen(
103 return WTF::equalIgnoringCase(str, characters16(), length());
104 } 103 }
105 104
106 template <size_t strLength> 105 template <size_t strLength>
107 bool startsWithIgnoringCase(const char (&str)[strLength]) const 106 bool startsWithIgnoringCase(const char (&str)[strLength]) const
108 { 107 {
109 return startsWithIgnoringCase(str, strLength - 1); 108 return startsWithIgnoringCase(str, strLength - 1);
110 } 109 }
111 110
112 bool startsWithIgnoringCase(const char* str, size_t strLength) const 111 bool startsWithIgnoringCase(const char* str, size_t strLength) const
113 { 112 {
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valu eList) 278 inline void CSSParserValue::setFromValueList(PassOwnPtr<CSSParserValueList> valu eList)
280 { 279 {
281 id = CSSValueInvalid; 280 id = CSSValueInvalid;
282 this->valueList = valueList.leakPtr(); 281 this->valueList = valueList.leakPtr();
283 unit = ValueList; 282 unit = ValueList;
284 } 283 }
285 284
286 } 285 }
287 286
288 #endif 287 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSGrammar.y ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698