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

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

Issue 1970653004: Move hoverAncestor() 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 1952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1963 // inline boxes above and below us (thus getting merged with them to form a single irregular 1963 // inline boxes above and below us (thus getting merged with them to form a single irregular
1964 // shape). 1964 // shape).
1965 // FIXME: This is wrong for vertical writing-modes. 1965 // FIXME: This is wrong for vertical writing-modes.
1966 // https://bugs.webkit.org/show_bug.cgi?id=46781 1966 // https://bugs.webkit.org/show_bug.cgi?id=46781
1967 LayoutRect localRect(LayoutPoint(), size()); 1967 LayoutRect localRect(LayoutPoint(), size());
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
1974 {
1975 return isAnonymousBlockContinuation() ? continuation() : LayoutBlock::hoverA ncestor();
1976 }
1977
1973 RootInlineBox* LayoutBlockFlow::createAndAppendRootInlineBox() 1978 RootInlineBox* LayoutBlockFlow::createAndAppendRootInlineBox()
1974 { 1979 {
1975 RootInlineBox* rootBox = createRootInlineBox(); 1980 RootInlineBox* rootBox = createRootInlineBox();
1976 m_lineBoxes.appendLineBox(rootBox); 1981 m_lineBoxes.appendLineBox(rootBox);
1977 1982
1978 return rootBox; 1983 return rootBox;
1979 } 1984 }
1980 1985
1981 void LayoutBlockFlow::deleteLineBoxTree() 1986 void LayoutBlockFlow::deleteLineBoxTree()
1982 { 1987 {
(...skipping 1470 matching lines...) Expand 10 before | Expand all | Expand 10 after
3453 if (!rect.isEmpty()) 3458 if (!rect.isEmpty())
3454 rects.append(rect); 3459 rects.append(rect);
3455 } 3460 }
3456 } 3461 }
3457 3462
3458 if (inlineElementContinuation) 3463 if (inlineElementContinuation)
3459 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows); 3464 inlineElementContinuation->addOutlineRects(rects, additionalOffset + (in lineElementContinuation->containingBlock()->location() - location()), includeBlo ckOverflows);
3460 } 3465 }
3461 3466
3462 } // namespace blink 3467 } // 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