From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/WebCore/css/CSSReflectValue.h | 37 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 21 deletions(-) (limited to 'Source/WebCore/css/CSSReflectValue.h') diff --git a/Source/WebCore/css/CSSReflectValue.h b/Source/WebCore/css/CSSReflectValue.h index 544c2341c..678bcdd4d 100644 --- a/Source/WebCore/css/CSSReflectValue.h +++ b/Source/WebCore/css/CSSReflectValue.h @@ -13,7 +13,7 @@ * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -23,52 +23,47 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CSSReflectValue_h -#define CSSReflectValue_h +#pragma once #include "CSSReflectionDirection.h" #include "CSSValue.h" -#include #include namespace WebCore { class CSSPrimitiveValue; -class CSSReflectValue : public CSSValue { +class CSSReflectValue final : public CSSValue { public: - static PassRef create(PassRefPtr direction, - PassRefPtr offset, PassRefPtr mask) + static Ref create(Ref&& direction, Ref&& offset, RefPtr&& mask) { - return adoptRef(*new CSSReflectValue(direction, offset, mask)); + return adoptRef(*new CSSReflectValue(WTFMove(direction), WTFMove(offset), WTFMove(mask))); } - CSSPrimitiveValue* direction() const { return m_direction.get(); } - CSSPrimitiveValue* offset() const { return m_offset.get(); } + CSSPrimitiveValue& direction() { return m_direction.get(); } + CSSPrimitiveValue& offset() { return m_offset.get(); } + const CSSPrimitiveValue& direction() const { return m_direction.get(); } + const CSSPrimitiveValue& offset() const { return m_offset.get(); } CSSValue* mask() const { return m_mask.get(); } String customCSSText() const; - void addSubresourceStyleURLs(ListHashSet&, const StyleSheetContents*) const; - bool equals(const CSSReflectValue&) const; private: - CSSReflectValue(PassRefPtr direction, PassRefPtr offset, PassRefPtr mask) + CSSReflectValue(Ref&& direction, Ref&& offset, RefPtr&& mask) : CSSValue(ReflectClass) - , m_direction(direction) - , m_offset(offset) - , m_mask(mask) + , m_direction(WTFMove(direction)) + , m_offset(WTFMove(offset)) + , m_mask(WTFMove(mask)) { } - RefPtr m_direction; - RefPtr m_offset; + Ref m_direction; + Ref m_offset; RefPtr m_mask; }; -CSS_VALUE_TYPE_CASTS(CSSReflectValue, isReflectValue()) - } // namespace WebCore -#endif // CSSReflectValue_h +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSReflectValue, isReflectValue()) -- cgit v1.2.1