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

Side by Side Diff: Source/core/dom/Node.h

Issue 24350009: Reverse style resolution to avoid N^2 walk when building the render tree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixing loops in Regions Created 7 years, 2 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 | Annotate | Revision Log
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 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 403
404 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); } 404 bool hasEventTargetData() const { return getFlag(HasEventTargetDataFlag); }
405 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); } 405 void setHasEventTargetData(bool flag) { setFlag(flag, HasEventTargetDataFlag ); }
406 406
407 bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuri ngMinorGCFlag); } 407 bool isV8CollectableDuringMinorGC() const { return getFlag(V8CollectableDuri ngMinorGCFlag); }
408 void setV8CollectableDuringMinorGC(bool flag) { setFlag(flag, V8CollectableD uringMinorGCFlag); } 408 void setV8CollectableDuringMinorGC(bool flag) { setFlag(flag, V8CollectableD uringMinorGCFlag); }
409 409
410 void lazyAttach(); 410 void lazyAttach();
411 void lazyReattach(); 411 void lazyReattach();
412 412
413 void reattachWhitespaceSiblings() const;
414
413 virtual void setFocus(bool flag); 415 virtual void setFocus(bool flag);
414 virtual void setActive(bool flag = true, bool pause = false); 416 virtual void setActive(bool flag = true, bool pause = false);
415 virtual void setHovered(bool flag = true); 417 virtual void setHovered(bool flag = true);
416 418
417 virtual short tabIndex() const; 419 virtual short tabIndex() const;
418 420
419 virtual Node* focusDelegate(); 421 virtual Node* focusDelegate();
420 // This is called only when the node is focused. 422 // This is called only when the node is focused.
421 virtual bool shouldHaveFocusAppearance() const; 423 virtual bool shouldHaveFocusAppearance() const;
422 424
(...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after
929 931
930 } //namespace 932 } //namespace
931 933
932 #ifndef NDEBUG 934 #ifndef NDEBUG
933 // Outside the WebCore namespace for ease of invocation from gdb. 935 // Outside the WebCore namespace for ease of invocation from gdb.
934 void showTree(const WebCore::Node*); 936 void showTree(const WebCore::Node*);
935 void showNodePath(const WebCore::Node*); 937 void showNodePath(const WebCore::Node*);
936 #endif 938 #endif
937 939
938 #endif 940 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698