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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h

Issue 2237643003: [layoutng] Add a base class for layout algorithms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fast alloc and noncopyable 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
index 9f5f30ba0d9d7196379b3dc6087748b52cc96edf..0f92ad1b29a26372479cc7c0bbe29d4435ac6866 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.h
@@ -7,6 +7,7 @@
#include "core/CoreExport.h"
#include "core/layout/ng/ng_box.h"
+#include "core/layout/ng/ng_layout_algorithm.h"
#include "wtf/RefPtr.h"
namespace blink {
@@ -17,7 +18,7 @@ class NGFragment;
// A class for general block layout (e.g. a <div> with no special style).
// Lays out the children in sequence.
-class CORE_EXPORT NGBlockLayoutAlgorithm {
+class CORE_EXPORT NGBlockLayoutAlgorithm : public NGLayoutAlgorithm {
public:
NGBlockLayoutAlgorithm(PassRefPtr<const ComputedStyle>, NGBox);
@@ -26,7 +27,7 @@ class CORE_EXPORT NGBlockLayoutAlgorithm {
// resulting layout information.
// This function can not be const because for interruptible layout, we have
// to be able to store state information.
- NGFragment* layout(const NGConstraintSpace&);
+ NGFragment* layout(const NGConstraintSpace&) override;
private:
RefPtr<const ComputedStyle> m_style;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/ng/ng_layout_algorithm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698