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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 746163002: Drop RenderObject::hasBlendMode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 587 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
588 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } 588 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); }
589 589
590 bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRe latedProperty(); } 590 bool hasTransformRelatedProperty() const { return m_bitfields.hasTransformRe latedProperty(); }
591 bool hasMask() const { return style() && style()->hasMask(); } 591 bool hasMask() const { return style() && style()->hasMask(); }
592 bool hasClipPath() const { return style() && style()->clipPath(); } 592 bool hasClipPath() const { return style() && style()->clipPath(); }
593 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 593 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
594 594
595 bool hasFilter() const { return style() && style()->hasFilter(); } 595 bool hasFilter() const { return style() && style()->hasFilter(); }
596 596
597 bool hasBlendMode() const;
Julien - ping for review 2014/11/21 16:29:20 To be frank, I would prefer keeping hasBlendMode()
fs 2014/11/21 16:38:59 Yeah, I can kind of agree to that - I wasn't reall
598
599 bool hasShapeOutside() const { return style() && style()->shapeOutside(); } 597 bool hasShapeOutside() const { return style() && style()->shapeOutside(); }
600 598
601 inline bool preservesNewline() const; 599 inline bool preservesNewline() const;
602 600
603 // The pseudo element style can be cached or uncached. Use the cached metho d if the pseudo element doesn't respect 601 // The pseudo element style can be cached or uncached. Use the cached metho d if the pseudo element doesn't respect
604 // any pseudo classes (and therefore has no concept of changing state). 602 // any pseudo classes (and therefore has no concept of changing state).
605 RenderStyle* getCachedPseudoStyle(PseudoId, RenderStyle* parentStyle = 0) co nst; 603 RenderStyle* getCachedPseudoStyle(PseudoId, RenderStyle* parentStyle = 0) co nst;
606 PassRefPtr<RenderStyle> getUncachedPseudoStyle(const PseudoStyleRequest&, Re nderStyle* parentStyle = 0, RenderStyle* ownStyle = 0) const; 604 PassRefPtr<RenderStyle> getUncachedPseudoStyle(const PseudoStyleRequest&, Re nderStyle* parentStyle = 0, RenderStyle* ownStyle = 0) const;
607 605
608 virtual void updateDragState(bool dragOn); 606 virtual void updateDragState(bool dragOn);
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const; 969 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0, const PaintInvalidationState* = 0) const;
972 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 970 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
973 971
974 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). 972 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ).
975 // Returns the renderer which was mapped to (container or ancestorToStopAt). 973 // Returns the renderer which was mapped to (container or ancestorToStopAt).
976 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const; 974 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const;
977 975
978 bool shouldUseTransformFromContainer(const RenderObject* container) const; 976 bool shouldUseTransformFromContainer(const RenderObject* container) const;
979 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; 977 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const;
980 978
981 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || hasBlendMode(); } 979 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || style()->hasBlendMode(); }
982 980
983 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const { } 981 virtual void addFocusRingRects(Vector<LayoutRect>&, const LayoutPoint& addit ionalOffset) const { }
984 982
985 // Compute a list of hit-test rectangles per layer rooted at this renderer. 983 // Compute a list of hit-test rectangles per layer rooted at this renderer.
986 virtual void computeLayerHitTestRects(LayerHitTestRects&) const; 984 virtual void computeLayerHitTestRects(LayerHitTestRects&) const;
987 985
988 // Return the renderer whose background style is used to paint the root back ground. Should only be called on the renderer for which isDocumentElement() is t rue. 986 // Return the renderer whose background style is used to paint the root back ground. Should only be called on the renderer for which isDocumentElement() is t rue.
989 RenderObject* rendererForRootBackground(); 987 RenderObject* rendererForRootBackground();
990 988
991 RespectImageOrientationEnum shouldRespectImageOrientation() const; 989 RespectImageOrientationEnum shouldRespectImageOrientation() const;
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
1616 void showTree(const blink::RenderObject*); 1614 void showTree(const blink::RenderObject*);
1617 void showLineTree(const blink::RenderObject*); 1615 void showLineTree(const blink::RenderObject*);
1618 void showRenderTree(const blink::RenderObject* object1); 1616 void showRenderTree(const blink::RenderObject* object1);
1619 // We don't make object2 an optional parameter so that showRenderTree 1617 // We don't make object2 an optional parameter so that showRenderTree
1620 // can be called from gdb easily. 1618 // can be called from gdb easily.
1621 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1619 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1622 1620
1623 #endif 1621 #endif
1624 1622
1625 #endif // RenderObject_h 1623 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698