https://bugs.webkit.org/show_bug.cgi?id=189576
Reviewed by Alex Christensen.
Old MSVC can't compile "friend class LazyNeverDestroyed<X>"
statements, but "friend LazyNeverDestroyed<X>".
No new tests (No behavior change).
* css/CSSInheritedValue.h: Removed the code for COMPILER(MSVC).
Removed 'class' keyword in "friend class LazyNeverDestroyed<X>"
statement.
* css/CSSInitialValue.h: Ditto.
* css/CSSPrimitiveValue.h: Ditto.
* css/CSSRevertValue.h: Ditto.
* css/CSSUnsetValue.h: Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235986
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2018-09-13 Fujii Hironori <Hironori.Fujii@sony.com>
+
+ Remove the workaround for friend class LazyNeverDestroyed<X> statements for MSVC
+ https://bugs.webkit.org/show_bug.cgi?id=189576
+
+ Reviewed by Alex Christensen.
+
+ Old MSVC can't compile "friend class LazyNeverDestroyed<X>"
+ statements, but "friend LazyNeverDestroyed<X>".
+
+ No new tests (No behavior change).
+
+ * css/CSSInheritedValue.h: Removed the code for COMPILER(MSVC).
+ Removed 'class' keyword in "friend class LazyNeverDestroyed<X>"
+ statement.
+ * css/CSSInitialValue.h: Ditto.
+ * css/CSSPrimitiveValue.h: Ditto.
+ * css/CSSRevertValue.h: Ditto.
+ * css/CSSUnsetValue.h: Ditto.
+
2018-09-13 Ms2ger <Ms2ger@igalia.com>
[GLib] Fix format string in KeyedEncoderGlib::beginObject().
bool equals(const CSSInheritedValue&) const { return true; }
-#if COMPILER(MSVC)
- // FIXME: This should be private, but for some reason MSVC then fails to invoke it from LazyNeverDestroyed::construct.
-public:
-#else
private:
- friend class LazyNeverDestroyed<CSSInheritedValue>;
-#endif
+ friend LazyNeverDestroyed<CSSInheritedValue>;
CSSInheritedValue()
: CSSValue(InheritedClass)
{
bool equals(const CSSInitialValue&) const { return true; }
-#if COMPILER(MSVC)
- // FIXME: This should be private, but for some reason MSVC then fails to invoke it from LazyNeverDestroyed::construct.
-public:
-#else
private:
- friend class LazyNeverDestroyed<CSSInitialValue>;
-#endif
+ friend LazyNeverDestroyed<CSSInitialValue>;
CSSInitialValue(bool implicit)
: CSSValue(InitialClass)
, m_isImplicit(implicit)
Ref<DeprecatedCSSOMPrimitiveValue> createDeprecatedCSSOMPrimitiveWrapper(CSSStyleDeclaration&) const;
-#if COMPILER(MSVC)
- // FIXME: This should be private, but for some reason MSVC then fails to invoke it from LazyNeverDestroyed::construct.
-public:
-#else
private:
friend class CSSValuePool;
- friend class LazyNeverDestroyed<CSSPrimitiveValue>;
-#endif
+ friend LazyNeverDestroyed<CSSPrimitiveValue>;
CSSPrimitiveValue(CSSValueID);
CSSPrimitiveValue(CSSPropertyID);
bool equals(const CSSRevertValue&) const { return true; }
-#if COMPILER(MSVC)
- // FIXME: This should be private, but for some reason MSVC then fails to invoke it from LazyNeverDestroyed::construct.
-public:
-#else
private:
- friend class LazyNeverDestroyed<CSSRevertValue>;
-#endif
+ friend LazyNeverDestroyed<CSSRevertValue>;
CSSRevertValue()
: CSSValue(RevertClass)
{
bool equals(const CSSUnsetValue&) const { return true; }
-#if COMPILER(MSVC)
- // FIXME: This should be private, but for some reason MSVC then fails to invoke it from LazyNeverDestroyed::construct.
-public:
-#else
private:
- friend class LazyNeverDestroyed<CSSUnsetValue>;
-#endif
+ friend LazyNeverDestroyed<CSSUnsetValue>;
CSSUnsetValue()
: CSSValue(UnsetClass)
{