|
Lines 4-9
a/Source/WebCore/rendering/style/RenderStyle.h_sec1
|
| 4 |
* (C) 2000 Dirk Mueller (mueller@kde.org) |
4 |
* (C) 2000 Dirk Mueller (mueller@kde.org) |
| 5 |
* Copyright (C) 2003-2017 Apple Inc. All rights reserved. |
5 |
* Copyright (C) 2003-2017 Apple Inc. All rights reserved. |
| 6 |
* Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
6 |
* Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
|
|
7 |
* Copyright (C) 2019 Adobe. All rights reserved. |
| 7 |
* |
8 |
* |
| 8 |
* This library is free software; you can redistribute it and/or |
9 |
* This library is free software; you can redistribute it and/or |
| 9 |
* modify it under the terms of the GNU Library General Public |
10 |
* modify it under the terms of the GNU Library General Public |
|
Lines 643-648
public:
a/Source/WebCore/rendering/style/RenderStyle.h_sec2
|
| 643 |
ObjectFit objectFit() const { return static_cast<ObjectFit>(m_rareNonInheritedData->objectFit); } |
644 |
ObjectFit objectFit() const { return static_cast<ObjectFit>(m_rareNonInheritedData->objectFit); } |
| 644 |
LengthPoint objectPosition() const { return m_rareNonInheritedData->objectPosition; } |
645 |
LengthPoint objectPosition() const { return m_rareNonInheritedData->objectPosition; } |
| 645 |
|
646 |
|
|
|
647 |
BasicShape* offsetPath() const { return m_rareNonInheritedData->offsetPath.get(); } |
| 648 |
const Length& offsetDistance() const { return m_rareNonInheritedData->offsetDistance; } |
| 649 |
|
| 646 |
// Return true if any transform related property (currently transform, transformStyle3D or perspective) |
650 |
// Return true if any transform related property (currently transform, transformStyle3D or perspective) |
| 647 |
// indicates that we are transforming. |
651 |
// indicates that we are transforming. |
| 648 |
bool hasTransformRelatedProperty() const { return hasTransform() || preserves3D() || hasPerspective(); } |
652 |
bool hasTransformRelatedProperty() const { return hasTransform() || preserves3D() || hasPerspective(); } |
|
Lines 1167-1172
public:
a/Source/WebCore/rendering/style/RenderStyle.h_sec3
|
| 1167 |
void setObjectFit(ObjectFit fit) { SET_VAR(m_rareNonInheritedData, objectFit, static_cast<unsigned>(fit)); } |
1171 |
void setObjectFit(ObjectFit fit) { SET_VAR(m_rareNonInheritedData, objectFit, static_cast<unsigned>(fit)); } |
| 1168 |
void setObjectPosition(LengthPoint&& position) { SET_VAR(m_rareNonInheritedData, objectPosition, WTFMove(position)); } |
1172 |
void setObjectPosition(LengthPoint&& position) { SET_VAR(m_rareNonInheritedData, objectPosition, WTFMove(position)); } |
| 1169 |
|
1173 |
|
|
|
1174 |
void setOffsetPath(RefPtr<BasicShape>&&); |
| 1175 |
void setOffsetDistance(Length&& offsetDistance) { SET_VAR(m_rareNonInheritedData, offsetDistance, WTFMove(offsetDistance)); } |
| 1176 |
|
| 1170 |
void setRubyPosition(RubyPosition position) { SET_VAR(m_rareInheritedData, rubyPosition, static_cast<unsigned>(position)); } |
1177 |
void setRubyPosition(RubyPosition position) { SET_VAR(m_rareInheritedData, rubyPosition, static_cast<unsigned>(position)); } |
| 1171 |
|
1178 |
|
| 1172 |
#if ENABLE(DARK_MODE_CSS) |
1179 |
#if ENABLE(DARK_MODE_CSS) |
|
Lines 1468-1473
public:
a/Source/WebCore/rendering/style/RenderStyle.h_sec4
|
| 1468 |
static TextOrientation initialTextOrientation() { return TextOrientation::Mixed; } |
1475 |
static TextOrientation initialTextOrientation() { return TextOrientation::Mixed; } |
| 1469 |
static ObjectFit initialObjectFit() { return ObjectFit::Fill; } |
1476 |
static ObjectFit initialObjectFit() { return ObjectFit::Fill; } |
| 1470 |
static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0f, Percent), Length(50.0f, Percent)); } |
1477 |
static LengthPoint initialObjectPosition() { return LengthPoint(Length(50.0f, Percent), Length(50.0f, Percent)); } |
|
|
1478 |
static BasicShape* initialOffsetPath() { return nullptr; } |
| 1479 |
static Length initialOffsetDistance() { return Length(0, Fixed); } |
| 1471 |
static EmptyCell initialEmptyCells() { return EmptyCell::Show; } |
1480 |
static EmptyCell initialEmptyCells() { return EmptyCell::Show; } |
| 1472 |
static ListStylePosition initialListStylePosition() { return ListStylePosition::Outside; } |
1481 |
static ListStylePosition initialListStylePosition() { return ListStylePosition::Outside; } |
| 1473 |
static ListStyleType initialListStyleType() { return ListStyleType::Disc; } |
1482 |
static ListStyleType initialListStyleType() { return ListStyleType::Disc; } |
|
Lines 2202-2207
inline void RenderStyle::setClipPath(RefPtr<ClipPathOperation>&& operation)
a/Source/WebCore/rendering/style/RenderStyle.h_sec5
|
| 2202 |
m_rareNonInheritedData.access().clipPath = WTFMove(operation); |
2211 |
m_rareNonInheritedData.access().clipPath = WTFMove(operation); |
| 2203 |
} |
2212 |
} |
| 2204 |
|
2213 |
|
|
|
2214 |
inline void RenderStyle::setOffsetPath(RefPtr<BasicShape>&& basicShape) |
| 2215 |
{ |
| 2216 |
if (m_rareNonInheritedData->offsetPath != basicShape) |
| 2217 |
m_rareNonInheritedData.access().offsetPath = WTFMove(basicShape); |
| 2218 |
} |
| 2219 |
|
| 2205 |
inline bool RenderStyle::willChangeCreatesStackingContext() const |
2220 |
inline bool RenderStyle::willChangeCreatesStackingContext() const |
| 2206 |
{ |
2221 |
{ |
| 2207 |
return willChange() && willChange()->canCreateStackingContext(); |
2222 |
return willChange() && willChange()->canCreateStackingContext(); |