2172 repaint(); |
2172 repaint(); |
2173 } |
2173 } |
2174 } |
2174 } |
2175 } |
2175 } |
2176 #if PLATFORM(SYMBIAN) |
2176 #if PLATFORM(SYMBIAN) |
2177 if (m_style->visibility() == HIDDEN && |
2177 if (m_style->visibility() != style->visibility()) { |
2178 style->visibility() == VISIBLE) { |
2178 document()->page()->chrome()->setElementVisibilityChanged(style->visibility() == VISIBLE); |
2179 document()->page()->chrome()->setElementVisibilityChanged(true); |
2179 } |
2180 } |
2180 |
2181 else if (style->position() != StaticPosition) { |
2181 if (style->position() != StaticPosition) { |
2182 |
2182 |
2183 if (style->left() != m_style->left() || |
2183 if (style->left() != m_style->left() || |
2184 style->right() != m_style->right() || |
2184 style->right() != m_style->right() || |
2185 style->top() != m_style->top() || |
2185 style->top() != m_style->top() || |
2186 style->bottom() != m_style->bottom()) { |
2186 style->bottom() != m_style->bottom()) { |
2187 |
2187 |
2188 document()->page()->chrome()->setElementVisibilityChanged(true); |
2188 document()->page()->chrome()->setElementVisibilityChanged(true); |
2189 } |
2189 } |
2190 } |
2190 } |
2191 else { |
|
2192 bool curr_style_hidden = (m_style->width().isFixed() && m_style->width().value() <= 0) || |
|
2193 (m_style->height().isFixed() && m_style->height().value() <= 0); |
|
2194 bool new_style_hidden = (style->width().isFixed() && style->width().value() <= 0) || |
|
2195 (style->height().isFixed() && style->height().value() <= 0); |
|
2196 |
|
2197 if (curr_style_hidden && !new_style_hidden) { |
|
2198 document()->page()->chrome()->setElementVisibilityChanged(true); |
|
2199 } |
|
2200 } |
|
2201 |
|
2202 #endif |
2191 #endif |
2203 } |
2192 } |
2204 // If we have no layer(), just treat a RepaintLayer hint as a normal Repaint. |
2193 // If we have no layer(), just treat a RepaintLayer hint as a normal Repaint. |
2205 if (d == RenderStyle::RepaintLayer && !hasLayer()) |
2194 if (d == RenderStyle::RepaintLayer && !hasLayer()) |
2206 d = RenderStyle::Repaint; |
2195 d = RenderStyle::Repaint; |