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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.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/editing/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index 3d52f33c4ce7ab1e423ee88a80188faa17a9049f..cee6af4250350e3e9fa3d4a8ca7494d6b44bef89 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -956,9 +956,10 @@ TextDirection directionOfEnclosingBlockAlgorithm(
position.computeContainerNode()),
CannotCrossEditingBoundary);
if (!enclosingBlockElement)
- return TextDirection::Ltr;
+ return TextDirection::kLtr;
LayoutObject* layoutObject = enclosingBlockElement->layoutObject();
- return layoutObject ? layoutObject->style()->direction() : TextDirection::Ltr;
+ return layoutObject ? layoutObject->style()->direction()
+ : TextDirection::kLtr;
}
TextDirection directionOfEnclosingBlock(const Position& position) {
@@ -971,7 +972,7 @@ TextDirection directionOfEnclosingBlock(const PositionInFlatTree& position) {
}
TextDirection primaryDirectionOf(const Node& node) {
- TextDirection primaryDirection = TextDirection::Ltr;
+ TextDirection primaryDirection = TextDirection::kLtr;
for (const LayoutObject* r = node.layoutObject(); r; r = r->parent()) {
if (r->isLayoutBlockFlow()) {
primaryDirection = r->style()->direction();
@@ -1593,7 +1594,7 @@ bool isNodeRendered(const Node& node) {
if (!layoutObject)
return false;
- return layoutObject->style()->visibility() == EVisibility::Visible;
+ return layoutObject->style()->visibility() == EVisibility::kVisible;
}
// return first preceding DOM position rendered at a different location, or
« no previous file with comments | « third_party/WebKit/Source/core/dom/Text.cpp ('k') | third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698