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

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

Issue 182063004: Rename adoptRefCountedWillBeRefCountedGarbageCollected to adoptRefWillBeRefCountedGarbageCollected (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/CSSKeyframesRule.cpp ('k') | Source/core/css/CSSMediaRule.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) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 24 matching lines...) Expand all
35 35
36 enum LineBoxContainFlags { LineBoxContainNone = 0x0, LineBoxContainBlock = 0x1, LineBoxContainInline = 0x2, LineBoxContainFont = 0x4, LineBoxContainGlyphs = 0x8 , 36 enum LineBoxContainFlags { LineBoxContainNone = 0x0, LineBoxContainBlock = 0x1, LineBoxContainInline = 0x2, LineBoxContainFont = 0x4, LineBoxContainGlyphs = 0x8 ,
37 LineBoxContainReplaced = 0x10, LineBoxContainInlineBo x = 0x20 }; 37 LineBoxContainReplaced = 0x10, LineBoxContainInlineBo x = 0x20 };
38 typedef unsigned LineBoxContain; 38 typedef unsigned LineBoxContain;
39 39
40 // Used for text-CSSLineBoxContain and box-CSSLineBoxContain 40 // Used for text-CSSLineBoxContain and box-CSSLineBoxContain
41 class CSSLineBoxContainValue : public CSSValue { 41 class CSSLineBoxContainValue : public CSSValue {
42 public: 42 public:
43 static PassRefPtrWillBeRawPtr<CSSLineBoxContainValue> create(LineBoxContain value) 43 static PassRefPtrWillBeRawPtr<CSSLineBoxContainValue> create(LineBoxContain value)
44 { 44 {
45 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSLineBoxCon tainValue(value)); 45 return adoptRefWillBeRefCountedGarbageCollected(new CSSLineBoxContainVal ue(value));
46 } 46 }
47 47
48 String customCSSText() const; 48 String customCSSText() const;
49 bool equals(const CSSLineBoxContainValue& other) const { return m_value == o ther.m_value; } 49 bool equals(const CSSLineBoxContainValue& other) const { return m_value == o ther.m_value; }
50 LineBoxContain value() const { return m_value; } 50 LineBoxContain value() const { return m_value; }
51 51
52 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); } 52 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); }
53 53
54 private: 54 private:
55 LineBoxContain m_value; 55 LineBoxContain m_value;
56 56
57 private: 57 private:
58 explicit CSSLineBoxContainValue(LineBoxContain); 58 explicit CSSLineBoxContainValue(LineBoxContain);
59 }; 59 };
60 60
61 DEFINE_CSS_VALUE_TYPE_CASTS(CSSLineBoxContainValue, isLineBoxContainValue()); 61 DEFINE_CSS_VALUE_TYPE_CASTS(CSSLineBoxContainValue, isLineBoxContainValue());
62 62
63 } // namespace 63 } // namespace
64 64
65 #endif 65 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSKeyframesRule.cpp ('k') | Source/core/css/CSSMediaRule.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698