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

Side by Side Diff: sky/engine/core/rendering/RenderBox.h

Issue 713073003: remove updateTouchEventTargetRectsIfNeeded (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: moar Created 6 years, 1 month 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
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 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } 502 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); }
503 503
504 virtual bool needsPreferredWidthsRecalculation() const; 504 virtual bool needsPreferredWidthsRecalculation() const;
505 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */ , double& /* intrinsicRatio */) const { } 505 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */ , double& /* intrinsicRatio */) const { }
506 506
507 IntSize scrolledContentOffset() const; 507 IntSize scrolledContentOffset() const;
508 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec t) const; 508 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec t) const;
509 509
510 virtual bool hasRelativeLogicalHeight() const; 510 virtual bool hasRelativeLogicalHeight() const;
511 511
512 bool hasHorizontalLayoutOverflow() const
513 {
514 if (!m_overflow)
515 return false;
516
517 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect();
518 LayoutRect noOverflowRect = this->noOverflowRect();
519 return layoutOverflowRect.x() < noOverflowRect.x() || layoutOverflowRect .maxX() > noOverflowRect.maxX();
520 }
521
522 bool hasVerticalLayoutOverflow() const
523 {
524 if (!m_overflow)
525 return false;
526
527 LayoutRect layoutOverflowRect = m_overflow->layoutOverflowRect();
528 LayoutRect noOverflowRect = this->noOverflowRect();
529 return layoutOverflowRect.y() < noOverflowRect.y() || layoutOverflowRect .maxY() > noOverflowRect.maxY();
530 }
531
532 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject*) con st 512 virtual RenderBox* createAnonymousBoxWithSameTypeAs(const RenderObject*) con st
533 { 513 {
534 ASSERT_NOT_REACHED(); 514 ASSERT_NOT_REACHED();
535 return 0; 515 return 0;
536 } 516 }
537 517
538 bool hasSameDirectionAs(const RenderBox* object) const { return style()->dir ection() == object->style()->direction(); } 518 bool hasSameDirectionAs(const RenderBox* object) const { return style()->dir ection() == object->style()->direction(); }
539 519
540 protected: 520 protected:
541 virtual void willBeDestroyed() override; 521 virtual void willBeDestroyed() override;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
576 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t; 556 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t;
577 557
578 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlock(); } 558 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlock(); }
579 559
580 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const PaintInvalidationState* = 0) const override; 560 virtual void mapLocalToContainer(const RenderLayerModelObject* paintInvalida tionContainer, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, const PaintInvalidationState* = 0) const override;
581 561
582 void paintRootBoxFillLayers(const PaintInfo&); 562 void paintRootBoxFillLayers(const PaintInfo&);
583 563
584 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild); 564 RenderObject* splitAnonymousBoxesAroundChild(RenderObject* beforeChild);
585 565
586 virtual void addLayerHitTestRects(LayerHitTestRects&, const RenderLayer* cur rentCompositedLayer, const LayoutPoint& layerOffset, const LayoutRect& container Rect) const override;
587 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOffset) const override;
588
589 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } 566 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
590 567
591 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel Object& paintInvalidationContainer, 568 virtual InvalidationReason getPaintInvalidationReason(const RenderLayerModel Object& paintInvalidationContainer,
592 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer, 569 const LayoutRect& oldBounds, const LayoutPoint& oldPositionFromPaintInva lidationContainer,
593 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) override; 570 const LayoutRect& newBounds, const LayoutPoint& newPositionFromPaintInva lidationContainer) override;
594 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationContainer) override; 571 virtual void incrementallyInvalidatePaint(const RenderLayerModelObject& pain tInvalidationContainer, const LayoutRect& oldBounds, const LayoutRect& newBounds , const LayoutPoint& positionFromPaintInvalidationContainer) override;
595 572
596 virtual void clearPaintInvalidationState(const PaintInvalidationState&) over ride; 573 virtual void clearPaintInvalidationState(const PaintInvalidationState&) over ride;
597 #if ENABLE(ASSERT) 574 #if ENABLE(ASSERT)
598 virtual bool paintInvalidationStateIsDirty() const override; 575 virtual bool paintInvalidationStateIsDirty() const override;
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 if (UNLIKELY(inlineBoxWrapper() != 0)) 688 if (UNLIKELY(inlineBoxWrapper() != 0))
712 deleteLineBoxWrapper(); 689 deleteLineBoxWrapper();
713 } 690 }
714 691
715 ensureRareData().m_inlineBoxWrapper = boxWrapper; 692 ensureRareData().m_inlineBoxWrapper = boxWrapper;
716 } 693 }
717 694
718 } // namespace blink 695 } // namespace blink
719 696
720 #endif // RenderBox_h 697 #endif // RenderBox_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698