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

Side by Side Diff: Source/core/layout/LayoutBox.h

Issue 1007623003: Fix incorrect percentage top for positioned elements. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Update an expected value of web-animations-api/animations-responsive-to-style-change.html Created 5 years, 8 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 | « Source/core/css/ComputedStyleCSSValueMapping.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | 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) 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 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 void deleteLineBoxWrapper(); 469 void deleteLineBoxWrapper();
470 470
471 void setSpannerPlaceholder(LayoutMultiColumnSpannerPlaceholder&); 471 void setSpannerPlaceholder(LayoutMultiColumnSpannerPlaceholder&);
472 void clearSpannerPlaceholder(); 472 void clearSpannerPlaceholder();
473 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const fina l { return m_rareData ? m_rareData->m_spannerPlaceholder : 0; } 473 virtual LayoutMultiColumnSpannerPlaceholder* spannerPlaceholder() const fina l { return m_rareData ? m_rareData->m_spannerPlaceholder : 0; }
474 474
475 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const override; 475 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const LayoutBoxMo delObject* paintInvalidationContainer, const PaintInvalidationState* = 0) const override;
476 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride; 476 virtual void mapRectToPaintInvalidationBacking(const LayoutBoxModelObject* p aintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const ove rride;
477 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants); 477 virtual void invalidatePaintForOverhangingFloats(bool paintAllDescendants);
478 478
479 LayoutUnit containingBlockLogicalHeightForGetComputedStyle() const;
480
479 virtual LayoutUnit containingBlockLogicalWidthForContent() const override; 481 virtual LayoutUnit containingBlockLogicalWidthForContent() const override;
480 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 482 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
481 483
482 LayoutUnit containingBlockAvailableLineWidth() const; 484 LayoutUnit containingBlockAvailableLineWidth() const;
483 LayoutUnit perpendicularContainingBlockLogicalHeight() const; 485 LayoutUnit perpendicularContainingBlockLogicalHeight() const;
484 486
485 virtual void updateLogicalWidth(); 487 virtual void updateLogicalWidth();
486 void updateLogicalHeight(); 488 void updateLogicalHeight();
487 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const; 489 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const;
488 490
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 if (UNLIKELY(inlineBoxWrapper() != 0)) 914 if (UNLIKELY(inlineBoxWrapper() != 0))
913 deleteLineBoxWrapper(); 915 deleteLineBoxWrapper();
914 } 916 }
915 917
916 ensureRareData().m_inlineBoxWrapper = boxWrapper; 918 ensureRareData().m_inlineBoxWrapper = boxWrapper;
917 } 919 }
918 920
919 } // namespace blink 921 } // namespace blink
920 922
921 #endif // LayoutBox_h 923 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « Source/core/css/ComputedStyleCSSValueMapping.cpp ('k') | Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698