equal
deleted
inserted
replaced
157 m_ref(1), |
157 m_ref(1), |
158 m_handle(-1), |
158 m_handle(-1), |
159 m_instance(0), |
159 m_instance(0), |
160 m_pluginfuncs(0), |
160 m_pluginfuncs(0), |
161 m_resized(false), |
161 m_resized(false), |
162 m_oldPos(TPoint(-1,-1)) |
162 m_oldRect(TRect(0,0,0,0)), |
|
163 m_oldViewport(TRect(0,0,0,0)) |
163 { |
164 { |
164 } |
165 } |
165 |
166 |
166 |
167 |
167 void PluginSkin::addWidgetAttributesL() |
168 void PluginSkin::addWidgetAttributesL() |
738 { |
739 { |
739 // If the plugin content hasnt arrived yet or plugin is invalid, then return immediately |
740 // If the plugin content hasnt arrived yet or plugin is invalid, then return immediately |
740 if ( !m_pluginwin ) { |
741 if ( !m_pluginwin ) { |
741 return; |
742 return; |
742 } |
743 } |
743 TRect rect = m_rect; |
744 TPoint tl = m_frame->frameView()->frameCoordsInViewCoords(m_rect.iTl); |
744 TPoint newPos = m_frame->frameView()->frameCoordsInViewCoords(rect.iTl); |
745 TPoint br = m_frame->frameView()->frameCoordsInViewCoords(m_rect.iBr); |
|
746 TRect rect = TRect(tl, br); |
745 TRect newViewport = m_frame->frameView()->topView()->DocumentViewport(); |
747 TRect newViewport = m_frame->frameView()->topView()->DocumentViewport(); |
746 |
748 |
747 if (m_oldPos != newPos || m_oldViewport != newViewport) { |
749 if (m_oldRect != rect || m_oldViewport != newViewport) { |
748 m_oldPos = newPos; |
750 m_oldRect = rect; |
749 m_oldViewport = newViewport; |
751 m_oldViewport = newViewport; |
750 TRect clipRect(frameVisibleRect()); |
752 TRect clipRect(frameVisibleRect()); |
751 clipRect.Intersection(rect); |
753 clipRect.Intersection(m_rect); |
752 setClipRect(clipRect); |
754 setClipRect(clipRect); |
753 setPluginWinClipedRect(); |
755 setPluginWinClipedRect(); |
754 } |
756 } |
755 } |
757 } |
756 |
758 |