OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) | 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) |
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r
ights reserved. |
7 * Copyright (C) 2009 Google Inc. All rights reserved. | 7 * Copyright (C) 2009 Google Inc. All rights reserved. |
8 * | 8 * |
9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
710 bool isSelectionBorder() const; | 710 bool isSelectionBorder() const; |
711 | 711 |
712 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl
ip(); } | 712 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl
ip(); } |
713 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } | 713 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } |
714 bool hasClipRelatedProperty() const { return hasClip() || hasOverflowClip()
|| style()->containsPaint(); } | 714 bool hasClipRelatedProperty() const { return hasClip() || hasOverflowClip()
|| style()->containsPaint(); } |
715 | 715 |
716 bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRe
latedProperty(); } | 716 bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRe
latedProperty(); } |
717 bool hasMask() const { return style() && style()->hasMask(); } | 717 bool hasMask() const { return style() && style()->hasMask(); } |
718 bool hasClipPath() const { return style() && style()->clipPath(); } | 718 bool hasClipPath() const { return style() && style()->clipPath(); } |
719 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili
ty() == BackfaceVisibilityHidden; } | 719 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili
ty() == BackfaceVisibilityHidden; } |
| 720 bool hasBackdropFilter() const { return style() && style()->hasBackdropFilte
r(); } |
720 | 721 |
721 bool hasFilter() const { return style() && style()->hasFilter(); } | 722 // Returns |true| if any property that renders using filter operations is |
722 bool hasBackdropFilter() const { return style() && style()->hasBackdropFilte
r(); } | 723 // used (including, but not limited to, 'filter'). |
| 724 bool hasFilterInducingProperty() const |
| 725 { |
| 726 return (style() && style()->hasFilter()) || (RuntimeEnabledFeatures::css
BoxReflectFilterEnabled() && hasReflection()); |
| 727 } |
723 | 728 |
724 bool hasShapeOutside() const { return style() && style()->shapeOutside(); } | 729 bool hasShapeOutside() const { return style() && style()->shapeOutside(); } |
725 | 730 |
726 inline bool preservesNewline() const; | 731 inline bool preservesNewline() const; |
727 | 732 |
728 // The pseudo element style can be cached or uncached. Use the cached metho
d if the pseudo element doesn't respect | 733 // The pseudo element style can be cached or uncached. Use the cached metho
d if the pseudo element doesn't respect |
729 // any pseudo classes (and therefore has no concept of changing state). | 734 // any pseudo classes (and therefore has no concept of changing state). |
730 ComputedStyle* getCachedPseudoStyle(PseudoId, const ComputedStyle* parentSty
le = nullptr) const; | 735 ComputedStyle* getCachedPseudoStyle(PseudoId, const ComputedStyle* parentSty
le = nullptr) const; |
731 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(const PseudoStyleRequest&,
const ComputedStyle* parentStyle = nullptr, const ComputedStyle* ownStyle = null
ptr) const; | 736 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(const PseudoStyleRequest&,
const ComputedStyle* parentStyle = nullptr, const ComputedStyle* ownStyle = null
ptr) const; |
732 | 737 |
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1260 return mapAncestorToLocal(nullptr, transformState, flags); | 1265 return mapAncestorToLocal(nullptr, transformState, flags); |
1261 } | 1266 } |
1262 | 1267 |
1263 // Pushes state onto LayoutGeometryMap about how to map coordinates from thi
s layoutObject to its container, or ancestorToStopAt (whichever is encountered f
irst). | 1268 // Pushes state onto LayoutGeometryMap about how to map coordinates from thi
s layoutObject to its container, or ancestorToStopAt (whichever is encountered f
irst). |
1264 // Returns the layoutObject which was mapped to (container or ancestorToStop
At). | 1269 // Returns the layoutObject which was mapped to (container or ancestorToStop
At). |
1265 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec
t* ancestorToStopAt, LayoutGeometryMap&) const; | 1270 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec
t* ancestorToStopAt, LayoutGeometryMap&) const; |
1266 | 1271 |
1267 bool shouldUseTransformFromContainer(const LayoutObject* container) const; | 1272 bool shouldUseTransformFromContainer(const LayoutObject* container) const; |
1268 void getTransformFromContainer(const LayoutObject* container, const LayoutSi
ze& offsetInContainer, TransformationMatrix&) const; | 1273 void getTransformFromContainer(const LayoutObject* container, const LayoutSi
ze& offsetInContainer, TransformationMatrix&) const; |
1269 | 1274 |
1270 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
() || style()->hasBlendMode(); } | 1275 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter
InducingProperty() || style()->hasBlendMode(); } |
1271 | 1276 |
1272 // Collects rectangles that the outline of this object would be drawing alon
g the outside of, | 1277 // Collects rectangles that the outline of this object would be drawing alon
g the outside of, |
1273 // even if the object isn't styled with a outline for now. The rects also co
ver continuations. | 1278 // even if the object isn't styled with a outline for now. The rects also co
ver continuations. |
1274 enum IncludeBlockVisualOverflowOrNot { | 1279 enum IncludeBlockVisualOverflowOrNot { |
1275 DontIncludeBlockVisualOverflow, | 1280 DontIncludeBlockVisualOverflow, |
1276 IncludeBlockVisualOverflow, | 1281 IncludeBlockVisualOverflow, |
1277 }; | 1282 }; |
1278 virtual void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additio
nalOffset, IncludeBlockVisualOverflowOrNot) const { } | 1283 virtual void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additio
nalOffset, IncludeBlockVisualOverflowOrNot) const { } |
1279 | 1284 |
1280 // For history and compatibility reasons, we draw outline:auto (for focus ri
ngs) and normal style outline differently. | 1285 // For history and compatibility reasons, we draw outline:auto (for focus ri
ngs) and normal style outline differently. |
(...skipping 886 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2167 void showTree(const blink::LayoutObject*); | 2172 void showTree(const blink::LayoutObject*); |
2168 void showLineTree(const blink::LayoutObject*); | 2173 void showLineTree(const blink::LayoutObject*); |
2169 void showLayoutTree(const blink::LayoutObject* object1); | 2174 void showLayoutTree(const blink::LayoutObject* object1); |
2170 // We don't make object2 an optional parameter so that showLayoutTree | 2175 // We don't make object2 an optional parameter so that showLayoutTree |
2171 // can be called from gdb easily. | 2176 // can be called from gdb easily. |
2172 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); | 2177 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec
t* object2); |
2173 | 2178 |
2174 #endif | 2179 #endif |
2175 | 2180 |
2176 #endif // LayoutObject_h | 2181 #endif // LayoutObject_h |
OLD | NEW |