Index: third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/PendingSelection.cpp b/third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
similarity index 95% |
rename from third_party/WebKit/Source/core/editing/PendingSelection.cpp |
rename to third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
index 8ffc8e7fe380de3dcdca49a8453493e0a42ab10c..785f031c819062f1b5091daec018f0f99b03526b 100644 |
--- a/third_party/WebKit/Source/core/editing/PendingSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/LayoutSelection.cpp |
@@ -19,7 +19,7 @@ |
* Boston, MA 02110-1301, USA. |
*/ |
-#include "core/editing/PendingSelection.h" |
+#include "core/editing/LayoutSelection.h" |
#include "core/dom/Document.h" |
#include "core/editing/EditingUtilities.h" |
@@ -31,10 +31,10 @@ |
namespace blink { |
-PendingSelection::PendingSelection(FrameSelection& frameSelection) |
+LayoutSelection::LayoutSelection(FrameSelection& frameSelection) |
: m_frameSelection(&frameSelection), m_hasPendingSelection(false) {} |
-const VisibleSelection& PendingSelection::visibleSelection() const { |
+const VisibleSelection& LayoutSelection::visibleSelection() const { |
return m_frameSelection->computeVisibleSelectionInDOMTree(); |
} |
@@ -55,7 +55,7 @@ static bool isSelectionInDocument( |
return true; |
} |
-SelectionInFlatTree PendingSelection::calcVisibleSelection( |
+SelectionInFlatTree LayoutSelection::calcVisibleSelection( |
const VisibleSelectionInFlatTree& originalSelection) const { |
const PositionInFlatTree& start = originalSelection.start(); |
const PositionInFlatTree& end = originalSelection.end(); |
@@ -106,7 +106,7 @@ SelectionInFlatTree PendingSelection::calcVisibleSelection( |
return builder.build(); |
} |
-void PendingSelection::commit(LayoutView& layoutView) { |
+void LayoutSelection::commit(LayoutView& layoutView) { |
if (!hasPendingSelection()) |
return; |
DCHECK(!layoutView.needsLayout()); |
@@ -164,7 +164,7 @@ void PendingSelection::commit(LayoutView& layoutView) { |
endLayoutObject, endPos.computeEditingOffset()); |
} |
-DEFINE_TRACE(PendingSelection) { |
+DEFINE_TRACE(LayoutSelection) { |
visitor->trace(m_frameSelection); |
} |