diff options
author | Sebastian Geerken <devnull@localhost> | 2015-12-31 12:40:45 +0100 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2015-12-31 12:40:45 +0100 |
commit | 21b11e2ef463d13f5ce1002a5ba2575c2cac3606 (patch) | |
tree | 35535baa188bd10a3a1d911ff4255b8d3fdbc883 /dw | |
parent | 23eab92430ac6a00fe8e64c0ab0b714076beb8a4 (diff) |
SRDOP: temporarily disable stacking context (only used for positioned elements), focus on floats.
Diffstat (limited to 'dw')
-rw-r--r-- | dw/core.hh | 3 | ||||
-rw-r--r-- | dw/oofawarewidget.hh | 5 | ||||
-rw-r--r-- | dw/stackingcontextmgr.hh | 3 |
3 files changed, 6 insertions, 5 deletions
@@ -12,6 +12,9 @@ */ namespace dw { +// Used (temporally) for code related to positioned elements. +enum { IMPL_POS = false }; + /** * \brief The core of Dw is defined in this namespace. * diff --git a/dw/oofawarewidget.hh b/dw/oofawarewidget.hh index 3bdd52ab..9486e153 100644 --- a/dw/oofawarewidget.hh +++ b/dw/oofawarewidget.hh @@ -75,10 +75,7 @@ namespace oof { * these. However, this should be considered for completeness. */ class OOFAwareWidget: public core::Widget -{ -public: - enum { IMPL_POS = false }; - +{ protected: enum { OOFM_FLOATS, OOFM_ABSOLUTE, OOFM_RELATIVE, OOFM_FIXED, NUM_OOFM }; static const char *OOFM_NAME[NUM_OOFM]; diff --git a/dw/stackingcontextmgr.hh b/dw/stackingcontextmgr.hh index 3a877031..77bc1942 100644 --- a/dw/stackingcontextmgr.hh +++ b/dw/stackingcontextmgr.hh @@ -35,7 +35,8 @@ public: ~StackingContextMgr (); inline static bool isEstablishingStackingContext (Widget *widget) { - return widget->getStyle()->position != style::POSITION_STATIC && + return IMPL_POS && + widget->getStyle()->position != style::POSITION_STATIC && widget->getStyle()->zIndex != style::Z_INDEX_AUTO; } |