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

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

Issue 2325073002: [LayoutNG] Handle border and padding when sizing a block and when placing its children. (Closed)
Patch Set: Add unit test. Created 4 years, 3 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/layout/ng/ng_length_utils.h
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
index ee849bb8601aca97f0cb9ddc7706b216dacca5ba..2847bc64fce4226a472607a50132651a971c5668 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
+++ b/third_party/WebKit/Source/core/layout/ng/ng_length_utils.h
@@ -49,6 +49,18 @@ CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&,
const ComputedStyle&,
LayoutUnit contentSize);
+CORE_EXPORT LayoutUnit computeBorderAndPaddingBefore(const NGConstraintSpace&,
+ const ComputedStyle&);
+
+CORE_EXPORT LayoutUnit computeBorderAndPaddingAfter(const NGConstraintSpace&,
+ const ComputedStyle&);
+
+CORE_EXPORT LayoutUnit computeBorderAndPaddingStart(const NGConstraintSpace&,
+ const ComputedStyle&);
+
+CORE_EXPORT LayoutUnit computeBorderAndPaddingEnd(const NGConstraintSpace&,
+ const ComputedStyle&);
+
CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&,
const ComputedStyle&);

Powered by Google App Engine
This is Rietveld 408576698