Changeset 58400 in webkit
- Timestamp:
- Apr 28, 2010 3:57:20 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 deleted
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r58398 r58400 1 2010-04-28 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r58313. 4 http://trac.webkit.org/changeset/58313 5 https://bugs.webkit.org/show_bug.cgi?id=38253 6 7 Regression evident in pixel tests: the search icon is always 8 clipped at the bottom. (Requested by jorlow on #webkit). 9 10 * fast/css/input-search-padding.html: Removed. 11 * platform/mac/fast/css/input-search-padding-expected.checksum: Removed. 12 * platform/mac/fast/css/input-search-padding-expected.png: Removed. 13 * platform/mac/fast/css/input-search-padding-expected.txt: Removed. 14 1 15 2010-04-28 Shinichiro Hamaji <hamaji@chromium.org> 2 16 -
trunk/WebCore/ChangeLog
r58390 r58400 1 2010-04-28 Sheriff Bot <webkit.review.bot@gmail.com> 2 3 Unreviewed, rolling out r58313. 4 http://trac.webkit.org/changeset/58313 5 https://bugs.webkit.org/show_bug.cgi?id=38253 6 7 Regression evident in pixel tests: the search icon is always 8 clipped at the bottom. (Requested by jorlow on #webkit). 9 10 * rendering/RenderTextControl.cpp: 11 (WebCore::RenderTextControl::controlClipRect): 12 * rendering/RenderTextControl.h: 13 (WebCore::RenderTextControl::hasControlClip): 14 * rendering/RenderTextControlSingleLine.cpp: 15 (WebCore::RenderTextControlSingleLine::paint): 16 * rendering/RenderTextControlSingleLine.h: 17 1 18 2010-04-28 Justin McPherson <justin.mcpherson@nokia.com> 2 19 -
trunk/WebCore/rendering/RenderTextControl.cpp
r58313 r58400 432 432 return; 433 433 m_innerText->defaultEventHandler(event); 434 } 435 436 IntRect RenderTextControl::controlClipRect(int tx, int ty) const 437 { 438 IntRect clipRect = contentBoxRect(); 439 clipRect.move(tx, ty); 440 return clipRect; 434 441 } 435 442 -
trunk/WebCore/rendering/RenderTextControl.h
r58313 r58400 96 96 virtual const char* renderName() const { return "RenderTextControl"; } 97 97 virtual bool isTextControl() const { return true; } 98 virtual bool hasControlClip() const { return false; } 99 virtual IntRect controlClipRect(int tx, int ty) const; 98 100 virtual void calcPrefWidths(); 99 101 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } -
trunk/WebCore/rendering/RenderTextControlSingleLine.cpp
r58313 r58400 1 1 /** 2 * Copyright (C) 2006, 2007 , 2010Apple Inc. All rights reserved.2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 3 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmobile.com/) 4 4 * … … 186 186 IntRect contentsRect = contentBoxRect(); 187 187 188 // Center vertically like the text.189 contentsRect.setY((height() - contentsRect.height()) / 2);190 191 188 // Convert the rect into the coords used for painting the content 192 189 contentsRect.move(tx + x(), ty + y()); … … 360 357 repaint(); 361 358 } 362 }363 364 IntRect RenderTextControlSingleLine::controlClipRect(int tx, int ty) const365 {366 // This should only get called for search inputs, which have an innerBlock.367 ASSERT(hasControlClip());368 ASSERT(m_innerBlock);369 370 RenderBox* renderBox = m_innerBlock->renderBox();371 IntRect clipRect = IntRect(renderBox->x(), renderBox->y(), contentWidth(), contentHeight());372 clipRect.move(tx, ty);373 return clipRect;374 359 } 375 360 -
trunk/WebCore/rendering/RenderTextControlSingleLine.h
r58313 r58400 56 56 private: 57 57 virtual bool hasControlClip() const { return m_cancelButton; } 58 virtual IntRect controlClipRect(int tx, int ty) const;59 58 virtual bool isTextField() const { return true; } 60 59
Note: See TracChangeset
for help on using the changeset viewer.