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

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

Issue 2906253003: Replace call sites to BorderValue functions to save the BorderValue construction cost (Closed)
Patch Set: rune@ renames Created 3 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: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
index 9f618eda4e8d709e7cc4dcf36362c44e99bcf3cd..e26e12c40ce5e6cc972111a69b0f389ad2c9cce8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
@@ -218,7 +218,7 @@ void LayoutTreeAsText::WriteLayoutObject(TextStream& ts,
ts << o.ResolveColor(CSSPropertyBorderTopColor) << ")";
}
- if (o.Style()->BorderRight() != prev_border) {
+ if (!o.Style()->BorderRightEquals(prev_border)) {
prev_border = o.Style()->BorderRight();
if (!box.BorderRight()) {
ts << " none";
@@ -229,7 +229,7 @@ void LayoutTreeAsText::WriteLayoutObject(TextStream& ts,
}
}
- if (o.Style()->BorderBottom() != prev_border) {
+ if (!o.Style()->BorderBottomEquals(prev_border)) {
prev_border = box.Style()->BorderBottom();
if (!box.BorderBottom()) {
ts << " none";
@@ -240,7 +240,7 @@ void LayoutTreeAsText::WriteLayoutObject(TextStream& ts,
}
}
- if (o.Style()->BorderLeft() != prev_border) {
+ if (!o.Style()->BorderLeftEquals(prev_border)) {
prev_border = o.Style()->BorderLeft();
if (!box.BorderLeft()) {
ts << " none";
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutTableSection.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698