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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.cpp

Issue 2876803003: Generate diffs for fields in ComputedStyle that use their public getters (Closed)
Patch Set: 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/style/ComputedStyle.cpp
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.cpp b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
index 56d1acbf7857b734517687b151f9fe8a33157107..1b0139e49fd93a1541e1d6720d0d00eba6e4624b 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.cpp
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.cpp
@@ -586,16 +586,6 @@ bool ComputedStyle::DiffNeedsFullLayoutAndPaintInvalidation(
// - or the layoutObject knows how to exactly invalidate paints caused by the
// layout change instead of forced full paint invalidation.
- if (surround_data_.Get() != other.surround_data_.Get()) {
- // If our border widths change, then we need to layout. Other changes to
- // borders only necessitate a paint invalidation.
- if (!(BorderWidthEquals(BorderLeftWidth(), other.BorderLeftWidth())) ||
shend 2017/05/12 06:59:17 The generated code does == directly, instead of Bo
nainar 2017/05/12 07:07:47 So I checked before I landed my CL splitting borde
- !(BorderWidthEquals(BorderTopWidth(), other.BorderTopWidth())) ||
- !(BorderWidthEquals(BorderBottomWidth(), other.BorderBottomWidth())) ||
- !(BorderWidthEquals(BorderRightWidth(), other.BorderRightWidth())))
- return true;
- }
-
if (ComputedStyleBase::DiffNeedsFullLayoutAndPaintInvalidation(other))
return true;

Powered by Google App Engine
This is Rietveld 408576698