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

Unified Diff: pdf/paint_aggregator.cc

Issue 2828413005: Clang format pdf/ (Closed)
Patch Set: Manual tweaks 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 | « pdf/out_of_process_instance.cc ('k') | pdf/paint_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/paint_aggregator.cc
diff --git a/pdf/paint_aggregator.cc b/pdf/paint_aggregator.cc
index ba444cfdf995ea85c4d69648f936fb7c3ca807af..3ad114c1a08f00c3f3753751936e89e769ad21b6 100644
--- a/pdf/paint_aggregator.cc
+++ b/pdf/paint_aggregator.cc
@@ -40,12 +40,10 @@ PaintAggregator::PaintUpdate::PaintUpdate(const PaintUpdate& that) = default;
PaintAggregator::PaintUpdate::~PaintUpdate() = default;
-PaintAggregator::InternalPaintUpdate::InternalPaintUpdate() :
- synthesized_scroll_damage_rect_(false) {
-}
+PaintAggregator::InternalPaintUpdate::InternalPaintUpdate()
+ : synthesized_scroll_damage_rect_(false) {}
-PaintAggregator::InternalPaintUpdate::~InternalPaintUpdate() {
-}
+PaintAggregator::InternalPaintUpdate::~InternalPaintUpdate() {}
pp::Rect PaintAggregator::InternalPaintUpdate::GetScrollDamage() const {
// Should only be scrolling in one direction at a time.
@@ -83,8 +81,7 @@ pp::Rect PaintAggregator::InternalPaintUpdate::GetScrollDamage() const {
return scroll_rect.Intersect(damaged_rect);
}
-PaintAggregator::PaintAggregator() {
-}
+PaintAggregator::PaintAggregator() {}
bool PaintAggregator::HasPendingUpdate() const {
return !update_.scroll_rect.IsEmpty() || !update_.paint_rects.empty();
@@ -121,8 +118,8 @@ PaintAggregator::PaintUpdate PaintAggregator::GetPendingUpdate() {
void PaintAggregator::SetIntermediateResults(
const std::vector<ReadyRect>& ready,
const std::vector<pp::Rect>& pending) {
- update_.ready_rects.insert(
- update_.ready_rects.end(), ready.begin(), ready.end());
+ update_.ready_rects.insert(update_.ready_rects.end(), ready.begin(),
+ ready.end());
update_.paint_rects = pending;
}
@@ -283,8 +280,7 @@ void PaintAggregator::InvalidateRectInternal(const pp::Rect& rect_old,
// If the new paint overlaps with a scroll, then also invalidate the rect in
// its new position.
- if (check_scroll &&
- !update_.scroll_rect.IsEmpty() &&
+ if (check_scroll && !update_.scroll_rect.IsEmpty() &&
update_.scroll_rect.Intersects(rect)) {
InvalidateRectInternal(ScrollPaintRect(rect, update_.scroll_delta), false);
}
« no previous file with comments | « pdf/out_of_process_instance.cc ('k') | pdf/paint_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698