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

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

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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 2956c4160fb03f3de65015a33899ac5d02e13486..2c7f1e610b4f8f2415cbb455396d0d10254d77c9 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1296,7 +1296,7 @@ PositionWithAffinity LayoutBlock::positionForPointIfOutsideAtomicInlineLevel(
static inline bool isChildHitTestCandidate(LayoutBox* box) {
return box->size().height() &&
- box->style()->visibility() == EVisibility::Visible &&
+ box->style()->visibility() == EVisibility::kVisible &&
!box->isFloatingOrOutOfFlowPositioned() && !box->isLayoutFlowThread();
}
@@ -1473,7 +1473,7 @@ void LayoutBlock::computeBlockPreferredLogicalWidths(
LayoutUnit& minLogicalWidth,
LayoutUnit& maxLogicalWidth) const {
const ComputedStyle& styleToUse = styleRef();
- bool nowrap = styleToUse.whiteSpace() == EWhiteSpace::Nowrap;
+ bool nowrap = styleToUse.whiteSpace() == EWhiteSpace::kNowrap;
LayoutObject* child = firstChild();
LayoutBlock* containingBlock = this->containingBlock();
@@ -1556,7 +1556,7 @@ void LayoutBlock::computeBlockPreferredLogicalWidths(
}
if (child->isFloating()) {
- if (childStyle->floating() == EFloat::Left)
+ if (childStyle->floating() == EFloat::kLeft)
floatLeftWidth += w;
else
floatRightWidth += w;
« no previous file with comments | « third_party/WebKit/Source/core/layout/HitTestResult.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698