Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 2570223002: [SPv2] Associate effect property nodes for SVG paint chunks (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 630 matching lines...) Expand 10 before | Expand all | Expand 10 after
641 // (see above). Unfortunately we don't have such a class yet, because it's not 641 // (see above). Unfortunately we don't have such a class yet, because it's not
642 // possible for all layoutObjects to inherit from LayoutSVGObject -> 642 // possible for all layoutObjects to inherit from LayoutSVGObject ->
643 // LayoutObject (some need LayoutBlock inheritance for instance) 643 // LayoutObject (some need LayoutBlock inheritance for instance)
644 virtual void setNeedsTransformUpdate() {} 644 virtual void setNeedsTransformUpdate() {}
645 virtual void setNeedsBoundariesUpdate(); 645 virtual void setNeedsBoundariesUpdate();
646 646
647 bool isBlendingAllowed() const { 647 bool isBlendingAllowed() const {
648 return !isSVG() || (isSVGContainer() && !isSVGHiddenContainer()) || 648 return !isSVG() || (isSVGContainer() && !isSVGHiddenContainer()) ||
649 isSVGShape() || isSVGImage() || isSVGText(); 649 isSVGShape() || isSVGImage() || isSVGText();
650 } 650 }
651 virtual bool hasNonIsolatedBlendingDescendants() const { return false; } 651 virtual bool hasNonIsolatedBlendingDescendants() const {
trchen 2016/12/14 01:36:55 Why not just remove the thing and make it part of
652 // SVG only. For non-SVG objects, query PaintLayer instead.
653 NOTREACHED();
654 return false;
655 }
652 enum DescendantIsolationState { 656 enum DescendantIsolationState {
653 DescendantIsolationRequired, 657 DescendantIsolationRequired,
654 DescendantIsolationNeedsUpdate, 658 DescendantIsolationNeedsUpdate,
655 }; 659 };
656 virtual void descendantIsolationRequirementsChanged( 660 virtual void descendantIsolationRequirementsChanged(
657 DescendantIsolationState) {} 661 DescendantIsolationState) {}
658 662
659 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects, 663 // Per SVG 1.1 objectBoundingBox ignores clipping, masking, filter effects,
660 // opacity and stroke-width. 664 // opacity and stroke-width.
661 // This is used for all computation of objectBoundingBox relative units and by 665 // This is used for all computation of objectBoundingBox relative units and by
(...skipping 1995 matching lines...) Expand 10 before | Expand all | Expand 10 after
2657 CORE_EXPORT void showLineTree(const blink::LayoutObject*); 2661 CORE_EXPORT void showLineTree(const blink::LayoutObject*);
2658 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1); 2662 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1);
2659 // We don't make object2 an optional parameter so that showLayoutTree 2663 // We don't make object2 an optional parameter so that showLayoutTree
2660 // can be called from gdb easily. 2664 // can be called from gdb easily.
2661 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1, 2665 CORE_EXPORT void showLayoutTree(const blink::LayoutObject* object1,
2662 const blink::LayoutObject* object2); 2666 const blink::LayoutObject* object2);
2663 2667
2664 #endif 2668 #endif
2665 2669
2666 #endif // LayoutObject_h 2670 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698