| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google 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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "core/HTMLNames.h" | 30 #include "core/HTMLNames.h" |
| 31 #include "core/dom/NodeComputedStyle.h" | 31 #include "core/dom/NodeComputedStyle.h" |
| 32 #include "core/dom/Text.h" | 32 #include "core/dom/Text.h" |
| 33 #include "core/editing/EditingUtilities.h" | 33 #include "core/editing/EditingUtilities.h" |
| 34 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
| 35 #include "core/editing/VisibleUnits.h" | 35 #include "core/editing/VisibleUnits.h" |
| 36 #include "core/html/HTMLBRElement.h" | 36 #include "core/html/HTMLBRElement.h" |
| 37 #include "core/html/HTMLElement.h" | 37 #include "core/html/HTMLElement.h" |
| 38 #include "core/layout/LayoutObject.h" | |
| 39 #include "core/style/ComputedStyle.h" | 38 #include "core/style/ComputedStyle.h" |
| 40 | 39 |
| 41 namespace blink { | 40 namespace blink { |
| 42 | 41 |
| 43 using namespace HTMLNames; | 42 using namespace HTMLNames; |
| 44 | 43 |
| 45 ApplyBlockElementCommand::ApplyBlockElementCommand(Document& document, const Qua
lifiedName& tagName, const AtomicString& inlineStyle) | 44 ApplyBlockElementCommand::ApplyBlockElementCommand(Document& document, const Qua
lifiedName& tagName, const AtomicString& inlineStyle) |
| 46 : CompositeEditCommand(document) | 45 : CompositeEditCommand(document) |
| 47 , m_tagName(tagName) | 46 , m_tagName(tagName) |
| 48 , m_inlineStyle(inlineStyle) | 47 , m_inlineStyle(inlineStyle) |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 return element; | 300 return element; |
| 302 } | 301 } |
| 303 | 302 |
| 304 DEFINE_TRACE(ApplyBlockElementCommand) | 303 DEFINE_TRACE(ApplyBlockElementCommand) |
| 305 { | 304 { |
| 306 visitor->trace(m_endOfLastParagraph); | 305 visitor->trace(m_endOfLastParagraph); |
| 307 CompositeEditCommand::trace(visitor); | 306 CompositeEditCommand::trace(visitor); |
| 308 } | 307 } |
| 309 | 308 |
| 310 } // namespace blink | 309 } // namespace blink |
| OLD | NEW |