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

Side by Side Diff: Source/core/rendering/RenderObject.h

Issue 172753003: Consistently disable the LayoutState for certain layout situations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 10 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
« no previous file with comments | « Source/core/rendering/RenderMedia.cpp ('k') | Source/core/rendering/RenderTable.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 963 matching lines...) Expand 10 before | Expand all | Expand 10 after
974 setShouldDoFullRepaintAfterLayout(false); 974 setShouldDoFullRepaintAfterLayout(false);
975 setShouldRepaintOverflowIfNeeded(false); 975 setShouldRepaintOverflowIfNeeded(false);
976 setLayoutDidGetCalled(false); 976 setLayoutDidGetCalled(false);
977 } 977 }
978 978
979 // layoutDidGetCalled indicates whether this render object was re-laid-out 979 // layoutDidGetCalled indicates whether this render object was re-laid-out
980 // since the last call to setLayoutDidGetCalled(false) on this object. 980 // since the last call to setLayoutDidGetCalled(false) on this object.
981 bool layoutDidGetCalled() { return m_bitfields.layoutDidGetCalled(); } 981 bool layoutDidGetCalled() { return m_bitfields.layoutDidGetCalled(); }
982 void setLayoutDidGetCalled(bool b) { m_bitfields.setLayoutDidGetCalled(b); } 982 void setLayoutDidGetCalled(bool b) { m_bitfields.setLayoutDidGetCalled(b); }
983 983
984 bool shouldDisableLayoutState() const { return hasColumns() || hasTransform( ) || hasReflection() || style()->isFlippedBlocksWritingMode(); }
pdr. 2014/02/20 21:19:48 The comment in RenderEmbeddedObject.cpp makes me t
985
984 protected: 986 protected:
985 inline bool layerCreationAllowedForSubtree() const; 987 inline bool layerCreationAllowedForSubtree() const;
986 988
987 // Overrides should call the superclass at the end 989 // Overrides should call the superclass at the end
988 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); 990 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle);
989 // Overrides should call the superclass at the start 991 // Overrides should call the superclass at the start
990 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 992 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
991 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false); 993 void propagateStyleToAnonymousChildren(bool blockChildrenOnly = false);
992 994
993 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo xSide, 995 void drawLineForBoxSide(GraphicsContext*, int x1, int y1, int x2, int y2, Bo xSide,
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
1402 void showTree(const WebCore::RenderObject*); 1404 void showTree(const WebCore::RenderObject*);
1403 void showLineTree(const WebCore::RenderObject*); 1405 void showLineTree(const WebCore::RenderObject*);
1404 void showRenderTree(const WebCore::RenderObject* object1); 1406 void showRenderTree(const WebCore::RenderObject* object1);
1405 // We don't make object2 an optional parameter so that showRenderTree 1407 // We don't make object2 an optional parameter so that showRenderTree
1406 // can be called from gdb easily. 1408 // can be called from gdb easily.
1407 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2); 1409 void showRenderTree(const WebCore::RenderObject* object1, const WebCore::RenderO bject* object2);
1408 1410
1409 #endif 1411 #endif
1410 1412
1411 #endif // RenderObject_h 1413 #endif // RenderObject_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderMedia.cpp ('k') | Source/core/rendering/RenderTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698