OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
356 RenderView& m_view; | 356 RenderView& m_view; |
357 bool m_disabled : 1; // true if the offset and clip part of layoutSta te is disabled | 357 bool m_disabled : 1; // true if the offset and clip part of layoutSta te is disabled |
358 bool m_didStart : 1; // true if we did a push or disable | 358 bool m_didStart : 1; // true if we did a push or disable |
359 bool m_didEnd : 1; // true if we popped or re-enabled | 359 bool m_didEnd : 1; // true if we popped or re-enabled |
360 bool m_didCreateLayoutState : 1; // true if we actually made a layout state. | 360 bool m_didCreateLayoutState : 1; // true if we actually made a layout state. |
361 }; | 361 }; |
362 | 362 |
363 class LayoutStateDisabler { | 363 class LayoutStateDisabler { |
364 WTF_MAKE_NONCOPYABLE(LayoutStateDisabler); | 364 WTF_MAKE_NONCOPYABLE(LayoutStateDisabler); |
365 public: | 365 public: |
366 LayoutStateDisabler(const RenderBox& root) | 366 LayoutStateDisabler(const RenderObject& root) |
leviw_travelin_and_unemployed
2014/05/05 18:36:48
This will end up conflicting with https://coderevi
fs
2014/05/06 07:53:38
Thanks for the heads-up. Trivial though (git rebas
| |
367 : m_view(*root.view()) | 367 : m_view(*root.view()) |
368 { | 368 { |
369 m_view.disableLayoutState(); | 369 m_view.disableLayoutState(); |
370 } | 370 } |
371 | 371 |
372 ~LayoutStateDisabler() | 372 ~LayoutStateDisabler() |
373 { | 373 { |
374 m_view.enableLayoutState(); | 374 m_view.enableLayoutState(); |
375 } | 375 } |
376 private: | 376 private: |
377 RenderView& m_view; | 377 RenderView& m_view; |
378 }; | 378 }; |
379 | 379 |
380 } // namespace WebCore | 380 } // namespace WebCore |
381 | 381 |
382 #endif // RenderView_h | 382 #endif // RenderView_h |
OLD | NEW |