summaryrefslogtreecommitdiffstats
path: root/webkit/glue/weburlrequest_extradata_impl.h
diff options
context:
space:
mode:
authorvollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 00:18:00 +0000
committervollick@chromium.org <vollick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-30 00:18:00 +0000
commita4a08d0b3d83eae6b232636e4d07a9b0e70594ed (patch)
treee114801e823f885d91437929ebc349e28dc25281 /webkit/glue/weburlrequest_extradata_impl.h
parent1764980dfa80e1f3e61e283de71ed3c3a707700c (diff)
downloadchromium_src-a4a08d0b3d83eae6b232636e4d07a9b0e70594ed.zip
chromium_src-a4a08d0b3d83eae6b232636e4d07a9b0e70594ed.tar.gz
chromium_src-a4a08d0b3d83eae6b232636e4d07a9b0e70594ed.tar.bz2
Rename ClampToMin and ClampToMax
I find these function names confusing. I have to stop and read the code each time I try to use them to figure out what they're going to do. Part of the confusion is that ClampToMin sets the components to the _maximum_ of the two sizes/vectors. It's also not clear from the function name which of the two objects is acting as the 'Min'. This is mitigated by the parameter names and local variables passed to the function, but it would be nice if the name of the function itself made this clear. a.ClampToLowerBound(b) makes it clear both that b is acting as the lower bound and how and when a is going to be altered. Other names I've considered (for ClampToMin -- the suggestions for ClampToMax are analagous): ClampIfSmallerThan(other) SetComponentsToMax(other) Union(other) (for sizes) R=danakj,sky BUG=None Review URL: https://chromiumcodereview.appspot.com/14367021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/weburlrequest_extradata_impl.h')
0 files changed, 0 insertions, 0 deletions