Changeset 19801 in webkit
- Timestamp:
- Feb 22, 2007 1:16:53 PM (17 years ago)
- Location:
- S60/branches/3.1m/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
S60/branches/3.1m/WebKit/BrowserCore/Formcontrols/src/FControlSelectSkin.cpp
r15655 r19801 141 141 142 142 // clear content area 143 gcContext->SetBrushColor( iWebCorePalette.BackGround() ); 144 gcContext->DrawRect( innerRect ); 143 144 TUint32 backGround = iWebCorePalette.BackGround().Internal() & (0x00ffffff); 145 TUint32 foreGround = iWebCorePalette.ForeGround().Internal() & (0x00ffffff); 146 TBool foreGroundBlack = EFalse; 147 if( backGround==foreGround && 148 textDisplayRect.iTl.iX<textDisplayRect.iBr.iX ) 149 { 150 //Nothing will be displayed on the screen. 151 //This case only happens in case of malformed HTML contents 152 //and have been found on few sites. 153 //Safe to change to white so any text can be pained on this. 154 TRgb newBackGround( 0x00ffffff ); 155 gcContext->SetBrushColor( newBackGround ); 156 //If Foreground is also white, then penColor will be changed to black 157 if( foreGround==0x00ffffff ) 158 foreGroundBlack = ETrue; 159 160 } 161 else 162 { 163 gcContext->SetBrushColor( iWebCorePalette.BackGround() ); 164 } 165 gcContext->DrawRect( innerRect ); 145 166 146 167 // draw text … … 148 169 { 149 170 gcContext->UseFontNoDuplicate( static_cast<CFbsBitGcFont*>(iFont) ); 150 gcContext->SetPenColor(iWebCorePalette.ForeGround()); 171 if( foreGroundBlack ) 172 { 173 gcContext->SetPenColor( 0x0 ); //Set to black 174 } 175 else 176 { 177 gcContext->SetPenColor(iWebCorePalette.ForeGround()); 178 } 151 179 // if the text is NULL then display empty string 152 180 TPtrC data = iVisualClipText ? iVisualClipText->Des() : KNullDesC(); -
S60/branches/3.1m/WebKit/ChangeLog
r19774 r19801 1 sareen by yongjun 2 DESC: Selection list not shown correctly in www.elisa.fi HMNN-6XQJMX 3 http://bugs.webkit.org/show_bug.cgi?id=12719 4 5 * BrowserCore/Formcontrols/src/FControlSelectSkin.cpp: 6 (CFormSelectSkin::Draw): 7 1 8 brmorris, reviewed by Sachin. 2 9 DESC: r19404 caused some regresion, so I'm reverting it. TMCN-6XYSLY
Note: See TracChangeset
for help on using the changeset viewer.