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

Side by Side Diff: sky/engine/core/rendering/RenderObject.h

Issue 893093002: Delete remaining masks dead code. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/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 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 bool selfNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.se lfNeedsOverflowRecalcAfterStyleChange(); } 365 bool selfNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.se lfNeedsOverflowRecalcAfterStyleChange(); }
366 bool childNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.c hildNeedsOverflowRecalcAfterStyleChange(); } 366 bool childNeedsOverflowRecalcAfterStyleChange() const { return m_bitfields.c hildNeedsOverflowRecalcAfterStyleChange(); }
367 367
368 bool isSelectionBorder() const; 368 bool isSelectionBorder() const;
369 369
370 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); } 370 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); }
371 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 371 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
372 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } 372 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); }
373 373
374 bool hasTransform() const { return m_bitfields.hasTransform(); } 374 bool hasTransform() const { return m_bitfields.hasTransform(); }
375 bool hasMask() const { return style() && style()->hasMask(); }
376 bool hasClipPath() const { return style() && style()->clipPath(); } 375 bool hasClipPath() const { return style() && style()->clipPath(); }
377 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 376 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
378 377
379 bool hasFilter() const { return style() && style()->hasFilter(); } 378 bool hasFilter() const { return style() && style()->hasFilter(); }
380 379
381 inline bool preservesNewline() const; 380 inline bool preservesNewline() const;
382 381
383 RenderView* view() const { return document().renderView(); }; 382 RenderView* view() const { return document().renderView(); };
384 FrameView* frameView() const { return document().view(); }; 383 FrameView* frameView() const { return document().view(); };
385 384
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const; 618 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const;
620 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 619 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
621 620
622 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). 621 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ).
623 // Returns the renderer which was mapped to (container or ancestorToStopAt). 622 // Returns the renderer which was mapped to (container or ancestorToStopAt).
624 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const; 623 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const;
625 624
626 bool shouldUseTransformFromContainer(const RenderObject* container) const; 625 bool shouldUseTransformFromContainer(const RenderObject* container) const;
627 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; 626 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const;
628 627
629 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter (); } 628 bool createsGroup() const { return isTransparent() || hasFilter(); }
630 629
631 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) const { }; 630 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) const { };
632 631
633 RespectImageOrientationEnum shouldRespectImageOrientation() const; 632 RespectImageOrientationEnum shouldRespectImageOrientation() const;
634 633
635 bool isRelayoutBoundaryForInspector() const; 634 bool isRelayoutBoundaryForInspector() const;
636 635
637 bool onlyNeededPositionedMovementLayout() const { return m_bitfields.onlyNee dedPositionedMovementLayout(); } 636 bool onlyNeededPositionedMovementLayout() const { return m_bitfields.onlyNee dedPositionedMovementLayout(); }
638 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); } 637 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); }
639 638
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 void showTree(const blink::RenderObject*); 916 void showTree(const blink::RenderObject*);
918 void showLineTree(const blink::RenderObject*); 917 void showLineTree(const blink::RenderObject*);
919 void showRenderTree(const blink::RenderObject* object1); 918 void showRenderTree(const blink::RenderObject* object1);
920 // We don't make object2 an optional parameter so that showRenderTree 919 // We don't make object2 an optional parameter so that showRenderTree
921 // can be called from gdb easily. 920 // can be called from gdb easily.
922 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 921 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
923 922
924 #endif 923 #endif
925 924
926 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 925 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698