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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.h

Issue 1816103002: Clear baseComputedStyle when text-autosizing changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 918
919 // Updates only the local style ptr of the object. Does not update the stat e of the object, 919 // Updates only the local style ptr of the object. Does not update the stat e of the object,
920 // and so only should be called when the style is known not to have changed (or from setStyle). 920 // and so only should be called when the style is known not to have changed (or from setStyle).
921 void setStyleInternal(PassRefPtr<ComputedStyle> style) { m_style = style; } 921 void setStyleInternal(PassRefPtr<ComputedStyle> style) { m_style = style; }
922 922
923 void setStyleWithWritingModeOfParent(PassRefPtr<ComputedStyle>); 923 void setStyleWithWritingModeOfParent(PassRefPtr<ComputedStyle>);
924 void addChildWithWritingModeOfParent(LayoutObject* newChild, LayoutObject* b eforeChild); 924 void addChildWithWritingModeOfParent(LayoutObject* newChild, LayoutObject* b eforeChild);
925 925
926 void firstLineStyleDidChange(const ComputedStyle& oldStyle, const ComputedSt yle& newStyle); 926 void firstLineStyleDidChange(const ComputedStyle& oldStyle, const ComputedSt yle& newStyle);
927 927
928 void clearBaseComputedStyle();
929
928 // This function returns an enclosing non-anonymous LayoutBlock for this 930 // This function returns an enclosing non-anonymous LayoutBlock for this
929 // element. 931 // element.
930 // This function is not always returning the containing block as defined by 932 // This function is not always returning the containing block as defined by
931 // CSS. In particular: 933 // CSS. In particular:
932 // - if the CSS containing block is a relatively positioned inline, 934 // - if the CSS containing block is a relatively positioned inline,
933 // the function returns the inline's enclosing non-anonymous LayoutBlock. 935 // the function returns the inline's enclosing non-anonymous LayoutBlock.
934 // This means that a LayoutInline would be skipped (expected as it's not a 936 // This means that a LayoutInline would be skipped (expected as it's not a
935 // LayoutBlock) but so would be an inline LayoutTable or LayoutBlockFlow. 937 // LayoutBlock) but so would be an inline LayoutTable or LayoutBlockFlow.
936 // TODO(jchaffraix): Is that REALLY what we want here? 938 // TODO(jchaffraix): Is that REALLY what we want here?
937 // - if the CSS containing block is anonymous, we find its enclosing 939 // - if the CSS containing block is anonymous, we find its enclosing
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2168 void showTree(const blink::LayoutObject*); 2170 void showTree(const blink::LayoutObject*);
2169 void showLineTree(const blink::LayoutObject*); 2171 void showLineTree(const blink::LayoutObject*);
2170 void showLayoutTree(const blink::LayoutObject* object1); 2172 void showLayoutTree(const blink::LayoutObject* object1);
2171 // We don't make object2 an optional parameter so that showLayoutTree 2173 // We don't make object2 an optional parameter so that showLayoutTree
2172 // can be called from gdb easily. 2174 // can be called from gdb easily.
2173 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2175 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2174 2176
2175 #endif 2177 #endif
2176 2178
2177 #endif // LayoutObject_h 2179 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698