| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 void popAll(); | 95 void popAll(); |
| 96 | 96 |
| 97 #ifndef NDEBUG | 97 #ifndef NDEBUG |
| 98 void show(); | 98 void show(); |
| 99 #endif | 99 #endif |
| 100 | 100 |
| 101 private: | 101 private: |
| 102 void popUntil(Element*); | 102 void popUntil(Element*); |
| 103 void pushCommon(PassRefPtr<ContainerNode>); | 103 void pushCommon(PassRefPtr<ContainerNode>); |
| 104 void popCommon(); | 104 void popCommon(); |
| 105 void removeNonTopCommon(Element*); | |
| 106 | 105 |
| 107 OwnPtr<ElementRecord> m_top; | 106 OwnPtr<ElementRecord> m_top; |
| 108 | 107 |
| 109 ContainerNode* m_rootNode; | 108 ContainerNode* m_rootNode; |
| 110 unsigned m_stackDepth; | 109 unsigned m_stackDepth; |
| 111 }; | 110 }; |
| 112 | 111 |
| 113 } // namespace blink | 112 } // namespace blink |
| 114 | 113 |
| 115 #endif // SKY_ENGINE_CORE_HTML_PARSER_HTMLELEMENTSTACK_H_ | 114 #endif // SKY_ENGINE_CORE_HTML_PARSER_HTMLELEMENTSTACK_H_ |
| OLD | NEW |