Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: third_party/WebKit/WebCore/rendering/RenderForeignObject.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * This file is part of the WebKit project. 2 * This file is part of the WebKit project.
3 * 3 *
4 * Copyright (C) 2006 Apple Computer, Inc. 4 * Copyright (C) 2006 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 105
106 view()->enableLayoutState(); 106 view()->enableLayoutState();
107 setNeedsLayout(false); 107 setNeedsLayout(false);
108 } 108 }
109 109
110 bool RenderForeignObject::nodeAtPoint(const HitTestRequest& request, HitTestResu lt& result, int x, int y, int tx, int ty, HitTestAction hitTestAction) 110 bool RenderForeignObject::nodeAtPoint(const HitTestRequest& request, HitTestResu lt& result, int x, int y, int tx, int ty, HitTestAction hitTestAction)
111 { 111 {
112 TransformationMatrix totalTransform = absoluteTransform(); 112 TransformationMatrix totalTransform = absoluteTransform();
113 totalTransform *= translationForAttributes(); 113 totalTransform *= translationForAttributes();
114 double localX, localY; 114 double localX, localY;
115 totalTransform.inverse().map(x, y, &localX, &localY); 115 totalTransform.inverse().map(x, y, localX, localY);
116 return RenderBlock::nodeAtPoint(request, result, static_cast<int>(localX), s tatic_cast<int>(localY), tx, ty, hitTestAction); 116 return RenderBlock::nodeAtPoint(request, result, static_cast<int>(localX), s tatic_cast<int>(localY), tx, ty, hitTestAction);
117 } 117 }
118 118
119 } // namespace WebCore 119 } // namespace WebCore
120 120
121 #endif // ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT) 121 #endif // ENABLE(SVG) && ENABLE(SVG_FOREIGN_OBJECT)
OLDNEW
« no previous file with comments | « third_party/WebKit/WebCore/rendering/RenderBoxModelObject.cpp ('k') | third_party/WebKit/WebCore/rendering/RenderInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698