Changeset 88400 in webkit
- Timestamp:
- Jun 8, 2011 4:00:04 PM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r88398 r88400 1 2011-06-08 Emil A Eklund <eae@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 RenderEmbeddedObject::getReplacementTextGeometry 6 https://bugs.webkit.org/show_bug.cgi?id=62313 7 8 Replace the last use of tx, ty with IntPoint. 9 10 Covered by existing tests. 11 12 * platform/graphics/FloatRect.h: 13 (WebCore::FloatRect::move): 14 (WebCore::FloatRect::moveBy): 15 * rendering/RenderEmbeddedObject.cpp: 16 (WebCore::RenderEmbeddedObject::paintReplaced): 17 (WebCore::RenderEmbeddedObject::getReplacementTextGeometry): 18 (WebCore::RenderEmbeddedObject::isInMissingPluginIndicator): 19 * rendering/RenderEmbeddedObject.h: 20 1 21 2011-06-08 Tim Horton <timothy_horton@apple.com> 2 22 -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r84101 r88400 71 71 72 72 class IntRect; 73 class IntPoint; 73 74 74 75 class FloatRect { … … 106 107 107 108 void move(const FloatSize& delta) { m_location += delta; } 108 void move(float dx, float dy) { m_location.move(dx, dy); } 109 void move(float dx, float dy) { m_location.move(dx, dy); } 110 void moveBy(const FloatPoint& delta) { m_location.move(delta.x(), delta.y()); } 109 111 110 112 bool intersects(const FloatRect&) const; -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.cpp
r88250 r88400 164 164 TextRun run(""); 165 165 float textWidth; 166 if (!getReplacementTextGeometry(paintOffset .x(), paintOffset.y(), contentRect, path, replacementTextRect, font, run, textWidth))166 if (!getReplacementTextGeometry(paintOffset, contentRect, path, replacementTextRect, font, run, textWidth)) 167 167 return; 168 168 … … 181 181 } 182 182 183 bool RenderEmbeddedObject::getReplacementTextGeometry( int tx, int ty, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth)183 bool RenderEmbeddedObject::getReplacementTextGeometry(const IntPoint& accumulatedOffset, FloatRect& contentRect, Path& path, FloatRect& replacementTextRect, Font& font, TextRun& run, float& textWidth) 184 184 { 185 185 contentRect = contentBoxRect(); 186 contentRect.move (tx, ty);186 contentRect.moveBy(accumulatedOffset); 187 187 188 188 FontDescription fontDescription; … … 258 258 TextRun run(""); 259 259 float textWidth; 260 if (!getReplacementTextGeometry( 0, 0, contentRect, path, replacementTextRect, font, run, textWidth))260 if (!getReplacementTextGeometry(IntPoint(), contentRect, path, replacementTextRect, font, run, textWidth)) 261 261 return false; 262 262 -
trunk/Source/WebCore/rendering/RenderEmbeddedObject.h
r88250 r88400 69 69 void setMissingPluginIndicatorIsPressed(bool); 70 70 bool isInMissingPluginIndicator(MouseEvent*); 71 bool getReplacementTextGeometry( int tx, int ty, FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth);71 bool getReplacementTextGeometry(const IntPoint& accumulatedOffset, FloatRect& contentRect, Path&, FloatRect& replacementTextRect, Font&, TextRun&, float& textWidth); 72 72 73 73 String m_replacementText;
Note: See TracChangeset
for help on using the changeset viewer.