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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 | 720 |
721 bool hasFilter() const { return style() && style()->hasFilter(); } | 721 bool hasFilter() const { return style() && style()->hasFilter(); } |
pdr.
2016/03/29 18:36:55
Would it be cleaner to update paintInvalidationSta
| |
722 bool hasBackdropFilter() const { return style() && style()->hasBackdropFilte r(); } | 722 bool hasBackdropFilter() const { return style() && style()->hasBackdropFilte r(); } |
723 bool hasFilterInducingProperty() const | |
Stephen White
2016/03/30 14:41:35
I find this name unintuitive. Could we be more exp
| |
724 { | |
725 return (style() && style()->hasFilter()) || (RuntimeEnabledFeatures::css BoxReflectFilterEnabled() && hasReflection()); | |
726 } | |
723 | 727 |
724 bool hasShapeOutside() const { return style() && style()->shapeOutside(); } | 728 bool hasShapeOutside() const { return style() && style()->shapeOutside(); } |
725 | 729 |
726 inline bool preservesNewline() const; | 730 inline bool preservesNewline() const; |
727 | 731 |
728 // The pseudo element style can be cached or uncached. Use the cached metho d if the pseudo element doesn't respect | 732 // 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). | 733 // any pseudo classes (and therefore has no concept of changing state). |
730 ComputedStyle* getCachedPseudoStyle(PseudoId, const ComputedStyle* parentSty le = nullptr) const; | 734 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; | 735 PassRefPtr<ComputedStyle> getUncachedPseudoStyle(const PseudoStyleRequest&, const ComputedStyle* parentStyle = nullptr, const ComputedStyle* ownStyle = null ptr) const; |
732 | 736 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1257 return mapAncestorToLocal(nullptr, transformState, flags); | 1261 return mapAncestorToLocal(nullptr, transformState, flags); |
1258 } | 1262 } |
1259 | 1263 |
1260 // Pushes state onto LayoutGeometryMap about how to map coordinates from thi s layoutObject to its container, or ancestorToStopAt (whichever is encountered f irst). | 1264 // Pushes state onto LayoutGeometryMap about how to map coordinates from thi s layoutObject to its container, or ancestorToStopAt (whichever is encountered f irst). |
1261 // Returns the layoutObject which was mapped to (container or ancestorToStop At). | 1265 // Returns the layoutObject which was mapped to (container or ancestorToStop At). |
1262 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const; | 1266 virtual const LayoutObject* pushMappingToContainer(const LayoutBoxModelObjec t* ancestorToStopAt, LayoutGeometryMap&) const; |
1263 | 1267 |
1264 bool shouldUseTransformFromContainer(const LayoutObject* container) const; | 1268 bool shouldUseTransformFromContainer(const LayoutObject* container) const; |
1265 void getTransformFromContainer(const LayoutObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; | 1269 void getTransformFromContainer(const LayoutObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; |
1266 | 1270 |
1267 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || style()->hasBlendMode(); } | 1271 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter InducingProperty() || style()->hasBlendMode(); } |
1268 | 1272 |
1269 // Collects rectangles that the outline of this object would be drawing alon g the outside of, | 1273 // Collects rectangles that the outline of this object would be drawing alon g the outside of, |
1270 // even if the object isn't styled with a outline for now. The rects also co ver continuations. | 1274 // even if the object isn't styled with a outline for now. The rects also co ver continuations. |
1271 enum IncludeBlockVisualOverflowOrNot { | 1275 enum IncludeBlockVisualOverflowOrNot { |
1272 DontIncludeBlockVisualOverflow, | 1276 DontIncludeBlockVisualOverflow, |
1273 IncludeBlockVisualOverflow, | 1277 IncludeBlockVisualOverflow, |
1274 }; | 1278 }; |
1275 virtual void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additio nalOffset, IncludeBlockVisualOverflowOrNot) const { } | 1279 virtual void addOutlineRects(Vector<LayoutRect>&, const LayoutPoint& additio nalOffset, IncludeBlockVisualOverflowOrNot) const { } |
1276 | 1280 |
1277 // For history and compatibility reasons, we draw outline:auto (for focus ri ngs) and normal style outline differently. | 1281 // 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... | |
2164 void showTree(const blink::LayoutObject*); | 2168 void showTree(const blink::LayoutObject*); |
2165 void showLineTree(const blink::LayoutObject*); | 2169 void showLineTree(const blink::LayoutObject*); |
2166 void showLayoutTree(const blink::LayoutObject* object1); | 2170 void showLayoutTree(const blink::LayoutObject* object1); |
2167 // We don't make object2 an optional parameter so that showLayoutTree | 2171 // We don't make object2 an optional parameter so that showLayoutTree |
2168 // can be called from gdb easily. | 2172 // can be called from gdb easily. |
2169 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); | 2173 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); |
2170 | 2174 |
2171 #endif | 2175 #endif |
2172 | 2176 |
2173 #endif // LayoutObject_h | 2177 #endif // LayoutObject_h |
OLD | NEW |