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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 1444173002: third_party/WebKit: fix typos found in comments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 1916 matching lines...) Expand 10 before | Expand all | Expand 10 after
1927 LayoutBlock::addChild(newChild, beforeChild); 1927 LayoutBlock::addChild(newChild, beforeChild);
1928 } 1928 }
1929 1929
1930 void LayoutBlockFlow::moveAllChildrenIncludingFloatsTo(LayoutBlock* toBlock, boo l fullRemoveInsert) 1930 void LayoutBlockFlow::moveAllChildrenIncludingFloatsTo(LayoutBlock* toBlock, boo l fullRemoveInsert)
1931 { 1931 {
1932 LayoutBlockFlow* toBlockFlow = toLayoutBlockFlow(toBlock); 1932 LayoutBlockFlow* toBlockFlow = toLayoutBlockFlow(toBlock);
1933 moveAllChildrenTo(toBlockFlow, fullRemoveInsert); 1933 moveAllChildrenTo(toBlockFlow, fullRemoveInsert);
1934 1934
1935 // When a portion of the layout tree is being detached, anonymous blocks 1935 // When a portion of the layout tree is being detached, anonymous blocks
1936 // will be combined as their children are deleted. In this process, the 1936 // will be combined as their children are deleted. In this process, the
1937 // anonymous block later in the tree is merged into the one preceeding it. 1937 // anonymous block later in the tree is merged into the one preceding it.
1938 // It can happen that the later block (this) contains floats that the 1938 // It can happen that the later block (this) contains floats that the
1939 // previous block (toBlockFlow) did not contain, and thus are not in the 1939 // previous block (toBlockFlow) did not contain, and thus are not in the
1940 // floating objects list for toBlockFlow. This can result in toBlockFlow con taining 1940 // floating objects list for toBlockFlow. This can result in toBlockFlow con taining
1941 // floats that are not in it's floating objects list, but are in the 1941 // floats that are not in it's floating objects list, but are in the
1942 // floating objects lists of siblings and parents. This can cause problems 1942 // floating objects lists of siblings and parents. This can cause problems
1943 // when the float itself is deleted, since the deletion code assumes that 1943 // when the float itself is deleted, since the deletion code assumes that
1944 // if a float is not in it's containing block's floating objects list, it 1944 // if a float is not in it's containing block's floating objects list, it
1945 // isn't in any floating objects list. In order to preserve this condition 1945 // isn't in any floating objects list. In order to preserve this condition
1946 // (removing it has serious performance implications), we need to copy the 1946 // (removing it has serious performance implications), we need to copy the
1947 // floating objects from the old block (this) to the new block (toBlockFlow) . 1947 // floating objects from the old block (this) to the new block (toBlockFlow) .
(...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after
3061 FrameView* frameView = document().view(); 3061 FrameView* frameView = document().view();
3062 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height(); 3062 LayoutUnit top = (style()->position() == FixedPosition) ? 0 : frameView->scr ollOffset().height();
3063 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( ); 3063 int visibleHeight = frameView->visibleContentRect(IncludeScrollbars).height( );
3064 if (size().height() < visibleHeight) 3064 if (size().height() < visibleHeight)
3065 top += (visibleHeight - size().height()) / 2; 3065 top += (visibleHeight - size().height()) / 2;
3066 setY(top); 3066 setY(top);
3067 dialog->setCentered(top); 3067 dialog->setCentered(top);
3068 } 3068 }
3069 3069
3070 } // namespace blink 3070 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698