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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 2670643004: Rename EDisplay values with k prefix. (Closed)
Patch Set: Rebase Created 3 years, 9 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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index dc258c4535c16784f04f72d00c3e8870d243d211..c5cc0e463a87a5d47d39fb45ad840d86e5d05970 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -553,7 +553,7 @@ bool LayoutBlock::createsNewFormattingContext() const {
isTableCaption() || isFieldset() || isWritingModeRoot() ||
isDocumentElement() || isColumnSpanAll() || isGridItem() ||
style()->containsPaint() || style()->containsLayout() ||
- isSVGForeignObject() || style()->display() == EDisplay::FlowRoot;
+ isSVGForeignObject() || style()->display() == EDisplay::kFlowRoot;
}
static inline bool changeInAvailableLogicalHeightAffectsChild(
@@ -2013,12 +2013,12 @@ LayoutBlock* LayoutBlock::createAnonymousWithParentAndDisplay(
// anonymous logic ?
EDisplay newDisplay;
LayoutBlock* newBox = nullptr;
- if (display == EDisplay::Flex || display == EDisplay::InlineFlex) {
+ if (display == EDisplay::kFlex || display == EDisplay::kInlineFlex) {
newBox = LayoutFlexibleBox::createAnonymous(&parent->document());
- newDisplay = EDisplay::Flex;
+ newDisplay = EDisplay::kFlex;
} else {
newBox = LayoutBlockFlow::createAnonymous(&parent->document());
- newDisplay = EDisplay::Block;
+ newDisplay = EDisplay::kBlock;
}
RefPtr<ComputedStyle> newStyle =
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.h ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698