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

Unified Diff: Source/core/rendering/RenderInline.cpp

Issue 288013005: Handle transformed descendants when drawing focus rings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix inline-block under inline Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/rendering/RenderInline.cpp
diff --git a/Source/core/rendering/RenderInline.cpp b/Source/core/rendering/RenderInline.cpp
index b92de8789bd01738d8c59bab180c942a3e37c835..dd2302a693d609f522cce2d62de77b75d056169d 100644
--- a/Source/core/rendering/RenderInline.cpp
+++ b/Source/core/rendering/RenderInline.cpp
@@ -1352,17 +1352,7 @@ void RenderInline::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint&
AbsoluteRectsGeneratorContext context(rects, additionalOffset);
generateLineBoxRects(context);
- for (RenderObject* curr = firstChild(); curr; curr = curr->nextSibling()) {
- if (!curr->isText() && !curr->isListMarker()) {
- FloatPoint pos(additionalOffset);
- // FIXME: This doesn't work correctly with transforms.
- if (curr->hasLayer())
- pos = curr->localToContainerPoint(FloatPoint(), paintContainer);
- else if (curr->isBox())
- pos.move(toRenderBox(curr)->locationOffset());
- curr->addFocusRingRects(rects, flooredIntPoint(pos), paintContainer);
- }
- }
+ addChildrenFocusRingRects(rects, additionalOffset, paintContainer);
if (continuation()) {
if (continuation()->isInline())

Powered by Google App Engine
This is Rietveld 408576698