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

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

Issue 2849603004: Introduce PaintPropertyTreeBuilderFragmentContext and use it throughout. (Closed)
Patch Set: none Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
diff --git a/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h b/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
index c6ca772781ba3b01e61f5afb16dd45ca17ea8388..70ddf33b70458c0bb54e0616820c446bbe297af3 100644
--- a/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
+++ b/third_party/WebKit/Source/core/paint/FindPaintOffsetAndVisualRectNeedingUpdate.h
@@ -25,11 +25,10 @@ namespace blink {
class FindPaintOffsetNeedingUpdateScope {
public:
- FindPaintOffsetNeedingUpdateScope(
- const LayoutObject& object,
- const PaintPropertyTreeBuilderContext& context)
+ FindPaintOffsetNeedingUpdateScope(const LayoutObject& object,
+ bool& is_actually_needed)
: object_(object),
- context_(context),
+ is_actually_needed_(is_actually_needed),
old_paint_offset_(object.PaintOffset()) {
if (object.PaintProperties() &&
object.PaintProperties()->PaintOffsetTranslation()) {
@@ -39,7 +38,7 @@ class FindPaintOffsetNeedingUpdateScope {
}
~FindPaintOffsetNeedingUpdateScope() {
- if (context_.is_actually_needed)
+ if (is_actually_needed_)
return;
DCHECK_OBJECT_PROPERTY_EQ(object_, &old_paint_offset_,
&object_.PaintOffset());
@@ -53,7 +52,7 @@ class FindPaintOffsetNeedingUpdateScope {
private:
const LayoutObject& object_;
- const PaintPropertyTreeBuilderContext& context_;
+ const bool& is_actually_needed_;
LayoutPoint old_paint_offset_;
RefPtr<const TransformPaintPropertyNode> old_paint_offset_translation_;
};
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/FindPropertiesNeedingUpdate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698