| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 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 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "bindings/core/v8/ScriptFunction.h" | 31 #include "bindings/core/v8/ScriptFunction.h" |
| 32 #include "bindings/core/v8/ScriptPromise.h" | 32 #include "bindings/core/v8/ScriptPromise.h" |
| 33 #include "bindings/core/v8/ScriptPromiseResolver.h" | 33 #include "bindings/core/v8/ScriptPromiseResolver.h" |
| 34 #include "bindings/core/v8/SerializedScriptValue.h" | 34 #include "bindings/core/v8/SerializedScriptValue.h" |
| 35 #include "bindings/core/v8/SerializedScriptValueFactory.h" | 35 #include "bindings/core/v8/SerializedScriptValueFactory.h" |
| 36 #include "bindings/core/v8/V8IteratorResultValue.h" | 36 #include "bindings/core/v8/V8IteratorResultValue.h" |
| 37 #include "bindings/core/v8/V8ThrowException.h" | 37 #include "bindings/core/v8/V8ThrowException.h" |
| 38 #include "core/HTMLNames.h" | 38 #include "core/HTMLNames.h" |
| 39 #include "core/SVGNames.h" | 39 #include "core/SVGNames.h" |
| 40 #include "core/animation/AnimationTimeline.h" | 40 #include "core/animation/AnimationTimeline.h" |
| 41 #include "core/css/CSSPropertyEquality.h" |
| 41 #include "core/css/StyleSheetContents.h" | 42 #include "core/css/StyleSheetContents.h" |
| 42 #include "core/css/resolver/StyleResolver.h" | 43 #include "core/css/resolver/StyleResolver.h" |
| 43 #include "core/css/resolver/StyleResolverStats.h" | 44 #include "core/css/resolver/StyleResolverStats.h" |
| 44 #include "core/css/resolver/ViewportStyleResolver.h" | 45 #include "core/css/resolver/ViewportStyleResolver.h" |
| 45 #include "core/dom/ClientRect.h" | 46 #include "core/dom/ClientRect.h" |
| 46 #include "core/dom/ClientRectList.h" | 47 #include "core/dom/ClientRectList.h" |
| 47 #include "core/dom/DOMArrayBuffer.h" | 48 #include "core/dom/DOMArrayBuffer.h" |
| 48 #include "core/dom/DOMNodeIds.h" | 49 #include "core/dom/DOMNodeIds.h" |
| 49 #include "core/dom/DOMPoint.h" | 50 #include "core/dom/DOMPoint.h" |
| 50 #include "core/dom/DOMStringList.h" | 51 #include "core/dom/DOMStringList.h" |
| (...skipping 2536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2587 return String(); | 2588 return String(); |
| 2588 } | 2589 } |
| 2589 | 2590 |
| 2590 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2591 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2591 { | 2592 { |
| 2592 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2593 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2593 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2594 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2594 return String(); | 2595 return String(); |
| 2595 } | 2596 } |
| 2596 | 2597 |
| 2598 bool Internals::isCSSPropertyEqual(String property, Element* a, Element* b, Exce
ptionState& exceptionState) const |
| 2599 { |
| 2600 CSSPropertyID id = cssPropertyID(property); |
| 2601 if (id == CSSPropertyInvalid) { |
| 2602 exceptionState.throwDOMException(InvalidAccessError, "Invalid property."
); |
| 2603 return false; |
| 2604 } |
| 2605 |
| 2606 return CSSPropertyEquality::propertiesEqual(id, *a->ensureComputedStyle(), *
b->ensureComputedStyle()); |
| 2607 } |
| 2608 |
| 2597 } // namespace blink | 2609 } // namespace blink |
| OLD | NEW |