|
Lines 39-48
public:
a/Source/WebCore/css/Pair.h_sec1
|
| 39 |
Coalesce |
39 |
Coalesce |
| 40 |
}; |
40 |
}; |
| 41 |
|
41 |
|
| 42 |
static Ref<Pair> create() |
|
|
| 43 |
{ |
| 44 |
return adoptRef(*new Pair); |
| 45 |
} |
| 46 |
static Ref<Pair> create(RefPtr<CSSPrimitiveValue>&& first, RefPtr<CSSPrimitiveValue>&& second) |
42 |
static Ref<Pair> create(RefPtr<CSSPrimitiveValue>&& first, RefPtr<CSSPrimitiveValue>&& second) |
| 47 |
{ |
43 |
{ |
| 48 |
return adoptRef(*new Pair(WTF::move(first), WTF::move(second))); |
44 |
return adoptRef(*new Pair(WTF::move(first), WTF::move(second))); |
|
Lines 56-64
public:
a/Source/WebCore/css/Pair.h_sec2
|
| 56 |
CSSPrimitiveValue* first() const { return m_first.get(); } |
52 |
CSSPrimitiveValue* first() const { return m_first.get(); } |
| 57 |
CSSPrimitiveValue* second() const { return m_second.get(); } |
53 |
CSSPrimitiveValue* second() const { return m_second.get(); } |
| 58 |
|
54 |
|
| 59 |
void setFirst(RefPtr<CSSPrimitiveValue>&& first) { m_first = WTF::move(first); } |
|
|
| 60 |
void setSecond(RefPtr<CSSPrimitiveValue>&& second) { m_second = WTF::move(second); } |
| 61 |
|
| 62 |
String cssText() const |
55 |
String cssText() const |
| 63 |
{ |
56 |
{ |
| 64 |
String first = this->first()->cssText(); |
57 |
String first = this->first()->cssText(); |
|
Lines 71-77
public:
a/Source/WebCore/css/Pair.h_sec3
|
| 71 |
bool equals(const Pair& other) const { return compareCSSValuePtr(m_first, other.m_first) && compareCSSValuePtr(m_second, other.m_second); } |
64 |
bool equals(const Pair& other) const { return compareCSSValuePtr(m_first, other.m_first) && compareCSSValuePtr(m_second, other.m_second); } |
| 72 |
|
65 |
|
| 73 |
private: |
66 |
private: |
| 74 |
Pair() : m_first(nullptr), m_second(nullptr) { } |
|
|
| 75 |
Pair(RefPtr<CSSPrimitiveValue>&& first, RefPtr<CSSPrimitiveValue>&& second) : m_first(WTF::move(first)), m_second(WTF::move(second)) { } |
67 |
Pair(RefPtr<CSSPrimitiveValue>&& first, RefPtr<CSSPrimitiveValue>&& second) : m_first(WTF::move(first)), m_second(WTF::move(second)) { } |
| 76 |
Pair(RefPtr<CSSPrimitiveValue>&& first, RefPtr<CSSPrimitiveValue>&& second, IdenticalValueEncoding encoding) : m_first(WTF::move(first)), m_second(WTF::move(second)), m_encoding(encoding) { } |
68 |
Pair(RefPtr<CSSPrimitiveValue>&& first, RefPtr<CSSPrimitiveValue>&& second, IdenticalValueEncoding encoding) : m_first(WTF::move(first)), m_second(WTF::move(second)), m_encoding(encoding) { } |
| 77 |
|
69 |
|