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

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

Issue 1969103002: Move updateDragState() override to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1957 matching lines...) Expand 10 before | Expand all | Expand 10 after
1968 localRect.expand(collapsedMarginBoxLogicalOutsets()); 1968 localRect.expand(collapsedMarginBoxLogicalOutsets());
1969 quads.append(localToAbsoluteQuad(FloatRect(localRect))); 1969 quads.append(localToAbsoluteQuad(FloatRect(localRect)));
1970 continuation()->absoluteQuads(quads); 1970 continuation()->absoluteQuads(quads);
1971 } 1971 }
1972 1972
1973 LayoutObject* LayoutBlockFlow::hoverAncestor() const 1973 LayoutObject* LayoutBlockFlow::hoverAncestor() const
1974 { 1974 {
1975 return isAnonymousBlockContinuation() ? continuation() : LayoutBlock::hoverA ncestor(); 1975 return isAnonymousBlockContinuation() ? continuation() : LayoutBlock::hoverA ncestor();
1976 } 1976 }
1977 1977
1978 void LayoutBlockFlow::updateDragState(bool dragOn)
1979 {
1980 LayoutBlock::updateDragState(dragOn);
1981 if (LayoutBoxModelObject* continuation = this->continuation())
1982 continuation->updateDragState(dragOn);
1983 }
1984
1978 RootInlineBox* LayoutBlockFlow::createAndAppendRootInlineBox() 1985 RootInlineBox* LayoutBlockFlow::createAndAppendRootInlineBox()
1979 { 1986 {
1980 RootInlineBox* rootBox = createRootInlineBox(); 1987 RootInlineBox* rootBox = createRootInlineBox();
1981 m_lineBoxes.appendLineBox(rootBox); 1988 m_lineBoxes.appendLineBox(rootBox);
1982 1989
1983 return rootBox; 1990 return rootBox;
1984 } 1991 }
1985 1992
1986 void LayoutBlockFlow::deleteLineBoxTree() 1993 void LayoutBlockFlow::deleteLineBoxTree()
1987 { 1994 {
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
3458 if (!rect.isEmpty()) 3465 if (!rect.isEmpty())
3459 rects.append(rect); 3466 rects.append(rect);
3460 } 3467 }
3461 } 3468 }
3462 3469
3463 if (inlineElementContinuation) 3470 if (inlineElementContinuation)
3464 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows); 3471 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows);
3465 } 3472 }
3466 3473
3467 } // namespace blink 3474 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698