| 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 * 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 m_marginBox.setEnd(styleToUse->direction(), value); | 278 m_marginBox.setEnd(styleToUse->direction(), value); |
| 279 } | 279 } |
| 280 | 280 |
| 281 virtual void absoluteQuads(Vector<FloatQuad>&) const override; | 281 virtual void absoluteQuads(Vector<FloatQuad>&) const override; |
| 282 | 282 |
| 283 bool hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLayer, | 283 bool hitTestLayer(RenderLayer* rootLayer, RenderLayer* containerLayer, |
| 284 const HitTestRequest& request, HitTestResult& result, | 284 const HitTestRequest& request, HitTestResult& result, |
| 285 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, | 285 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, |
| 286 const HitTestingTransformState* transformState = 0, double* zOffset = 0)
; | 286 const HitTestingTransformState* transformState = 0, double* zOffset = 0)
; |
| 287 | 287 |
| 288 void paintLayer(GraphicsContext* context, RenderLayer* rootLayer, const IntR
ect& rect); | 288 void paintLayer(GraphicsContext*, const LayerPaintingInfo&); |
| 289 | 289 |
| 290 virtual void layout() override; | 290 virtual void layout() override; |
| 291 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) override; | 291 virtual void paint(PaintInfo&, const LayoutPoint&, Vector<RenderBox*>& layer
s) override; |
| 292 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset) override; | 292 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset) override; |
| 293 | 293 |
| 294 virtual LayoutUnit minPreferredLogicalWidth() const override; | 294 virtual LayoutUnit minPreferredLogicalWidth() const override; |
| 295 virtual LayoutUnit maxPreferredLogicalWidth() const override; | 295 virtual LayoutUnit maxPreferredLogicalWidth() const override; |
| 296 | 296 |
| 297 // FIXME: We should rename these back to overrideLogicalHeight/Width and hav
e them store | 297 // FIXME: We should rename these back to overrideLogicalHeight/Width and hav
e them store |
| 298 // the border-box height/width like the regular height/width accessors on Re
nderBox. | 298 // the border-box height/width like the regular height/width accessors on Re
nderBox. |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 private: | 484 private: |
| 485 void updateFromStyle(); | 485 void updateFromStyle(); |
| 486 | 486 |
| 487 PassRefPtr<HitTestingTransformState> createLocalTransformState( | 487 PassRefPtr<HitTestingTransformState> createLocalTransformState( |
| 488 RenderLayer* rootLayer, RenderLayer* containerLayer, | 488 RenderLayer* rootLayer, RenderLayer* containerLayer, |
| 489 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, | 489 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, |
| 490 const HitTestingTransformState* containerTransformState) const; | 490 const HitTestingTransformState* containerTransformState) const; |
| 491 bool hitTestNonLayerDescendants(const HitTestRequest& request, HitTestResult
& result, | 491 bool hitTestNonLayerDescendants(const HitTestRequest& request, HitTestResult
& result, |
| 492 const LayoutRect& layerBounds, const HitTestLocation& hitTestLocation); | 492 const LayoutRect& layerBounds, const HitTestLocation& hitTestLocation); |
| 493 | 493 |
| 494 void paintLayerContents(GraphicsContext* context, const LayerPaintingInfo& p
aintingInfo, const IntRect& rect); | 494 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&); |
| 495 | 495 |
| 496 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; | 496 void shrinkToFitWidth(const LayoutUnit availableSpace, const LayoutUnit logi
calLeftValue, const LayoutUnit bordersPlusPadding, LogicalExtentComputedValues&)
const; |
| 497 | 497 |
| 498 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; | 498 bool skipContainingBlockForPercentHeightCalculation(const RenderBox* contain
ingBlock) const; |
| 499 | 499 |
| 500 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock) const; | 500 LayoutUnit containingBlockLogicalWidthForPositioned(const RenderBoxModelObje
ct* containingBlock) const; |
| 501 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock) const; | 501 LayoutUnit containingBlockLogicalHeightForPositioned(const RenderBoxModelObj
ect* containingBlock) const; |
| 502 | 502 |
| 503 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; | 503 void computePositionedLogicalHeight(LogicalExtentComputedValues&) const; |
| 504 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, | 504 void computePositionedLogicalWidthUsing(Length logicalWidth, const RenderBox
ModelObject* containerBlock, TextDirection containerDirection, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 596 if (UNLIKELY(inlineBoxWrapper() != 0)) | 596 if (UNLIKELY(inlineBoxWrapper() != 0)) |
| 597 deleteLineBoxWrapper(); | 597 deleteLineBoxWrapper(); |
| 598 } | 598 } |
| 599 | 599 |
| 600 ensureRareData().m_inlineBoxWrapper = boxWrapper; | 600 ensureRareData().m_inlineBoxWrapper = boxWrapper; |
| 601 } | 601 } |
| 602 | 602 |
| 603 } // namespace blink | 603 } // namespace blink |
| 604 | 604 |
| 605 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ | 605 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ |
| OLD | NEW |