source: webkit/trunk/Source/WebCore/css/CSSFontFeatureValue.h

Last change on this file was 218755, checked in by Konstantin Tokarev, 8 years ago

Remove excessive headers from WebCore/{bindings,css,dom}
https://bugs.webkit.org/show_bug.cgi?id=173766

Reviewed by Simon Fraser.

Source/WebCore:

No new tests needed.

  • ForwardingHeaders/runtime/ThrowScope.h: Added.
  • Modules/plugins/QuickTimePluginReplacement.mm:
  • bindings/js/CachedScriptSourceProvider.h:
  • bindings/js/JSCommandLineAPIHostCustom.cpp:
  • bindings/js/JSCustomXPathNSResolver.cpp:
  • bindings/js/JSDOMConstructorNotConstructable.h:
  • bindings/js/JSDOMConvertBase.h:
  • bindings/js/JSDOMConvertBufferSource.h:
  • bindings/js/JSDOMConvertInterface.h:
  • bindings/js/JSDOMConvertStrings.h:
  • bindings/js/JSDOMConvertUnion.h:
  • bindings/js/JSDOMConvertVariadic.h:
  • bindings/js/JSDOMConvertWebGL.h:
  • bindings/js/JSDOMExceptionHandling.h:
  • bindings/js/JSDOMIterator.h:
  • bindings/js/JSDOMMapLike.h:
  • bindings/js/JSDOMWindowBase.cpp:
  • bindings/js/JSDOMWindowCustom.cpp:
  • bindings/js/JSDOMWindowCustom.h:
  • bindings/js/JSDOMWindowProperties.h:
  • bindings/js/JSDOMWrapperCache.h:
  • bindings/js/JSLazyEventListener.cpp:
  • bindings/js/JSMainThreadExecStateInstrumentation.h:
  • bindings/js/JSMediaListCustom.h:
  • bindings/js/JSNodeCustom.h:
  • bindings/js/JSNodeListCustom.h:
  • bindings/js/JSVideoTrackListCustom.cpp:
  • bindings/js/ScheduledAction.h:
  • bindings/js/ScriptSourceCode.h:
  • bindings/js/SerializedScriptValue.h:
  • bindings/js/WebCoreJSClientData.h:
  • css/CSSFontFeatureValue.h:
  • css/CSSPrimitiveValue.h:
  • css/CSSStyleSheet.h:
  • css/CSSValue.h:
  • css/StyleBuilderCustom.h:
  • dom/ContainerNodeAlgorithms.h:
  • dom/DataTransfer.h:
  • dom/Node.h:
  • dom/NodeRareData.h:
  • dom/Position.h:
  • dom/RenderedDocumentMarker.h:

Source/WebKit/mac:

  • DOM/DOMInternal.mm:
  • Property svn:eol-style set to native
File size: 2.0 KB
Line 
1/*
2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution.
12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26#pragma once
27
28#include "CSSValue.h"
29#include "FontTaggedSettings.h"
30
31namespace WebCore {
32
33class CSSFontFeatureValue final : public CSSValue {
34public:
35 static Ref<CSSFontFeatureValue> create(FontTag&& tag, int value)
36 {
37 return adoptRef(*new CSSFontFeatureValue(WTFMove(tag), value));
38 }
39
40 const FontTag& tag() const { return m_tag; }
41 int value() const { return m_value; }
42 String customCSSText() const;
43
44 bool equals(const CSSFontFeatureValue&) const;
45
46private:
47 CSSFontFeatureValue(FontTag&&, int);
48
49 FontTag m_tag;
50 const int m_value;
51};
52
53} // namespace WebCore
54
55SPECIALIZE_TYPE_TRAITS_CSS_VALUE(CSSFontFeatureValue, isFontFeatureValue())
Note: See TracBrowser for help on using the repository browser.