aboutsummaryrefslogtreecommitdiff
path: root/dw/stackingcontextmgr.hh
diff options
context:
space:
mode:
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);