| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2007 David Smith (catfish.man@gmail.com) | 4 * (C) 2007 David Smith (catfish.man@gmail.com) |
| 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. | 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
All rights reserved. |
| 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 2480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2491 // https://bugs.webkit.org/show_bug.cgi?id=46781 | 2491 // https://bugs.webkit.org/show_bug.cgi?id=46781 |
| 2492 LayoutRect localRect(LayoutPoint(), size()); | 2492 LayoutRect localRect(LayoutPoint(), size()); |
| 2493 localRect.expand(collapsedMarginBoxLogicalOutsets()); | 2493 localRect.expand(collapsedMarginBoxLogicalOutsets()); |
| 2494 quads.append(localToAbsoluteQuad(FloatRect(localRect), 0 /* mode */, was
Fixed)); | 2494 quads.append(localToAbsoluteQuad(FloatRect(localRect), 0 /* mode */, was
Fixed)); |
| 2495 continuation()->absoluteQuads(quads, wasFixed); | 2495 continuation()->absoluteQuads(quads, wasFixed); |
| 2496 } else { | 2496 } else { |
| 2497 quads.append(LayoutBox::localToAbsoluteQuad(FloatRect(0, 0, size().width
().toFloat(), size().height().toFloat()), 0 /* mode */, wasFixed)); | 2497 quads.append(LayoutBox::localToAbsoluteQuad(FloatRect(0, 0, size().width
().toFloat(), size().height().toFloat()), 0 /* mode */, wasFixed)); |
| 2498 } | 2498 } |
| 2499 } | 2499 } |
| 2500 | 2500 |
| 2501 LayoutRect LayoutBlock::rectWithOutlineForPaintInvalidation(const LayoutBoxModel
Object* paintInvalidationContainer, LayoutUnit outlineWidth, const PaintInvalida
tionState* paintInvalidationState) const | |
| 2502 { | |
| 2503 LayoutRect r(LayoutBox::rectWithOutlineForPaintInvalidation(paintInvalidatio
nContainer, outlineWidth, paintInvalidationState)); | |
| 2504 if (isAnonymousBlockContinuation()) | |
| 2505 r.inflateY(collapsedMarginBefore()); // FIXME: This is wrong for vertica
l writing-modes. | |
| 2506 return r; | |
| 2507 } | |
| 2508 | |
| 2509 LayoutObject* LayoutBlock::hoverAncestor() const | 2501 LayoutObject* LayoutBlock::hoverAncestor() const |
| 2510 { | 2502 { |
| 2511 return isAnonymousBlockContinuation() ? continuation() : LayoutBox::hoverAnc
estor(); | 2503 return isAnonymousBlockContinuation() ? continuation() : LayoutBox::hoverAnc
estor(); |
| 2512 } | 2504 } |
| 2513 | 2505 |
| 2514 void LayoutBlock::updateDragState(bool dragOn) | 2506 void LayoutBlock::updateDragState(bool dragOn) |
| 2515 { | 2507 { |
| 2516 LayoutBox::updateDragState(dragOn); | 2508 LayoutBox::updateDragState(dragOn); |
| 2517 if (LayoutBoxModelObject* continuation = this->continuation()) | 2509 if (LayoutBoxModelObject* continuation = this->continuation()) |
| 2518 continuation->updateDragState(dragOn); | 2510 continuation->updateDragState(dragOn); |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2918 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const | 2910 void LayoutBlock::showLineTreeAndMark(const InlineBox* markedBox1, const char* m
arkedLabel1, const InlineBox* markedBox2, const char* markedLabel2, const Layout
Object* obj) const |
| 2919 { | 2911 { |
| 2920 showLayoutObject(); | 2912 showLayoutObject(); |
| 2921 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) | 2913 for (const RootInlineBox* root = firstRootBox(); root; root = root->nextRoot
Box()) |
| 2922 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); | 2914 root->showLineTreeAndMark(markedBox1, markedLabel1, markedBox2, markedLa
bel2, obj, 1); |
| 2923 } | 2915 } |
| 2924 | 2916 |
| 2925 #endif | 2917 #endif |
| 2926 | 2918 |
| 2927 } // namespace blink | 2919 } // namespace blink |
| OLD | NEW |