aboutsummaryrefslogtreecommitdiff
path: root/dw/stackingcontextmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2014-09-24 21:45:37 +0200
committerSebastian Geerken <devnull@localhost>2014-09-24 21:45:37 +0200
commitbcebc40e56a88fac5fbdd4cc04d74d53ac6ec3ff (patch)
tree004667ce96691a83841c2fb644328037efa38e9f /dw/stackingcontextmgr.hh
parentfd1293cb0debeb0fbda3993e14eb43a2ff2bfd15 (diff)
Avoid dublicate drawing.
Diffstat (limited to 'dw/stackingcontextmgr.hh')
-rw-r--r--dw/stackingcontextmgr.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/dw/stackingcontextmgr.hh b/dw/stackingcontextmgr.hh
index 36acfb11..cbb59231 100644
--- a/dw/stackingcontextmgr.hh
+++ b/dw/stackingcontextmgr.hh
@@ -35,6 +35,14 @@ public:
widget->getStyle()->zIndex != style::Z_INDEX_AUTO;
}
+ inline static bool handledByStackingContextMgr (Widget *widget) {
+ // Each widget establishing a stacking context is child of another
+ // stacking context, so drawn by StackingContextMgr::drawTop or
+ // StackingContextMgr::drawBottom etc.
+ return widget->getParent () != NULL
+ && isEstablishingStackingContext (widget);
+ }
+
void addChildSCWidget (Widget *widget);
void drawBottom (View *view, Rectangle *area);