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

Unified Diff: Source/core/page/DragController.cpp

Issue 20294002: Fix trailing whitespace in .cpp, .h, and .idl files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 7 years, 5 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
« no previous file with comments | « Source/core/page/DragController.h ('k') | Source/core/page/DragSession.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/DragController.cpp
diff --git a/Source/core/page/DragController.cpp b/Source/core/page/DragController.cpp
index 9da39e9576b1464343b208b95bfae19fe089179c..3843ff5bbeece0b2f925408c62c866818021906b 100644
--- a/Source/core/page/DragController.cpp
+++ b/Source/core/page/DragController.cpp
@@ -21,7 +21,7 @@
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#include "config.h"
@@ -370,14 +370,14 @@ bool DragController::tryDocumentDrag(DragData* dragData, DragDestinationAction a
Element* element = elementUnderMouse(m_documentUnderMouse.get(), point);
if (!element)
return false;
-
+
HTMLInputElement* elementAsFileInput = asFileInput(element);
if (m_fileInputElementUnderMouse != elementAsFileInput) {
if (m_fileInputElementUnderMouse)
m_fileInputElementUnderMouse->setCanReceiveDroppedFiles(false);
m_fileInputElementUnderMouse = elementAsFileInput;
}
-
+
if (!m_fileInputElementUnderMouse)
m_page->dragCaretController()->setCaretPosition(m_documentUnderMouse->frame()->visiblePositionForPoint(point));
@@ -396,7 +396,7 @@ bool DragController::tryDocumentDrag(DragData* dragData, DragDestinationAction a
dragSession.numberOfItemsToBeAccepted = 0;
else
dragSession.numberOfItemsToBeAccepted = 1;
-
+
if (!dragSession.numberOfItemsToBeAccepted)
dragSession.operation = DragOperationNone;
m_fileInputElementUnderMouse->setCanReceiveDroppedFiles(dragSession.numberOfItemsToBeAccepted);
@@ -405,10 +405,10 @@ bool DragController::tryDocumentDrag(DragData* dragData, DragDestinationAction a
// be loaded into the view the number of dragged items is 1.
dragSession.numberOfItemsToBeAccepted = numberOfFiles != 1 ? 0 : 1;
}
-
+
return true;
}
-
+
// We are not over an editable region. Make sure we're clearing any prior drag cursor.
m_page->dragCaretController()->clear();
if (m_fileInputElementUnderMouse)
@@ -583,7 +583,7 @@ static DragOperation defaultOperationForDrag(DragOperation srcOpMask)
return DragOperationCopy;
if (srcOpMask & DragOperationLink)
return DragOperationLink;
-
+
// FIXME: Does IE really return "generic" even if no operations were allowed by the source?
return DragOperationGeneric;
}
« no previous file with comments | « Source/core/page/DragController.h ('k') | Source/core/page/DragSession.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698