Changeset 21892 in webkit
- Timestamp:
- May 30, 2007 6:20:56 AM (17 years ago)
- Location:
- S60/branches/3.1m
- Files:
-
- 11 edited
Legend:
- Unmodified
- Added
- Removed
-
S60/branches/3.1m/WebCore/BWINS/WEBCOREU.DEF
r21537 r21892 159 159 ?StopLoading@CWebCoreBridge@@QAEXH@Z @ 158 NONAME ; void CWebCoreBridge::StopLoading(int) 160 160 ?WindowScriptNPObject@CWebCoreBridge@@QAEPAVNPObject@@XZ @ 159 NONAME ; class NPObject * CWebCoreBridge::WindowScriptNPObject(void) 161 ?SetDeferAnimations@CWebCoreBridge@@QAEXXZ @ 160 NONAME ; void CWebCoreBridge::SetDeferAnimations(void) 161 162 -
S60/branches/3.1m/WebCore/ChangeLog
r21537 r21892 1 2007-05-29 bujtas <zbujtas@gmail.com> 2 3 Reviewed by Sachin. 4 DESC: stop animation on image renderers when browser 5 is in background 6 http://bugs.webkit.org/show_bug.cgi?id=13906 7 8 * BWINS/WEBCOREU.DEF: 9 * EABI/WebCoreU.DEF: 10 * bridge/WebCoreBridge.cpp: 11 (CWebCoreBridge::SetDeferAnimations): 12 * bridge/WebCoreBridge.h: 13 * khtml/misc/loader.cpp: 14 (CachedImage::setDeferAnimations): 15 (DocLoader::setShowAnimations): 16 (DocLoader::setDeferAnimations): 17 * khtml/misc/loader.h: 18 (khtml::): 19 * kwq/KWQKHTMLPart.cpp: 20 (KWQKHTMLPart::submitForm): 21 (KWQKHTMLPart::deferAnimations): 22 * kwq/KWQKHTMLPart.h: 23 1 24 2007-05-15 yyadavall <sriram.yadavalli@nokia.com> 2 25 -
S60/branches/3.1m/WebCore/EABI/WebCoreU.DEF
r21537 r21892 162 162 _ZN14CWebCoreBridge11StopLoadingEi @ 161 NONAME 163 163 _ZN14CWebCoreBridge20WindowScriptNPObjectEv @ 162 NONAME 164 _ZN14CWebCoreBridge18SetDeferAnimationsEv @ 163 NONAME 164 165 -
S60/branches/3.1m/WebCore/bridge/WebCoreBridge.cpp
r21537 r21892 2996 2996 } 2997 2997 2998 EXPORT_C 2999 void CWebCoreBridge::SetDeferAnimations() 3000 { 3001 iPart->deferAnimations(); 3002 } 3003 -
S60/branches/3.1m/WebCore/bridge/WebCoreBridge.h
r21537 r21892 502 502 IMPORT_C static TBool DefersTimers(); 503 503 504 IMPORT_C void SetDeferAnimations(); 505 504 506 private: 505 507 -
S60/branches/3.1m/WebCore/khtml/misc/loader.cpp
r19802 r21892 1023 1023 } 1024 1024 1025 void CachedImage::setDeferAnimations() { 1026 if (p) 1027 p->stopAnimations(); 1028 } 1029 1025 1030 #if !APPLE_CHANGES 1026 1031 … … 1607 1612 1608 1613 img->setShowAnimations( showAnimations ); 1614 } 1615 } 1616 1617 void DocLoader::setDeferAnimations() { 1618 const CachedObject* co; 1619 for ( co=m_docObjects.first(); co; co=m_docObjects.next() ) 1620 if ( co->type() == CachedObject::Image ) 1621 { 1622 CachedImage *img = const_cast<CachedImage*>( static_cast<const CachedImage *>( co ) ); 1623 1624 img->setDeferAnimations(); 1609 1625 } 1610 1626 } -
S60/branches/3.1m/WebCore/khtml/misc/loader.h
r14720 r21892 390 390 #endif 391 391 void setShowAnimations( KHTMLSettings::KAnimationAdvice ); 392 void setDeferAnimations(); 392 393 393 394 virtual bool schedule() const { return true; } … … 431 432 432 433 // Is set if movie format type ( incremental/animation) was checked 433 bool typeChecked : 1;434 bool typeChecked : 1; 434 435 bool isFullyTransparent : 1; 435 436 bool errorOccured : 1; … … 534 535 void setCachePolicy( KIO::CacheControl cachePolicy ); 535 536 void setShowAnimations( KHTMLSettings::KAnimationAdvice ); 537 void setDeferAnimations(); 536 538 void removeCachedObject( CachedObject*) const; 537 539 -
S60/branches/3.1m/WebCore/kwq/KWQKHTMLPart.cpp
r21537 r21892 771 771 } 772 772 } 773 773 774 774 // Save persisted form data 775 775 if (FormValues()){ … … 4175 4175 } 4176 4176 4177 4178 void KWQKHTMLPart::deferAnimations() 4179 { 4180 if ( !d ) 4181 return; 4182 4183 if ( d->m_doc ) 4184 d->m_doc->docLoader()->setDeferAnimations(); 4185 4186 ConstFrameIt it = d->m_frames.begin(); 4187 ConstFrameIt end = d->m_frames.end(); 4188 for (; it != end; ++it ) 4189 if ( !( *it ).m_part.isNull() && ( *it ).m_part->inherits( "KHTMLPart" ) ) { 4190 KParts::ReadOnlyPart* p = ( *it ).m_part; 4191 static_cast<KWQKHTMLPart*>( p )->deferAnimations(); 4192 } 4193 } 4194 4195 -
S60/branches/3.1m/WebCore/kwq/KWQKHTMLPart.h
r21537 r21892 364 364 365 365 void setFontSizeLevel( int aLevel ); 366 // suspend animations 367 void deferAnimations(); 368 366 369 private: 367 370 -
S60/branches/3.1m/WebKit/BrowserView/src/WebKitControl.cpp
r21537 r21892 454 454 { 455 455 // Create data manager for auto form fill 456 iFormDataManager = CFormDataManager::NewL(aBrCtl.BrCtlDialogsProvider(), 456 iFormDataManager = CFormDataManager::NewL(aBrCtl.BrCtlDialogsProvider(), 457 457 aBrCtl.WebKitControl()->GetBrowserSettingL(TBrCtlDefs::ESettingsAutoFormFillEnabled) ); 458 458 } … … 529 529 if( !iDownloadObserver ) 530 530 { 531 // init 531 // init 532 532 iDownloadObserver = new (ELeave) CBrCtlDownloadObserver; 533 533 } … … 586 586 // 587 587 LoaderContainerL( aBrCtl ); 588 DownloadObserver(); 588 DownloadObserver(); 589 589 // save pages capability 590 590 iImgRendererFactory->SetSaveImageData( iLoaderContainer->Capabilities() & TBrCtlDefs::ECapabilitySavedPage ); … … 1140 1140 while( frame ) 1141 1141 { 1142 //Let all connection to close first then Deref() 1142 //Let all connection to close first then Deref() 1143 1143 //when disconnected by the user. 1144 1144 CWebKitFrame* currentFrame = frame; … … 1202 1202 } 1203 1203 } 1204 1204 1205 1205 CWebKitFrame* frame = &(iWebKitView->MainFrame()); 1206 1206 while( frame ) … … 1211 1211 } 1212 1212 iSyncCancel = EFalse; 1213 1214 iHistoryController->CancelResetEntryPositionL(); 1213 1214 iHistoryController->CancelResetEntryPositionL(); 1215 1215 iBrCtl->HandleBrowserLoadEventL( TBrCtlDefs::EEventContentFinished, 0, 0 ); 1216 1216 … … 1662 1662 TInt bytesReceived( aReceivedContentSize - item.iBytesReceived ); 1663 1663 1664 // Adjust if the total received bytes is different than our estimate 1664 // Adjust if the total received bytes is different than our estimate 1665 1665 item.iBytesReceived = aReceivedContentSize; 1666 1666 if ( item.iBytesReceived > item.iEstimatedLength ) … … 1678 1678 TInt estimatedBytesForPendingRequests = KWebProgressItemDefaultEstimatedLength * 1679 1679 numPendingOrLoadingRequests; 1680 1680 1681 1681 // Calculate the amount to increment the progress bar 1682 1682 TInt remainingBytes = (( iTotalPageAndResourceBytesToLoad + … … 1857 1857 { 1858 1858 CWebCoreBridge::SetDefersTimers( ETrue ); 1859 iWebKitView->MainFrame().WebKitBridge().WebCoreBridge().SetDeferAnimations(); 1859 1860 } 1860 1861 } … … 1870 1871 // back, when our new estimated progress is less then our last estimate. Ie, 1871 1872 // if we guess we're at 20% and the next chuck makes our guess 18%, we leave the 1872 // progress bar at 20%. 1873 // progress bar at 20%. 1873 1874 // ----------------------------------------------------------------------------- 1874 1875 void CWebKitControl::ProgressUpdate() … … 2239 2240 { 2240 2241 CWebCoreBridge::SetDefersTimers( ETrue ); 2242 iWebKitView->MainFrame().WebKitBridge().WebCoreBridge().SetDeferAnimations(); 2241 2243 } 2242 2244 else … … 2250 2252 iSuspendTimers = EFalse; 2251 2253 CWebCoreBridge::SetDefersTimers( EFalse ); 2254 // invalidate the view to wake up animations 2255 iWebKitView->SyncRepaint( iWebKitView->MainFrame().VisibleRect() ); 2252 2256 } 2253 2257 } -
S60/branches/3.1m/WebKit/ChangeLog
r21626 r21892 1 2007-05-29 bujtas <zbujtas@gmail.com> 2 3 Reviewed by Sachin. 4 DESC: stop animation on image renderers when browser 5 is in background 6 http://bugs.webkit.org/show_bug.cgi?id=13906 7 8 * BrowserView/src/WebKitControl.cpp: 9 (CStaticObjectContainer::FormDataManagerHandlerL): 10 (CStaticObjectContainer::DownloadObserver): 11 (CStaticObjectContainer::InitializeFactoryObjectsL): 12 (CWebKitControl::HandleLoaderCommandL): 13 (CWebKitControl::SyncCancelL): 14 (CWebKitControl::IncrementProgressForMoreData): 15 (CWebKitControl::FinalProgressComplete): 16 (CWebKitControl::ForegroundEvent): 17 1 18 2007-05-21 spadma 2 19 DESC: Update loc file layout
Note: See TracChangeset
for help on using the changeset viewer.