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

Unified Diff: third_party/WebKit/Source/core/layout/PaintInvalidationState.h

Issue 1861003003: VisualRectMappingTest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@Optional
Patch Set: CORE_EXPORT PaintInvalidationState Created 4 years, 8 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/layout/PaintInvalidationState.h
diff --git a/third_party/WebKit/Source/core/layout/PaintInvalidationState.h b/third_party/WebKit/Source/core/layout/PaintInvalidationState.h
index 8852577077d4d4608ad84f690e10d655e755f1a7..1943b9d003b068bda0561be983b239bab1224e3a 100644
--- a/third_party/WebKit/Source/core/layout/PaintInvalidationState.h
+++ b/third_party/WebKit/Source/core/layout/PaintInvalidationState.h
@@ -5,6 +5,7 @@
#ifndef PaintInvalidationState_h
#define PaintInvalidationState_h
+#include "core/CoreExport.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/transforms/AffineTransform.h"
#include "wtf/Allocator.h"
@@ -35,7 +36,7 @@ enum VisualRectFlags {
//
// See Source/core/paint/README.md ### PaintInvalidationState for more details.
-class PaintInvalidationState {
+class CORE_EXPORT PaintInvalidationState {
DISALLOW_NEW_EXCEPT_PLACEMENT_NEW();
WTF_MAKE_NONCOPYABLE(PaintInvalidationState);
public:
@@ -81,14 +82,14 @@ public:
#endif
private:
+ friend class VisualRectMappingTest;
+
void updateForNormalChildren();
LayoutRect computePaintInvalidationRectInBackingForSVG() const;
void addClipRectRelativeToPaintOffset(const LayoutRect& localClipRect);
- friend class ForceHorriblySlowRectMapping;
-
const LayoutObject& m_currentObject;
bool m_forcedSubtreeInvalidationWithinContainer;
@@ -108,7 +109,7 @@ private:
// Whether m_paintOffset[XXX] and m_clipRect[XXX] are valid and can be used
// to map a rect from space of the current object to space of paintInvalidationContainer.
- mutable bool m_cachedOffsetsEnabled;
+ bool m_cachedOffsetsEnabled;
bool m_cachedOffsetsForAbsolutePositionEnabled;
// The following two fields are never null. Declare them as pointers because we need some

Powered by Google App Engine
This is Rietveld 408576698