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

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

Issue 703563002: Remove shape-outside. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « sky/engine/core/rendering/RenderImage.cpp ('k') | sky/engine/core/rendering/RenderObject.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) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 475
476 bool hasTransform() const { return m_bitfields.hasTransform(); } 476 bool hasTransform() const { return m_bitfields.hasTransform(); }
477 bool hasMask() const { return style() && style()->hasMask(); } 477 bool hasMask() const { return style() && style()->hasMask(); }
478 bool hasClipPath() const { return style() && style()->clipPath(); } 478 bool hasClipPath() const { return style() && style()->clipPath(); }
479 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; } 479 bool hasHiddenBackface() const { return style() && style()->backfaceVisibili ty() == BackfaceVisibilityHidden; }
480 480
481 bool hasFilter() const { return style() && style()->hasFilter(); } 481 bool hasFilter() const { return style() && style()->hasFilter(); }
482 482
483 bool hasBlendMode() const; 483 bool hasBlendMode() const;
484 484
485 bool hasShapeOutside() const { return style() && style()->shapeOutside(); }
486
487 inline bool preservesNewline() const; 485 inline bool preservesNewline() const;
488 486
489 RenderView* view() const { return document().renderView(); }; 487 RenderView* view() const { return document().renderView(); };
490 FrameView* frameView() const { return document().view(); }; 488 FrameView* frameView() const { return document().view(); };
491 489
492 bool isRooted() const; 490 bool isRooted() const;
493 491
494 Node* node() const 492 Node* node() const
495 { 493 {
496 return isAnonymous() ? 0 : m_node.get(); 494 return isAnonymous() ? 0 : m_node.get();
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 void setIsBox() { m_bitfields.setIsBox(true); } 552 void setIsBox() { m_bitfields.setIsBox(true); }
555 void setReplaced(bool isReplaced) { m_bitfields.setIsReplaced(isReplaced); } 553 void setReplaced(bool isReplaced) { m_bitfields.setIsReplaced(isReplaced); }
556 void setHasOverflowClip(bool hasOverflowClip) { m_bitfields.setHasOverflowCl ip(hasOverflowClip); } 554 void setHasOverflowClip(bool hasOverflowClip) { m_bitfields.setHasOverflowCl ip(hasOverflowClip); }
557 void setHasLayer(bool hasLayer) { m_bitfields.setHasLayer(hasLayer); } 555 void setHasLayer(bool hasLayer) { m_bitfields.setHasLayer(hasLayer); }
558 void setHasTransform(bool hasTransform) { m_bitfields.setHasTransform(hasTra nsform); } 556 void setHasTransform(bool hasTransform) { m_bitfields.setHasTransform(hasTra nsform); }
559 557
560 void scheduleRelayout(); 558 void scheduleRelayout();
561 559
562 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers ); 560 void updateFillImages(const FillLayer* oldLayers, const FillLayer& newLayers );
563 void updateImage(StyleImage*, StyleImage*); 561 void updateImage(StyleImage*, StyleImage*);
564 void updateShapeImage(const ShapeValue*, const ShapeValue*);
565 562
566 // paintOffset is the offset from the origin of the GraphicsContext at which to paint the current object. 563 // paintOffset is the offset from the origin of the GraphicsContext at which to paint the current object.
567 virtual void paint(PaintInfo&, const LayoutPoint& paintOffset); 564 virtual void paint(PaintInfo&, const LayoutPoint& paintOffset);
568 565
569 // Subclasses must reimplement this method to compute the size and position 566 // Subclasses must reimplement this method to compute the size and position
570 // of this object and all its descendants. 567 // of this object and all its descendants.
571 virtual void layout() = 0; 568 virtual void layout() = 0;
572 virtual bool updateImageLoadingPriorities() { return false; } 569 virtual bool updateImageLoadingPriorities() { return false; }
573 void setHasPendingResourceUpdate(bool hasPendingResourceUpdate) { m_bitfield s.setHasPendingResourceUpdate(hasPendingResourceUpdate); } 570 void setHasPendingResourceUpdate(bool hasPendingResourceUpdate) { m_bitfield s.setHasPendingResourceUpdate(hasPendingResourceUpdate); }
574 bool hasPendingResourceUpdate() const { return m_bitfields.hasPendingResourc eUpdate(); } 571 bool hasPendingResourceUpdate() const { return m_bitfields.hasPendingResourc eUpdate(); }
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
970 void invalidatePaintForWholeRenderer() const; 967 void invalidatePaintForWholeRenderer() const;
971 968
972 const RenderLayerModelObject* enclosingCompositedContainer() const; 969 const RenderLayerModelObject* enclosingCompositedContainer() const;
973 970
974 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const; 971 bool hasImmediateNonWhitespaceTextChildOrPropertiesDependentOnColor() const;
975 972
976 StyleDifference adjustStyleDifference(StyleDifference) const; 973 StyleDifference adjustStyleDifference(StyleDifference) const;
977 974
978 Color selectionColor(int colorProperty) const; 975 Color selectionColor(int colorProperty) const;
979 976
980 void removeShapeImageClient(ShapeValue*);
981
982 #if ENABLE(ASSERT) 977 #if ENABLE(ASSERT)
983 void checkBlockPositionedObjectsNeedLayout(); 978 void checkBlockPositionedObjectsNeedLayout();
984 #endif 979 #endif
985 const char* invalidationReasonToString(InvalidationReason) const; 980 const char* invalidationReasonToString(InvalidationReason) const;
986 981
987 void markContainingBlockChainForPaintInvalidation() 982 void markContainingBlockChainForPaintInvalidation()
988 { 983 {
989 for (RenderObject* container = this->container(); container && !containe r->shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState(); containe r = container->container()) 984 for (RenderObject* container = this->container(); container && !containe r->shouldCheckForPaintInvalidationRegardlessOfPaintInvalidationState(); containe r = container->container())
990 container->setMayNeedPaintInvalidation(true); 985 container->setMayNeedPaintInvalidation(true);
991 } 986 }
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 void showTree(const blink::RenderObject*); 1323 void showTree(const blink::RenderObject*);
1329 void showLineTree(const blink::RenderObject*); 1324 void showLineTree(const blink::RenderObject*);
1330 void showRenderTree(const blink::RenderObject* object1); 1325 void showRenderTree(const blink::RenderObject* object1);
1331 // We don't make object2 an optional parameter so that showRenderTree 1326 // We don't make object2 an optional parameter so that showRenderTree
1332 // can be called from gdb easily. 1327 // can be called from gdb easily.
1333 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2); 1328 void showRenderTree(const blink::RenderObject* object1, const blink::RenderObjec t* object2);
1334 1329
1335 #endif 1330 #endif
1336 1331
1337 #endif // RenderObject_h 1332 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderImage.cpp ('k') | sky/engine/core/rendering/RenderObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698