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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp

Issue 2604073002: Apply offset from the correct graphics layer; simplify code for link highlights. (Closed)
Patch Set: none Created 4 years 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: third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp b/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
index b42ccdb4801d97f37fb210900c2c1eb03573aea4..a10a4d94f78499cdc3d18ce281e7cfab53457b91 100644
--- a/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutFlowThread.cpp
@@ -118,7 +118,8 @@ void LayoutFlowThread::computeLogicalHeight(
}
void LayoutFlowThread::absoluteQuadsForDescendant(const LayoutBox& descendant,
- Vector<FloatQuad>& quads) {
+ Vector<FloatQuad>& quads,
+ MapCoordinatesFlags mode) {
LayoutPoint offsetFromFlowThread;
for (const LayoutObject* object = &descendant; object != this;) {
const LayoutObject* container = object->container();
@@ -137,7 +138,7 @@ void LayoutFlowThread::absoluteQuadsForDescendant(const LayoutBox& descendant,
// coordinates for zero-height objects.
fragment.inclusiveIntersect(iterator.fragmentainerInFlowThread());
fragment.moveBy(-offsetFromFlowThread);
- quads.append(descendant.localToAbsoluteQuad(FloatRect(fragment)));
+ quads.append(descendant.localToAbsoluteQuad(FloatRect(fragment), mode));
}
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutFlowThread.h ('k') | third_party/WebKit/Source/core/layout/LayoutInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698