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

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

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CL Description change, Typo patch apply to upstream master. Created 5 years 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, 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2008, 2009, 2010 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 1330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1341 setSelection(VisibleSelection(start, end), WordGranularity); 1341 setSelection(VisibleSelection(start, end), WordGranularity);
1342 return true; 1342 return true;
1343 } 1343 }
1344 } 1344 }
1345 1345
1346 return false; 1346 return false;
1347 } 1347 }
1348 1348
1349 GranularityStrategy* FrameSelection::granularityStrategy() 1349 GranularityStrategy* FrameSelection::granularityStrategy()
1350 { 1350 {
1351 // We do lazy initalization for m_granularityStrategy, because if we 1351 // We do lazy initialization for m_granularityStrategy, because if we
1352 // initialize it right in the constructor - the correct settings may not be 1352 // initialize it right in the constructor - the correct settings may not be
1353 // set yet. 1353 // set yet.
1354 SelectionStrategy strategyType = SelectionStrategy::Character; 1354 SelectionStrategy strategyType = SelectionStrategy::Character;
1355 Settings* settings = m_frame ? m_frame->settings() : 0; 1355 Settings* settings = m_frame ? m_frame->settings() : 0;
1356 if (settings && settings->selectionStrategy() == SelectionStrategy::Directio n) 1356 if (settings && settings->selectionStrategy() == SelectionStrategy::Directio n)
1357 strategyType = SelectionStrategy::Direction; 1357 strategyType = SelectionStrategy::Direction;
1358 1358
1359 if (m_granularityStrategy && m_granularityStrategy->GetType() == strategyTyp e) 1359 if (m_granularityStrategy && m_granularityStrategy->GetType() == strategyTyp e)
1360 return m_granularityStrategy.get(); 1360 return m_granularityStrategy.get();
1361 1361
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 1401
1402 void showTree(const blink::FrameSelection* sel) 1402 void showTree(const blink::FrameSelection* sel)
1403 { 1403 {
1404 if (sel) 1404 if (sel)
1405 sel->showTreeForThis(); 1405 sel->showTreeForThis();
1406 else 1406 else
1407 fprintf(stderr, "Cannot showTree for (nil) FrameSelection.\n"); 1407 fprintf(stderr, "Cannot showTree for (nil) FrameSelection.\n");
1408 } 1408 }
1409 1409
1410 #endif 1410 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/editing/Editor.cpp ('k') | third_party/WebKit/Source/core/editing/GranularityStrategyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698