am eb643f26: Merge "Remove the shadow under url bar." into froyo

Merge commit 'eb643f2685bd404ef5abb622123cea0aa17939d7' into froyo-plus-aosp

* commit 'eb643f2685bd404ef5abb622123cea0aa17939d7':
  Remove the shadow under url bar.
This commit is contained in:
Grace Kloba
2010-03-30 14:56:14 -07:00
committed by Android Git Automerger

View File

@ -3101,12 +3101,12 @@ public class WebView extends AbsoluteLayout
canvas.restoreToCount(saveCount);
// Now draw the shadow.
if (mTitleBar != null) {
int y = mScrollY + getVisibleTitleHeight();
int titleH = getVisibleTitleHeight();
if (mTitleBar != null && titleH == 0) {
int height = (int) (5f * getContext().getResources()
.getDisplayMetrics().density);
mTitleShadow.setBounds(mScrollX, y, mScrollX + getWidth(),
y + height);
mTitleShadow.setBounds(mScrollX, mScrollY, mScrollX + getWidth(),
mScrollY + height);
mTitleShadow.draw(canvas);
}
if (AUTO_REDRAW_HACK && mAutoRedraw) {