diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/css/CSSLineBoxContainValue.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/css/CSSLineBoxContainValue.h')
-rw-r--r-- | Source/WebCore/css/CSSLineBoxContainValue.h | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/Source/WebCore/css/CSSLineBoxContainValue.h b/Source/WebCore/css/CSSLineBoxContainValue.h index fa3aefd50..248b2337e 100644 --- a/Source/WebCore/css/CSSLineBoxContainValue.h +++ b/Source/WebCore/css/CSSLineBoxContainValue.h @@ -23,11 +23,9 @@ * THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef CSSLineBoxContainValue_h -#define CSSLineBoxContainValue_h +#pragma once #include "CSSValue.h" -#include <wtf/PassRefPtr.h> #include <wtf/RefPtr.h> namespace WebCore { @@ -35,13 +33,13 @@ namespace WebCore { class CSSPrimitiveValue; enum LineBoxContainFlags { LineBoxContainNone = 0x0, LineBoxContainBlock = 0x1, LineBoxContainInline = 0x2, LineBoxContainFont = 0x4, LineBoxContainGlyphs = 0x8, - LineBoxContainReplaced = 0x10, LineBoxContainInlineBox = 0x20 }; + LineBoxContainReplaced = 0x10, LineBoxContainInlineBox = 0x20, LineBoxContainInitialLetter = 0x40 }; typedef unsigned LineBoxContain; // Used for text-CSSLineBoxContain and box-CSSLineBoxContain -class CSSLineBoxContainValue : public CSSValue { +class CSSLineBoxContainValue final : public CSSValue { public: - static PassRef<CSSLineBoxContainValue> create(LineBoxContain value) + static Ref<CSSLineBoxContainValue> create(LineBoxContain value) { return adoptRef(*new CSSLineBoxContainValue(value)); } @@ -56,8 +54,6 @@ private: LineBoxContain m_value; }; -CSS_VALUE_TYPE_CASTS(CSSLineBoxContainValue, isLineBoxContainValue()) +} // namespace WebCore -} // namespace - -#endif +SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSLineBoxContainValue, isLineBoxContainValue()) |