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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp

Issue 2518363003: Refactor InlineBox::calculateBoundaries() (Closed)
Patch Set: Created 4 years, 1 month 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/inspector/InspectorCSSAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
index 00bcca6123ac82b211e3336b6e16277902eb6b2c..d039ad689db6a1c26a3a5cf760c4651d110c5ef6 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorCSSAgent.cpp
@@ -2444,7 +2444,7 @@ void InspectorCSSAgent::visitLayoutTreeNodes(
protocol::Array<protocol::CSS::InlineTextBox>::create();
for (const InlineTextBox* textBox = layoutText->firstTextBox(); textBox;
textBox = textBox->nextTextBox()) {
- FloatRect localCoordsTextBoxRect(textBox->calculateBoundaries());
+ FloatRect localCoordsTextBoxRect(textBox->frameRect());
FloatRect absoluteCoordsTextBoxRect =
layoutObject->localToAbsoluteQuad(localCoordsTextBoxRect)
.boundingBox();

Powered by Google App Engine
This is Rietveld 408576698