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

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

Issue 2001453002: Set ComputedStyle on Node and use that in buildOwnLayout() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@storage
Patch Set: Send over for review Created 4 years, 3 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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&); 908 virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&);
909 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction); 909 virtual bool nodeAtPoint(HitTestResult&, const HitTestLocation& locationInCo ntainer, const LayoutPoint& accumulatedOffset, HitTestAction);
910 910
911 virtual PositionWithAffinity positionForPoint(const LayoutPoint&); 911 virtual PositionWithAffinity positionForPoint(const LayoutPoint&);
912 PositionWithAffinity createPositionWithAffinity(int offset, TextAffinity); 912 PositionWithAffinity createPositionWithAffinity(int offset, TextAffinity);
913 PositionWithAffinity createPositionWithAffinity(int offset); 913 PositionWithAffinity createPositionWithAffinity(int offset);
914 PositionWithAffinity createPositionWithAffinity(const Position&); 914 PositionWithAffinity createPositionWithAffinity(const Position&);
915 915
916 virtual void dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior marki ngBehaviour = MarkContainerChain); 916 virtual void dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior marki ngBehaviour = MarkContainerChain);
917 917
918 // Set the style of the object from Node::setComputedStyle.
919 void setStyleFromNodeOrElement(PassRefPtr<ComputedStyle>);
920
918 // Set the style of the object and update the state of the object accordingl y. 921 // Set the style of the object and update the state of the object accordingl y.
919 void setStyle(PassRefPtr<ComputedStyle>); 922 void setStyle(PassRefPtr<ComputedStyle>);
920 923
921 // Set the style of the object if it's generated content. 924 // Set the style of the object if it's generated content.
922 void setPseudoStyle(PassRefPtr<ComputedStyle>); 925 void setPseudoStyle(PassRefPtr<ComputedStyle>);
923 926
924 // Updates only the local style ptr of the object. Does not update the stat e of the object, 927 // Updates only the local style ptr of the object. Does not update the stat e of the object,
925 // and so only should be called when the style is known not to have changed (or from setStyle). 928 // and so only should be called when the style is known not to have changed (or from setStyle).
926 void setStyleInternal(PassRefPtr<ComputedStyle> style) { m_style = style; } 929 void setStyleInternal(PassRefPtr<ComputedStyle> style) { m_style = style; }
927 930
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 void showTree(const blink::LayoutObject*); 2132 void showTree(const blink::LayoutObject*);
2130 void showLineTree(const blink::LayoutObject*); 2133 void showLineTree(const blink::LayoutObject*);
2131 void showLayoutTree(const blink::LayoutObject* object1); 2134 void showLayoutTree(const blink::LayoutObject* object1);
2132 // We don't make object2 an optional parameter so that showLayoutTree 2135 // We don't make object2 an optional parameter so that showLayoutTree
2133 // can be called from gdb easily. 2136 // can be called from gdb easily.
2134 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2); 2137 void showLayoutTree(const blink::LayoutObject* object1, const blink::LayoutObjec t* object2);
2135 2138
2136 #endif 2139 #endif
2137 2140
2138 #endif // LayoutObject_h 2141 #endif // LayoutObject_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698