aboutsummaryrefslogtreecommitdiff
path: root/dw
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-12-31 12:40:45 +0100
committerSebastian Geerken <devnull@localhost>2015-12-31 12:40:45 +0100
commit21b11e2ef463d13f5ce1002a5ba2575c2cac3606 (patch)
tree35535baa188bd10a3a1d911ff4255b8d3fdbc883 /dw
parent23eab92430ac6a00fe8e64c0ab0b714076beb8a4 (diff)
SRDOP: temporarily disable stacking context (only used for positioned elements), focus on floats.
Diffstat (limited to 'dw')
-rw-r--r--dw/core.hh3
-rw-r--r--dw/oofawarewidget.hh5
-rw-r--r--dw/stackingcontextmgr.hh3
3 files changed, 6 insertions, 5 deletions
diff --git a/dw/core.hh b/dw/core.hh
index 9463df2b..fcf8ef4b 100644
--- a/dw/core.hh
+++ b/dw/core.hh
@@ -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;
}