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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBox.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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index dcb72f207e210bc5d9467844ac344a9358f78a48..5095e4701536c26aa63e463e489a22e4ab56ee68 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -703,13 +703,16 @@ void LayoutBox::absoluteRects(Vector<IntRect>& rects,
rects.append(pixelSnappedIntRect(accumulatedOffset, size()));
}
-void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads) const {
+void LayoutBox::absoluteQuads(Vector<FloatQuad>& quads,
+ MapCoordinatesFlags mode) const {
if (LayoutFlowThread* flowThread = flowThreadContainingBlock()) {
- flowThread->absoluteQuadsForDescendant(*this, quads);
+ flowThread->absoluteQuadsForDescendant(*this, quads, mode);
return;
}
- quads.append(localToAbsoluteQuad(FloatRect(
- 0, 0, m_frameRect.width().toFloat(), m_frameRect.height().toFloat())));
+ quads.append(
+ localToAbsoluteQuad(FloatRect(0, 0, m_frameRect.width().toFloat(),
+ m_frameRect.height().toFloat()),
+ mode));
}
FloatRect LayoutBox::localBoundingBoxRectForAccessibility() const {
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutBoxModelObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698