aboutsummaryrefslogtreecommitdiff
path: root/dw/outofflowmgr.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2013-06-14 21:02:42 +0200
committerSebastian Geerken <devnull@localhost>2013-06-14 21:02:42 +0200
commit360c8d716a817b3e7af396174e0315259d78e2fa (patch)
tree4523728030f15d122f06fdbab2fca51191017ac4 /dw/outofflowmgr.hh
parentefe6750f08f61dc3e3930939fd89f29b62484780 (diff)
Small performance optimization.
Diffstat (limited to 'dw/outofflowmgr.hh')
-rw-r--r--dw/outofflowmgr.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/dw/outofflowmgr.hh b/dw/outofflowmgr.hh
index 01cf563f..97473145 100644
--- a/dw/outofflowmgr.hh
+++ b/dw/outofflowmgr.hh
@@ -277,6 +277,11 @@ public:
inline core::Widget *getWidget (int i) {
return i < leftFloatsAll->size() ? leftFloatsAll->get(i)->widget :
rightFloatsAll->get(i - leftFloatsAll->size())->widget; }
+
+ inline bool affectsLeftBorder (core::Widget *widget) {
+ return widget->getStyle()->vloat == core::style::FLOAT_LEFT; }
+ inline bool affectsRightBorder (core::Widget *widget) {
+ return widget->getStyle()->vloat == core::style::FLOAT_RIGHT; }
};
} // namespace dw