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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutInline.cpp

Issue 2166923004: Fix Ruby visual rects in flipped blocks writing mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
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 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1089 } 1089 }
1090 1090
1091 // FIXME: We ignore the lightweight clipping rect that controls use, since i f |o| is in mid-layout, 1091 // FIXME: We ignore the lightweight clipping rect that controls use, since i f |o| is in mid-layout,
1092 // its controlClipRect will be wrong. For overflow clip we use the values ca ched by the layer. 1092 // its controlClipRect will be wrong. For overflow clip we use the values ca ched by the layer.
1093 rect.setLocation(topLeft); 1093 rect.setLocation(topLeft);
1094 1094
1095 LayoutBox* containerBox = container->isBox() ? toLayoutBox(container) : null ptr; 1095 LayoutBox* containerBox = container->isBox() ? toLayoutBox(container) : null ptr;
1096 if (containerBox && !containerBox->mapScrollingContentsRectToBoxSpace(rect, container == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRe ctFlags)) 1096 if (containerBox && !containerBox->mapScrollingContentsRectToBoxSpace(rect, container == ancestor ? ApplyNonScrollOverflowClip : ApplyOverflowClip, visualRe ctFlags))
1097 return false; 1097 return false;
1098 1098
1099 if (containerBox) 1099 if (containerBox && !isRuby())
wkorman 2016/07/20 22:14:52 This was needed to avoid losing the topLeft locati
1100 containerBox->flipForWritingMode(rect); 1100 containerBox->flipForWritingMode(rect);
1101 return container->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectF lags); 1101 return container->mapToVisualRectInAncestorSpace(ancestor, rect, visualRectF lags);
1102 } 1102 }
1103 1103
1104 LayoutSize LayoutInline::offsetFromContainer(const LayoutObject* container) cons t 1104 LayoutSize LayoutInline::offsetFromContainer(const LayoutObject* container) cons t
1105 { 1105 {
1106 ASSERT(container == this->container()); 1106 ASSERT(container == this->container());
1107 1107
1108 LayoutSize offset; 1108 LayoutSize offset;
1109 if (isInFlowPositioned()) 1109 if (isInFlowPositioned())
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1352 1352
1353 void LayoutInline::invalidateDisplayItemClients(PaintInvalidationReason invalida tionReason) const 1353 void LayoutInline::invalidateDisplayItemClients(PaintInvalidationReason invalida tionReason) const
1354 { 1354 {
1355 LayoutBoxModelObject::invalidateDisplayItemClients(invalidationReason); 1355 LayoutBoxModelObject::invalidateDisplayItemClients(invalidationReason);
1356 1356
1357 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox()) 1357 for (InlineFlowBox* box = firstLineBox(); box; box = box->nextLineBox())
1358 invalidateDisplayItemClient(*box, invalidationReason); 1358 invalidateDisplayItemClient(*box, invalidationReason);
1359 } 1359 }
1360 1360
1361 } // namespace blink 1361 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698