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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 2208463003: First step of PaintInvalidator implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: - Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 30 matching lines...) Expand all
41 #include "core/layout/LayoutMultiColumnFlowThread.h" 41 #include "core/layout/LayoutMultiColumnFlowThread.h"
42 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h" 42 #include "core/layout/LayoutMultiColumnSpannerPlaceholder.h"
43 #include "core/layout/LayoutPagedFlowThread.h" 43 #include "core/layout/LayoutPagedFlowThread.h"
44 #include "core/layout/LayoutView.h" 44 #include "core/layout/LayoutView.h"
45 #include "core/layout/TextAutosizer.h" 45 #include "core/layout/TextAutosizer.h"
46 #include "core/layout/line/GlyphOverflow.h" 46 #include "core/layout/line/GlyphOverflow.h"
47 #include "core/layout/line/InlineIterator.h" 47 #include "core/layout/line/InlineIterator.h"
48 #include "core/layout/line/InlineTextBox.h" 48 #include "core/layout/line/InlineTextBox.h"
49 #include "core/layout/line/LineWidth.h" 49 #include "core/layout/line/LineWidth.h"
50 #include "core/layout/shapes/ShapeOutsideInfo.h" 50 #include "core/layout/shapes/ShapeOutsideInfo.h"
51 #include "core/paint/BlockFlowPaintInvalidator.h"
51 #include "core/paint/PaintLayer.h" 52 #include "core/paint/PaintLayer.h"
52 #include "wtf/PtrUtil.h" 53 #include "wtf/PtrUtil.h"
53 #include <memory> 54 #include <memory>
54 55
55 namespace blink { 56 namespace blink {
56 57
57 bool LayoutBlockFlow::s_canPropagateFloatIntoSibling = false; 58 bool LayoutBlockFlow::s_canPropagateFloatIntoSibling = false;
58 59
59 struct SameSizeAsLayoutBlockFlow : public LayoutBlock { 60 struct SameSizeAsLayoutBlockFlow : public LayoutBlock {
60 LineBoxList lineBoxes; 61 LineBoxList lineBoxes;
(...skipping 3713 matching lines...) Expand 10 before | Expand all | Expand 10 after
3774 LayoutRect rect(additionalOffset.x() + curr->x(), additionalOffset.y () + top, curr->width(), bottom - top); 3775 LayoutRect rect(additionalOffset.x() + curr->x(), additionalOffset.y () + top, curr->width(), bottom - top);
3775 if (!rect.isEmpty()) 3776 if (!rect.isEmpty())
3776 rects.append(rect); 3777 rects.append(rect);
3777 } 3778 }
3778 } 3779 }
3779 3780
3780 if (inlineElementContinuation) 3781 if (inlineElementContinuation)
3781 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows); 3782 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows);
3782 } 3783 }
3783 3784
3785 PaintInvalidationReason LayoutBlockFlow::invalidatePaintIfNeeded(const PaintInva lidatorContext& context) const
3786 {
3787 return BlockFlowPaintInvalidator(*this, context).invalidatePaintIfNeeded();
3788 }
3789
3784 } // namespace blink 3790 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.h ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698