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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.h

Issue 2620763005: Pad inval rects to compensate for Skia's hairline stroke
Patch Set: limit to composited bounds Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 const PaintLayer* scrollParent, 494 const PaintLayer* scrollParent,
495 bool& owningLayerIsClipped, 495 bool& owningLayerIsClipped,
496 bool& owningLayerIsMasked); 496 bool& owningLayerIsMasked);
497 497
498 const PaintLayer* scrollParent(); 498 const PaintLayer* scrollParent();
499 499
500 // Clear the groupedMapping entry on the layer at the given index, only if 500 // Clear the groupedMapping entry on the layer at the given index, only if
501 // that layer does not appear earlier in the set of layers for this object. 501 // that layer does not appear earlier in the set of layers for this object.
502 bool invalidateLayerIfNoPrecedingEntry(size_t); 502 bool invalidateLayerIfNoPrecedingEntry(size_t);
503 503
504 // Returns the inval rect adjusted for subpixel accumulation and padded for
505 // safe rasterization.
506 IntRect adjustedInvalRect(const LayoutRect&) const;
507
504 PaintLayer& m_owningLayer; 508 PaintLayer& m_owningLayer;
505 509
506 // The hierarchy of layers that is maintained by the CompositedLayerMapping 510 // The hierarchy of layers that is maintained by the CompositedLayerMapping
507 // looks like this: 511 // looks like this:
508 // 512 //
509 // + m_ancestorClippingLayer [OPTIONAL] 513 // + m_ancestorClippingLayer [OPTIONAL]
510 // + m_graphicsLayer 514 // + m_graphicsLayer
511 // + m_childTransformLayer [OPTIONAL] 515 // + m_childTransformLayer [OPTIONAL]
512 // | + m_childContainmentLayer [OPTIONAL] 516 // | + m_childContainmentLayer [OPTIONAL]
513 // | <-OR-> 517 // | <-OR->
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 // layer and the graphics layer because the scrolling contents layer is 695 // layer and the graphics layer because the scrolling contents layer is
692 // clipped by the padding box. 696 // clipped by the padding box.
693 unsigned m_backgroundPaintsOntoGraphicsLayer : 1; 697 unsigned m_backgroundPaintsOntoGraphicsLayer : 1;
694 698
695 friend class CompositedLayerMappingTest; 699 friend class CompositedLayerMappingTest;
696 }; 700 };
697 701
698 } // namespace blink 702 } // namespace blink
699 703
700 #endif // CompositedLayerMapping_h 704 #endif // CompositedLayerMapping_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698