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

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

Issue 847303003: Delete selection paint invalidation code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 virtual InlineBox* createInlineBox(); 356 virtual InlineBox* createInlineBox();
357 void dirtyLineBoxes(bool fullLayout); 357 void dirtyLineBoxes(bool fullLayout);
358 358
359 // For inline replaced elements, this function returns the inline box that o wns us. Enables 359 // For inline replaced elements, this function returns the inline box that o wns us. Enables
360 // the replaced RenderObject to quickly determine what line it is contained on and to easily 360 // the replaced RenderObject to quickly determine what line it is contained on and to easily
361 // iterate over structures on the line. 361 // iterate over structures on the line.
362 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli neBoxWrapper : 0; } 362 InlineBox* inlineBoxWrapper() const { return m_rareData ? m_rareData->m_inli neBoxWrapper : 0; }
363 void setInlineBoxWrapper(InlineBox*); 363 void setInlineBoxWrapper(InlineBox*);
364 void deleteLineBoxWrapper(); 364 void deleteLineBoxWrapper();
365 365
366 virtual void mapRectToPaintInvalidationBacking(const RenderLayerModelObject* paintInvalidationContainer, LayoutRect&, const PaintInvalidationState*) const o verride;
367
368 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const; 366 LayoutUnit containingBlockLogicalHeightForContent(AvailableLogicalHeightType ) const;
369 367
370 virtual void updateLogicalWidth(); 368 virtual void updateLogicalWidth();
371 virtual void updateLogicalHeight(); 369 virtual void updateLogicalHeight();
372 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const; 370 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const;
373 371
374 void computeLogicalWidth(LogicalExtentComputedValues&) const; 372 void computeLogicalWidth(LogicalExtentComputedValues&) const;
375 373
376 virtual LayoutSize intrinsicSize() const { return LayoutSize(); } 374 virtual LayoutSize intrinsicSize() const { return LayoutSize(); }
377 LayoutUnit intrinsicLogicalWidth() const { return intrinsicSize().width(); } 375 LayoutUnit intrinsicLogicalWidth() const { return intrinsicSize().width(); }
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
471 469
472 LayoutRect layoutOverflowRectForPropagation() const; 470 LayoutRect layoutOverflowRectForPropagation() const;
473 471
474 bool hasRenderOverflow() const { return m_overflow; } 472 bool hasRenderOverflow() const { return m_overflow; }
475 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); } 473 bool hasVisualOverflow() const { return m_overflow && !borderBoxRect().conta ins(m_overflow->visualOverflowRect()); }
476 474
477 virtual bool needsPreferredWidthsRecalculation() const; 475 virtual bool needsPreferredWidthsRecalculation() const;
478 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */ , double& /* intrinsicRatio */) const { } 476 virtual void computeIntrinsicRatioInformation(FloatSize& /* intrinsicSize */ , double& /* intrinsicRatio */) const { }
479 477
480 IntSize scrolledContentOffset() const; 478 IntSize scrolledContentOffset() const;
481 void applyCachedClipAndScrollOffsetForPaintInvalidation(LayoutRect& paintRec t) const;
482 479
483 virtual bool hasRelativeLogicalHeight() const; 480 virtual bool hasRelativeLogicalHeight() const;
484 481
485 bool hasSameDirectionAs(const RenderBox* object) const { return style()->dir ection() == object->style()->direction(); } 482 bool hasSameDirectionAs(const RenderBox* object) const { return style()->dir ection() == object->style()->direction(); }
486 483
487 protected: 484 protected:
488 virtual void willBeDestroyed() override; 485 virtual void willBeDestroyed() override;
489 486
490 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o verride; 487 virtual void styleWillChange(StyleDifference, const RenderStyle& newStyle) o verride;
491 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride; 488 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) ov erride;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 bool isBox() const = delete; // This will catch anyone doing an unnecessary check. 574 bool isBox() const = delete; // This will catch anyone doing an unnecessary check.
578 575
579 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent). 576 // The width/height of the contents + borders + padding. The x/y location i s relative to our container (which is not always our parent).
580 LayoutRect m_frameRect; 577 LayoutRect m_frameRect;
581 578
582 // Our intrinsic height, used for min-height: min-content etc. Maintained by 579 // Our intrinsic height, used for min-height: min-content etc. Maintained by
583 // updateLogicalHeight. This is logicalHeight() before it is clamped to 580 // updateLogicalHeight. This is logicalHeight() before it is clamped to
584 // min/max. 581 // min/max.
585 mutable LayoutUnit m_intrinsicContentLogicalHeight; 582 mutable LayoutUnit m_intrinsicContentLogicalHeight;
586 583
587 void inflatePaintInvalidationRectForReflectionAndFilter(LayoutRect&) const;
588
589 protected: 584 protected:
590 LayoutBoxExtent m_marginBox; 585 LayoutBoxExtent m_marginBox;
591 586
592 // The preferred logical width of the element if it were to break its lines at every possible opportunity. 587 // The preferred logical width of the element if it were to break its lines at every possible opportunity.
593 LayoutUnit m_minPreferredLogicalWidth; 588 LayoutUnit m_minPreferredLogicalWidth;
594 589
595 // The preferred logical width of the element if it never breaks any lines a t all. 590 // The preferred logical width of the element if it never breaks any lines a t all.
596 LayoutUnit m_maxPreferredLogicalWidth; 591 LayoutUnit m_maxPreferredLogicalWidth;
597 592
598 // Our overflow information. 593 // Our overflow information.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 if (UNLIKELY(inlineBoxWrapper() != 0)) 635 if (UNLIKELY(inlineBoxWrapper() != 0))
641 deleteLineBoxWrapper(); 636 deleteLineBoxWrapper();
642 } 637 }
643 638
644 ensureRareData().m_inlineBoxWrapper = boxWrapper; 639 ensureRareData().m_inlineBoxWrapper = boxWrapper;
645 } 640 }
646 641
647 } // namespace blink 642 } // namespace blink
648 643
649 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 644 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698