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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.h

Issue 2785583002: [SPInvalidation] Always inline the internal methods of PaintLayerClipper (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayerClipper.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerClipper.h b/third_party/WebKit/Source/core/paint/PaintLayerClipper.h
index a98c1fe9de13641f1d357298d4ab179671568976..ddfc612bcffbf64b41f554ab2e654c15239ce4ec 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerClipper.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerClipper.h
@@ -212,19 +212,20 @@ class CORE_EXPORT PaintLayerClipper {
void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const;
- bool shouldClipOverflow(const ClipRectsContext&) const;
- bool shouldRespectOverflowClip(const ClipRectsContext&) const;
+ ALWAYS_INLINE bool shouldClipOverflow(const ClipRectsContext&) const;
+ ALWAYS_INLINE bool shouldRespectOverflowClip(const ClipRectsContext&) const;
// Returned clip rect in |output| is in the space of the context's rootLayer.
- void calculateClipRectWithGeometryMapper(const ClipRectsContext&,
- bool isForeground,
- ClipRect& output) const;
+ ALWAYS_INLINE void calculateClipRectWithGeometryMapper(
+ const ClipRectsContext&,
+ bool isForeground,
+ ClipRect& output) const;
// Mutates the given rect into a rect in the space of the context's
// rootLayer.
- void mapLocalToRootWithGeometryMapper(const ClipRectsContext&,
- LayoutRect&) const;
+ ALWAYS_INLINE void mapLocalToRootWithGeometryMapper(const ClipRectsContext&,
+ LayoutRect&) const;
// Same as calculateRects, but using GeometryMapper.
- void calculateRectsWithGeometryMapper(
+ ALWAYS_INLINE void calculateRectsWithGeometryMapper(
const ClipRectsContext&,
const LayoutRect& paintDirtyRect,
LayoutRect& layerBounds,
@@ -232,9 +233,9 @@ class CORE_EXPORT PaintLayerClipper {
ClipRect& foregroundRect,
const LayoutPoint* offsetFromRoot = 0) const;
- void applyOverflowClipToBackgroundRectWithGeometryMapper(
- const ClipRectsContext&,
- ClipRect&) const;
+ void ALWAYS_INLINE
+ applyOverflowClipToBackgroundRectWithGeometryMapper(const ClipRectsContext&,
+ ClipRect&) const;
const PaintLayer& m_layer;
GeometryMapper* m_geometryMapper;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698