| 1076 | } |
| 1077 | |
| 1078 | void Widget::invalidate() |
| 1079 | { |
| 1080 | if (isVisible()) { |
| 1081 | m_updateRegion.clear(); |
| 1082 | getDrawableRegion(m_updateRegion, kCutTopWindows); |
| 1083 | |
| 1084 | mark_dirty_flag(this); |
| 1085 | |
| 1086 | for (auto child : m_children) |
| 1087 | child->invalidate(); |
| 1088 | } |
| 1089 | } |
| 1090 | |
| 1091 | void Widget::invalidateRect(const gfx::Rect& rect) |
| 1092 | { |
no test coverage detected