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

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

Issue 731863003: Remove CSSCompositing (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: preland 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
« 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 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); } 470 bool hasOverflowClip() const { return m_bitfields.hasOverflowClip(); }
471 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); } 471 bool hasClipOrOverflowClip() const { return hasClip() || hasOverflowClip(); }
472 472
473 bool hasTransform() const { return m_bitfields.hasTransform(); } 473 bool hasTransform() const { return m_bitfields.hasTransform(); }
474 bool hasMask() const { return style() && style()->hasMask(); } 474 bool hasMask() const { return style() && style()->hasMask(); }
475 bool hasClipPath() const { return style() && style()->clipPath(); } 475 bool hasClipPath() const { return style() && style()->clipPath(); }
476 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 476 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
477 477
478 bool hasFilter() const { return style() && style()->hasFilter(); } 478 bool hasFilter() const { return style() && style()->hasFilter(); }
479 479
480 bool hasBlendMode() const;
481
482 inline bool preservesNewline() const; 480 inline bool preservesNewline() const;
483 481
484 RenderView* view() const { return document().renderView(); }; 482 RenderView* view() const { return document().renderView(); };
485 FrameView* frameView() const { return document().view(); }; 483 FrameView* frameView() const { return document().view(); };
486 484
487 bool isRooted() const; 485 bool isRooted() const;
488 486
489 Node* node() const 487 Node* node() const
490 { 488 {
491 return isAnonymous() ? 0 : m_node.get(); 489 return isAnonymous() ? 0 : m_node.get();
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
808 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const PaintInvalidationState* = 0) const; 806 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const PaintInvalidationState* = 0) const;
809 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst; 807 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c onst;
810 808
811 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ). 809 // Pushes state onto RenderGeometryMap about how to map coordinates from thi s renderer to its container, or ancestorToStopAt (whichever is encountered first ).
812 // Returns the renderer which was mapped to (container or ancestorToStopAt). 810 // Returns the renderer which was mapped to (container or ancestorToStopAt).
813 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const; 811 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const;
814 812
815 bool shouldUseTransformFromContainer(const RenderObject* container) const; 813 bool shouldUseTransformFromContainer(const RenderObject* container) const;
816 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const; 814 void getTransformFromContainer(const RenderObject* container, const LayoutSi ze& offsetInContainer, TransformationMatrix&) const;
817 815
818 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter () || hasBlendMode(); } 816 bool createsGroup() const { return isTransparent() || hasMask() || hasFilter (); }
819 817
820 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) const { }; 818 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& /* addit ionalOffset */, const RenderLayerModelObject* /* paintContainer */ = 0) const { };
821 819
822 RespectImageOrientationEnum shouldRespectImageOrientation() const; 820 RespectImageOrientationEnum shouldRespectImageOrientation() const;
823 821
824 bool isRelayoutBoundaryForInspector() const; 822 bool isRelayoutBoundaryForInspector() const;
825 823
826 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; } 824 const LayoutRect& previousPaintInvalidationRect() const { return m_previousP aintInvalidationRect; }
827 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; } 825 void setPreviousPaintInvalidationRect(const LayoutRect& rect) { m_previousPa intInvalidationRect = rect; }
828 826
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 void showTree(const blink::RenderObject*); 1269 void showTree(const blink::RenderObject*);
1272 void showLineTree(const blink::RenderObject*); 1270 void showLineTree(const blink::RenderObject*);
1273 void showRenderTree(const blink::RenderObject* object1); 1271 void showRenderTree(const blink::RenderObject* object1);
1274 // We don't make object2 an optional parameter so that showRenderTree 1272 // We don't make object2 an optional parameter so that showRenderTree
1275 // can be called from gdb easily. 1273 // can be called from gdb easily.
1276 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1274 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1277 1275
1278 #endif 1276 #endif
1279 1277
1280 #endif // RenderObject_h 1278 #endif // 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