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

Unified Diff: third_party/WebKit/Source/core/paint/SVGModelObjectPaintInvalidator.cpp

Issue 2423513002: Simplify incremental paint invalidation (Closed)
Patch Set: Update test and rebaseline layout tests Created 4 years, 2 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/paint/SVGModelObjectPaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGModelObjectPaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/SVGModelObjectPaintInvalidator.cpp
deleted file mode 100644
index 90058088c541abf90a5f0d17a0a83bd360b2cc6d..0000000000000000000000000000000000000000
--- a/third_party/WebKit/Source/core/paint/SVGModelObjectPaintInvalidator.cpp
+++ /dev/null
@@ -1,29 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "core/paint/SVGModelObjectPaintInvalidator.h"
-
-#include "core/layout/svg/LayoutSVGModelObject.h"
-#include "core/paint/ObjectPaintInvalidator.h"
-
-namespace blink {
-
-PaintInvalidationReason
-SVGModelObjectPaintInvalidator::invalidatePaintIfNeeded() {
- ObjectPaintInvalidatorWithContext objectPaintInvalidator(m_object, m_context);
- PaintInvalidationReason reason =
- objectPaintInvalidator.computePaintInvalidationReason();
-
- // Disable incremental invalidation for SVG objects to prevent under-
- // invalidation. Unlike boxes, it is non-trivial (and rare) for SVG objects
- // to be able to be incrementally invalidated (e.g., on height changes).
- if (reason == PaintInvalidationIncremental &&
- m_context.oldBounds != m_context.newBounds)
- reason = PaintInvalidationFull;
-
- return objectPaintInvalidator.invalidatePaintIfNeededWithComputedReason(
- reason);
-}
-
-} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698