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

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

Issue 963253002: Move FilterEffectRenderer out of RenderLayer into RenderBox. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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') | no next file » | 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 bool isSelectionBorder() const; 351 bool isSelectionBorder() const;
352 352
353 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); } 353 bool hasClip() const { return isOutOfFlowPositioned() && !style()->hasAutoCl ip(); }
354 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 354 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
355 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } 355 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); }
356 356
357 bool hasTransform() const { return m_bitfields.hasTransform(); } 357 bool hasTransform() const { return m_bitfields.hasTransform(); }
358 bool hasClipPath() const { return style() && style()->clipPath(); } 358 bool hasClipPath() const { return style() && style()->clipPath(); }
359 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 359 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
360 360
361 bool hasFilter() const { return style() && style()->hasFilter(); }
362
363 inline bool preservesNewline() const; 361 inline bool preservesNewline() const;
364 362
365 RenderView* view() const { return document().renderView(); }; 363 RenderView* view() const { return document().renderView(); };
366 FrameView* frameView() const { return document().view(); }; 364 FrameView* frameView() const { return document().view(); };
367 365
368 bool isRooted() const; 366 bool isRooted() const;
369 367
370 Node* node() const 368 Node* node() const
371 { 369 {
372 return isAnonymous() ? 0 : m_node.get(); 370 return isAnonymous() ? 0 : m_node.get();
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 virtual void mapLocalToContainer(const RenderBox* paintInvalidationContainer , TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const; 599 virtual void mapLocalToContainer(const RenderBox* paintInvalidationContainer , TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const;
602 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 600 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
603 601
604 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). 602 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ).
605 // Returns the renderer which was mapped to (container or ancestorToStopAt). 603 // Returns the renderer which was mapped to (container or ancestorToStopAt).
606 virtual const RenderObject* pushMappingToContainer(const RenderBox* ancestor ToStopAt, RenderGeometryMap&) const; 604 virtual const RenderObject* pushMappingToContainer(const RenderBox* ancestor ToStopAt, RenderGeometryMap&) const;
607 605
608 bool shouldUseTransformFromContainer(const RenderObject* container) const; 606 bool shouldUseTransformFromContainer(const RenderObject* container) const;
609 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; 607 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const;
610 608
611 bool createsGroup() const { return isTransparent() || hasFilter(); } 609 bool createsGroup() const { return isTransparent() || style()->hasFilter(); }
612 610
613 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit ionalOffset */, const RenderBox* /* paintContainer */ = 0) const { }; 611 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit ionalOffset */, const RenderBox* /* paintContainer */ = 0) const { };
614 612
615 RespectImageOrientationEnum shouldRespectImageOrientation() const; 613 RespectImageOrientationEnum shouldRespectImageOrientation() const;
616 614
617 bool isRelayoutBoundaryForInspector() const; 615 bool isRelayoutBoundaryForInspector() const;
618 616
619 bool onlyNeededPositionedMovementLayout() const { return m_bitfields.onlyNee dedPositionedMovementLayout(); } 617 bool onlyNeededPositionedMovementLayout() const { return m_bitfields.onlyNee dedPositionedMovementLayout(); }
620 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); } 618 void setOnlyNeededPositionedMovementLayout(bool b) { m_bitfields.setOnlyNeed edPositionedMovementLayout(b); }
621 619
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 void showTree(const blink::RenderObject*); 888 void showTree(const blink::RenderObject*);
891 void showLineTree(const blink::RenderObject*); 889 void showLineTree(const blink::RenderObject*);
892 void showRenderTree(const blink::RenderObject* object1); 890 void showRenderTree(const blink::RenderObject* object1);
893 // We don't make object2 an optional parameter so that showRenderTree 891 // We don't make object2 an optional parameter so that showRenderTree
894 // can be called from gdb easily. 892 // can be called from gdb easily.
895 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 893 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
896 894
897 #endif 895 #endif
898 896
899 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_ 897 #endif // SKY_ENGINE_CORE_RENDERING_RENDEROBJECT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698