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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSSelector.h

Issue 1474213002: [PartitionAlloc] Annotate common Blink types for heap profiling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ctti
Patch Set: Mark template specialisations as WTF_EXPORT Created 5 years 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSValue.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) 1999-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * 1999 Waldo Bastian (bastian@kde.org) 3 * 1999 Waldo Bastian (bastian@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 // 68 //
69 // value() tells you the value of the simple selector. For example, for class se lectors, value() will tell you the class string, 69 // value() tells you the value of the simple selector. For example, for class se lectors, value() will tell you the class string,
70 // and for id selectors it will tell you the id(). See below for the special cas e of attribute selectors. 70 // and for id selectors it will tell you the id(). See below for the special cas e of attribute selectors.
71 // 71 //
72 // ** Attribute selectors. 72 // ** Attribute selectors.
73 // 73 //
74 // Attribute selectors return the attribute name in the attribute() method. The value() method returns the value matched against 74 // Attribute selectors return the attribute name in the attribute() method. The value() method returns the value matched against
75 // in case of selectors like [attr="value"]. 75 // in case of selectors like [attr="value"].
76 // 76 //
77 class CORE_EXPORT CSSSelector { 77 class CORE_EXPORT CSSSelector {
78 USING_FAST_MALLOC(CSSSelector); 78 USING_FAST_MALLOC_WITH_TYPE_NAME(blink::CSSSelector);
79 public: 79 public:
80 CSSSelector(); 80 CSSSelector();
81 CSSSelector(const CSSSelector&); 81 CSSSelector(const CSSSelector&);
82 explicit CSSSelector(const QualifiedName&, bool tagIsImplicit = false); 82 explicit CSSSelector(const QualifiedName&, bool tagIsImplicit = false);
83 83
84 ~CSSSelector(); 84 ~CSSSelector();
85 85
86 String selectorText(const String& rightSide = "") const; 86 String selectorText(const String& rightSide = "") const;
87 87
88 bool operator==(const CSSSelector&) const; 88 bool operator==(const CSSSelector&) const;
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 if (m_hasRareData) 463 if (m_hasRareData)
464 return m_data.m_rareData->m_value; 464 return m_data.m_rareData->m_value;
465 // AtomicString is really just a StringImpl* so the cast below is safe. 465 // AtomicString is really just a StringImpl* so the cast below is safe.
466 // FIXME: Perhaps call sites could be changed to accept StringImpl? 466 // FIXME: Perhaps call sites could be changed to accept StringImpl?
467 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 467 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
468 } 468 }
469 469
470 } // namespace blink 470 } // namespace blink
471 471
472 #endif // CSSSelector_h 472 #endif // CSSSelector_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/CSSValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698