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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.h

Issue 209433004: Do not zero-initialize RawPtr. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. 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
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 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d. 5 * Copyright (C) 2009 - 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserve d.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 const bool m_important; // FIXME: This is only used by font-face-src and uni code-range and undoubtably wrong! 375 const bool m_important; // FIXME: This is only used by font-face-src and uni code-range and undoubtably wrong!
376 376
377 // Outputs: 377 // Outputs:
378 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties; 378 WillBeHeapVector<CSSProperty, 256>& m_parsedProperties;
379 bool m_hasFontFaceOnlyValues; 379 bool m_hasFontFaceOnlyValues;
380 380
381 // Locals during parsing: 381 // Locals during parsing:
382 int m_inParseShorthand; 382 int m_inParseShorthand;
383 CSSPropertyID m_currentShorthand; 383 CSSPropertyID m_currentShorthand;
384 bool m_implicitShorthand; 384 bool m_implicitShorthand;
385 RefPtrWillBeRawPtr<CSSCalcValue> m_parsedCalculation; 385 RefPtrWillBeMember<CSSCalcValue> m_parsedCalculation;
386 386
387 // FIXME: There is probably a small set of APIs we could expose for these 387 // FIXME: There is probably a small set of APIs we could expose for these
388 // classes w/o needing to make them friends. 388 // classes w/o needing to make them friends.
389 friend class ShadowParseContext; 389 friend class ShadowParseContext;
390 friend class BorderImageParseContext; 390 friend class BorderImageParseContext;
391 friend class BorderImageSliceParseContext; 391 friend class BorderImageSliceParseContext;
392 friend class BorderImageQuadParseContext; 392 friend class BorderImageQuadParseContext;
393 friend class TransformOperationInfo; 393 friend class TransformOperationInfo;
394 friend bool parseDeprecatedGradientColorStop(CSSPropertyParser*, CSSParserVa lue*, CSSGradientColorStop&); 394 friend bool parseDeprecatedGradientColorStop(CSSPropertyParser*, CSSParserVa lue*, CSSGradientColorStop&);
395 friend PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGradientColorOrKeyword (CSSPropertyParser*, CSSParserValue*); 395 friend PassRefPtrWillBeRawPtr<CSSPrimitiveValue> parseGradientColorOrKeyword (CSSPropertyParser*, CSSParserValue*);
396 }; 396 };
397 397
398 CSSPropertyID cssPropertyID(const CSSParserString&); 398 CSSPropertyID cssPropertyID(const CSSParserString&);
399 CSSPropertyID cssPropertyID(const String&); 399 CSSPropertyID cssPropertyID(const String&);
400 CSSValueID cssValueKeywordID(const CSSParserString&); 400 CSSValueID cssValueKeywordID(const CSSParserString&);
401 401
402 bool isKeywordPropertyID(CSSPropertyID); 402 bool isKeywordPropertyID(CSSPropertyID);
403 bool isValidKeywordPropertyAndValue(CSSPropertyID, int valueID, const CSSParserC ontext&); 403 bool isValidKeywordPropertyAndValue(CSSPropertyID, int valueID, const CSSParserC ontext&);
404 404
405 } // namespace WebCore 405 } // namespace WebCore
406 406
407 #endif // CSSPropertyParser_h 407 #endif // CSSPropertyParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698