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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 2060053002: Set paintingLayerNeedsRepaint() in layout tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set paintingLayerNeedsRepaint() in layout tree Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 2811 matching lines...) Expand 10 before | Expand all | Expand 10 after
2822 2822
2823 invalidatePaintRectangle(paintInvalidationRect); // We need to do a part ial paint invalidation of our content. 2823 invalidatePaintRectangle(paintInvalidationRect); // We need to do a part ial paint invalidation of our content.
2824 if (hasReflection()) 2824 if (hasReflection())
2825 invalidatePaintRectangle(reflectedRect(paintInvalidationRect)); 2825 invalidatePaintRectangle(reflectedRect(paintInvalidationRect));
2826 } 2826 }
2827 2827
2828 m_paintInvalidationLogicalTop = LayoutUnit(); 2828 m_paintInvalidationLogicalTop = LayoutUnit();
2829 m_paintInvalidationLogicalBottom = LayoutUnit(); 2829 m_paintInvalidationLogicalBottom = LayoutUnit();
2830 } 2830 }
2831 2831
2832 void LayoutBlockFlow::invalidateDisplayItemClients(const LayoutBoxModelObject& p aintInvalidationContainer, PaintInvalidationReason invalidationReason) const 2832 void LayoutBlockFlow::invalidateDisplayItemClients(const LayoutBoxModelObject& p aintInvalidationContainer, PaintInvalidationReason invalidationReason)
2833 { 2833 {
2834 LayoutBlock::invalidateDisplayItemClients(paintInvalidationContainer, invali dationReason); 2834 LayoutBlock::invalidateDisplayItemClients(paintInvalidationContainer, invali dationReason);
2835 2835
2836 // If the block is a continuation or containing block of an inline continuat ion, invalidate the 2836 // If the block is a continuation or containing block of an inline continuat ion, invalidate the
2837 // start object of the continuations if it has focus ring because change of continuation may change 2837 // start object of the continuations if it has focus ring because change of continuation may change
2838 // the shape of the focus ring. 2838 // the shape of the focus ring.
2839 if (!isAnonymous()) 2839 if (!isAnonymous())
2840 return; 2840 return;
2841 2841
2842 LayoutObject* startOfContinuations = nullptr; 2842 LayoutObject* startOfContinuations = nullptr;
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after
3829 if (!rect.isEmpty()) 3829 if (!rect.isEmpty())
3830 rects.append(rect); 3830 rects.append(rect);
3831 } 3831 }
3832 } 3832 }
3833 3833
3834 if (inlineElementContinuation) 3834 if (inlineElementContinuation)
3835 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows); 3835 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows);
3836 } 3836 }
3837 3837
3838 } // namespace blink 3838 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698