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

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

Issue 1122423009: Make it possible to custom-paint without an Element. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Comment tweak Created 5 years, 7 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
484 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t; 484 LayoutUnit computeIntrinsicLogicalContentHeightUsing(const Length& logicalHe ightLength, LayoutUnit intrinsicContentHeight, LayoutUnit borderAndPadding) cons t;
485 485
486 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlock(); } 486 virtual bool shouldComputeSizeAsReplaced() const { return isReplaced() && !i sInlineBlock(); }
487 487
488 virtual void mapLocalToContainer(const RenderBox* paintInvalidationContainer , TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const override; 488 virtual void mapLocalToContainer(const RenderBox* paintInvalidationContainer , TransformState&, MapCoordinatesFlags = ApplyContainerFlip) const override;
489 489
490 void paintRootBoxFillLayers(const PaintInfo&); 490 void paintRootBoxFillLayers(const PaintInfo&);
491 491
492 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; } 492 void updateIntrinsicContentLogicalHeight(LayoutUnit intrinsicContentLogicalH eight) const { m_intrinsicContentLogicalHeight = intrinsicContentLogicalHeight; }
493 493
494 void paintCustomPainting(PaintInfo& paintInfo, const LayoutPoint& paintOffse t);
495
494 private: 496 private:
495 void updateTransformationMatrix(); 497 void updateTransformationMatrix();
496 void updateTransform(const RenderStyle* oldStyle); 498 void updateTransform(const RenderStyle* oldStyle);
497 void updateFromStyle(); 499 void updateFromStyle();
498 void updateFilters(); 500 void updateFilters();
499 501
500 PassRefPtr<HitTestingTransformState> createLocalTransformState( 502 PassRefPtr<HitTestingTransformState> createLocalTransformState(
501 RenderLayer* rootLayer, RenderLayer* containerLayer, 503 RenderLayer* rootLayer, RenderLayer* containerLayer,
502 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation, 504 const LayoutRect& hitTestRect, const HitTestLocation& hitTestLocation,
503 const HitTestingTransformState* containerTransformState) const; 505 const HitTestingTransformState* containerTransformState) const;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 if (UNLIKELY(inlineBoxWrapper() != 0)) 616 if (UNLIKELY(inlineBoxWrapper() != 0))
615 deleteLineBoxWrapper(); 617 deleteLineBoxWrapper();
616 } 618 }
617 619
618 ensureRareData().m_inlineBoxWrapper = boxWrapper; 620 ensureRareData().m_inlineBoxWrapper = boxWrapper;
619 } 621 }
620 622
621 } // namespace blink 623 } // namespace blink
622 624
623 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_ 625 #endif // SKY_ENGINE_CORE_RENDERING_RENDERBOX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698