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

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

Issue 2667493002: Changed EPosition to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 10 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/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index 9e2f3a030aada2da5d47e430889f58e1c951aa21..98e2213bc0666f920aea1a4e1dd9adfefcec2341 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -4317,8 +4317,8 @@ void LayoutBlockFlow::positionDialog() {
if (dialog->getCenteringMode() == HTMLDialogElement::NotCentered)
return;
- bool canCenterDialog = (style()->position() == AbsolutePosition ||
- style()->position() == FixedPosition) &&
+ bool canCenterDialog = (style()->position() == EPosition::kAbsolute ||
+ style()->position() == EPosition::kFixed) &&
style()->hasAutoTopAndBottom();
if (dialog->getCenteringMode() == HTMLDialogElement::Centered) {
@@ -4334,7 +4334,7 @@ void LayoutBlockFlow::positionDialog() {
}
FrameView* frameView = document().view();
- LayoutUnit top = LayoutUnit((style()->position() == FixedPosition)
+ LayoutUnit top = LayoutUnit((style()->position() == EPosition::kFixed)
? 0
: frameView->scrollOffsetInt().height());
int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698