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. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. |
7 * All rights reserved. | 7 * All rights reserved. |
8 * Copyright (C) 2009 Google Inc. All rights reserved. | 8 * Copyright (C) 2009 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
642 // (see above). Unfortunately we don't have such a class yet, because it's not | 642 // (see above). Unfortunately we don't have such a class yet, because it's not |
643 // possible for all layoutObjects to inherit from LayoutSVGObject -> | 643 // possible for all layoutObjects to inherit from LayoutSVGObject -> |
644 // LayoutObject (some need LayoutBlock inheritance for instance) | 644 // LayoutObject (some need LayoutBlock inheritance for instance) |
645 virtual void setNeedsTransformUpdate() {} | 645 virtual void setNeedsTransformUpdate() {} |
646 virtual void setNeedsBoundariesUpdate(); | 646 virtual void setNeedsBoundariesUpdate(); |
647 | 647 |
648 bool isBlendingAllowed() const { | 648 bool isBlendingAllowed() const { |
649 return !isSVG() || (isSVGContainer() && !isSVGHiddenContainer()) || | 649 return !isSVG() || (isSVGContainer() && !isSVGHiddenContainer()) || |
650 isSVGShape() || isSVGImage() || isSVGText(); | 650 isSVGShape() || isSVGImage() || isSVGText(); |
651 } | 651 } |
652 virtual bool hasNonIsolatedBlendingDescendants() const { return false; } | 652 virtual bool hasNonIsolatedBlendingDescendants() const { |
chrishtr
2016/12/21 21:39:24
Why do you need to make the changes to hasNonIsola
trchen
2016/12/21 22:36:41
Yea... This really belongs to a split out. Done.
| |
653 // SVG only. For non-SVG objects, query PaintLayer instead. | |
654 NOTREACHED(); | |
pdr.
2016/12/21 19:12:52
What about DCHECK(isSVG()); and remove the other o
trchen
2016/12/21 22:36:41
That's genius! I'll do that instead (in a split ou
| |
655 return false; | |
656 } | |
653 enum DescendantIsolationState { | 657 enum DescendantIsolationState { |
654 DescendantIsolationRequired, | 658 DescendantIsolationRequired, |
655 DescendantIsolationNeedsUpdate, | 659 DescendantIsolationNeedsUpdate, |
656 }; | 660 }; |
657 virtual void descendantIsolationRequirementsChanged( | 661 virtual void descendantIsolationRequirementsChanged( |
658 DescendantIsolationState) {} | 662 DescendantIsolationState) {} |
659 | 663 |
660 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, | 664 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, |
661 // opacity and stroke-width. | 665 // opacity and stroke-width. |
662 // This is used for all computation of objectBoundingBox relative units and by | 666 // This is used for all computation of objectBoundingBox relative units and by |
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2668 CORE_EXPORT void showLineTree(const blink::LayoutObject*); | 2672 CORE_EXPORT void showLineTree(const blink::LayoutObject*); |
2669 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); | 2673 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); |
2670 // We don't make object2 an optional parameter so that showLayoutTree | 2674 // We don't make object2 an optional parameter so that showLayoutTree |
2671 // can be called from gdb easily. | 2675 // can be called from gdb easily. |
2672 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, | 2676 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, |
2673 const blink::LayoutObject* object2); | 2677 const blink::LayoutObject* object2); |
2674 | 2678 |
2675 #endif | 2679 #endif |
2676 | 2680 |
2677 #endif // LayoutObject_h | 2681 #endif // LayoutObject_h |
OLD | NEW |