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

Side by Side Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2181953004: Changed ComputedStyle's EVisibility to be an enum class and fixed naming (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_move_computedstyle_around
Patch Set: Added underlying type notes Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 { 1510 {
1511 return createTabSpanElement(document, nullptr); 1511 return createTabSpanElement(document, nullptr);
1512 } 1512 }
1513 1513
1514 bool isNodeRendered(const Node& node) 1514 bool isNodeRendered(const Node& node)
1515 { 1515 {
1516 LayoutObject* layoutObject = node.layoutObject(); 1516 LayoutObject* layoutObject = node.layoutObject();
1517 if (!layoutObject) 1517 if (!layoutObject)
1518 return false; 1518 return false;
1519 1519
1520 return layoutObject->style()->visibility() == VISIBLE; 1520 return layoutObject->style()->visibility() == EVisibility::Visible;
1521 } 1521 }
1522 1522
1523 // return first preceding DOM position rendered at a different location, or "thi s" 1523 // return first preceding DOM position rendered at a different location, or "thi s"
1524 static Position previousCharacterPosition(const Position& position, TextAffinity affinity) 1524 static Position previousCharacterPosition(const Position& position, TextAffinity affinity)
1525 { 1525 {
1526 if (position.isNull()) 1526 if (position.isNull())
1527 return Position(); 1527 return Position();
1528 1528
1529 Element* fromRootEditableElement = rootEditableElement(*position.anchorNode( )); 1529 Element* fromRootEditableElement = rootEditableElement(*position.anchorNode( ));
1530 1530
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
1943 return InputType::DeleteWordBackward; 1943 return InputType::DeleteWordBackward;
1944 if (granularity == LineBoundary) 1944 if (granularity == LineBoundary)
1945 return InputType::DeleteLineBackward; 1945 return InputType::DeleteLineBackward;
1946 return InputType::DeleteContentBackward; 1946 return InputType::DeleteContentBackward;
1947 default: 1947 default:
1948 return InputType::None; 1948 return InputType::None;
1949 } 1949 }
1950 } 1950 }
1951 1951
1952 } // namespace blink 1952 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698