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

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

Issue 1389803002: Skip paint offset caching when DisplayItemList is skipping cache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TableCellBackground
Patch Set: Rebase on origin/master Created 5 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/InlinePainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/InlinePainter.cpp b/third_party/WebKit/Source/core/paint/InlinePainter.cpp
index e8c7b6896161ce29e412a42a753385140f08355d..cad1e838f4f7ebe32b3ff5301ad030126746b852 100644
--- a/third_party/WebKit/Source/core/paint/InlinePainter.cpp
+++ b/third_party/WebKit/Source/core/paint/InlinePainter.cpp
@@ -21,7 +21,7 @@ namespace blink {
void InlinePainter::paint(const PaintInfo& paintInfo, const LayoutPoint& paintOffset)
{
- if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled()) {
+ if (RuntimeEnabledFeatures::slimmingPaintOffsetCachingEnabled() && !paintInfo.context->displayItemList()->skippingCache()) {
if (m_layoutInline.paintOffsetChanged(paintOffset)) {
paintInfo.context->displayItemList()->invalidatePaintOffset(m_layoutInline);
LineBoxListPainter(*m_layoutInline.lineBoxes()).invalidateLineBoxPaintOffsets(paintInfo);

Powered by Google App Engine
This is Rietveld 408576698