source: webkit/trunk/Source/WebCore/css/CSSReflectValue.cpp

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

Remove excessive includes from WebCore/css sources
https://bugs.webkit.org/show_bug.cgi?id=173919

Reviewed by Simon Fraser.

No new tests needed.

  • css/CSSCanvasValue.cpp:
  • css/CSSComputedStyleDeclaration.cpp:
  • css/CSSContentDistributionValue.cpp:
  • css/CSSCrossfadeValue.cpp:
  • css/CSSCursorImageValue.cpp:
  • css/CSSCustomPropertyValue.cpp:
  • css/CSSDefaultStyleSheets.cpp:
  • css/CSSFilterImageValue.cpp:
  • css/CSSFontFace.cpp:
  • css/CSSFontFaceSet.cpp:
  • css/CSSFontFaceSource.cpp:
  • css/CSSFontFaceSrcValue.cpp:
  • css/CSSFontFeatureValue.cpp:
  • css/CSSFontSelector.cpp:
  • css/CSSFontValue.cpp:
  • css/CSSImageGeneratorValue.cpp:
  • css/CSSImageSetValue.cpp:
  • css/CSSImageValue.cpp:
  • css/CSSImportRule.cpp:
  • css/CSSKeyframesRule.cpp:
  • css/CSSMediaRule.cpp:
  • css/CSSNamedImageValue.cpp:
  • css/CSSPrimitiveValue.cpp:
  • css/CSSProperty.cpp:
  • css/CSSPropertySourceData.cpp:
  • css/CSSReflectValue.cpp:
  • css/CSSRuleList.cpp:
  • css/CSSSegmentedFontFace.cpp:
  • css/CSSSelector.cpp:
  • css/CSSStyleRule.cpp:
  • css/CSSStyleSheet.cpp:
  • css/CSSSupportsRule.cpp:
  • css/CSSToStyleMap.cpp:
  • css/CSSValueList.cpp:
  • css/CSSValuePool.cpp:
  • css/CSSVariableData.cpp:
  • css/ElementRuleCollector.cpp:
  • css/InspectorCSSOMWrappers.cpp:
  • css/MediaList.cpp:
  • css/MediaQueryEvaluator.cpp:
  • css/MediaQueryExpression.cpp:
  • css/PropertySetCSSStyleDeclaration.cpp:
  • css/RGBColor.cpp:
  • css/SelectorChecker.cpp:
  • css/StyleProperties.cpp:
  • css/StyleResolver.cpp:
  • css/StyleRule.cpp:
  • css/StyleSheetContents.cpp:
  • css/TransformFunctions.cpp:
  • css/ViewportStyleResolver.cpp:
  • css/WebKitCSSRegionRule.cpp:
  • css/parser/CSSParser.cpp:
  • css/parser/CSSParserFastPaths.cpp:
  • css/parser/CSSParserIdioms.cpp:
  • css/parser/CSSParserSelector.cpp:
  • css/parser/CSSParserToken.cpp:
  • css/parser/CSSPropertyParser.cpp:
  • css/parser/CSSSelectorParser.cpp:
  • css/parser/MediaQueryParser.cpp:
  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/*
2 * Copyright (C) 2008 Apple 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#include "config.h"
27#include "CSSReflectValue.h"
28
29#include "CSSPrimitiveValue.h"
30
31namespace WebCore {
32
33String CSSReflectValue::customCSSText() const
34{
35 if (m_mask)
36 return m_direction->cssText() + ' ' + m_offset->cssText() + ' ' + m_mask->cssText();
37 return m_direction->cssText() + ' ' + m_offset->cssText();
38}
39
40bool CSSReflectValue::equals(const CSSReflectValue& other) const
41{
42 return m_direction.ptr() == other.m_direction.ptr()
43 && compareCSSValue(m_offset, other.m_offset)
44 && compareCSSValuePtr(m_mask, other.m_mask);
45}
46
47} // namespace WebCore
Note: See TracBrowser for help on using the repository browser.