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

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

Issue 2640863003: Inline PrePaintTreeWalk private methods and static functions (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
index 1f5b571c5218aa8c8354299d8716c93302cd752f..2f447211857091dd6f91a55aa691e0478df469aa 100644
--- a/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintInvalidator.cpp
@@ -141,7 +141,7 @@ void PaintInvalidatorContext::mapLocalRectToPaintInvalidationBacking(
geometryMapper, object, rect, *this);
}
-LayoutRect PaintInvalidator::computeVisualRectInBacking(
+inline LayoutRect PaintInvalidator::computeVisualRectInBacking(
const LayoutObject& object,
const PaintInvalidatorContext& context) {
if (object.isSVGChild()) {
@@ -153,7 +153,7 @@ LayoutRect PaintInvalidator::computeVisualRectInBacking(
m_geometryMapper, object, object.localVisualRect(), context);
}
-LayoutPoint PaintInvalidator::computeLocationInBacking(
+inline LayoutPoint PaintInvalidator::computeLocationInBacking(
const LayoutObject& object,
const PaintInvalidatorContext& context) {
// Use visual rect location for LayoutTexts because it suffices to check
@@ -192,8 +192,9 @@ LayoutPoint PaintInvalidator::computeLocationInBacking(
return point;
}
-void PaintInvalidator::updatePaintingLayer(const LayoutObject& object,
- PaintInvalidatorContext& context) {
+inline void PaintInvalidator::updatePaintingLayer(
+ const LayoutObject& object,
+ PaintInvalidatorContext& context) {
if (object.hasLayer() &&
toLayoutBoxModelObject(object).hasSelfPaintingLayer()) {
context.paintingLayer = toLayoutBoxModelObject(object).layer();
@@ -263,8 +264,8 @@ class ScopedUndoFrameViewContentClipAndScroll {
} // namespace
-void PaintInvalidator::updateContext(const LayoutObject& object,
- PaintInvalidatorContext& context) {
+inline void PaintInvalidator::updateContext(const LayoutObject& object,
+ PaintInvalidatorContext& context) {
Optional<ScopedUndoFrameViewContentClipAndScroll>
undoFrameViewContentClipAndScroll;

Powered by Google App Engine
This is Rietveld 408576698