OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 19 matching lines...) Expand all Loading... |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 #include "public/web/WebFrame.h" | 33 #include "public/web/WebFrame.h" |
34 | 34 |
35 #include "SkBitmap.h" | 35 #include "SkBitmap.h" |
36 #include "SkCanvas.h" | 36 #include "SkCanvas.h" |
37 #include "core/UserAgentStyleSheets.h" | 37 #include "core/UserAgentStyleSheets.h" |
38 #include "core/clipboard/Clipboard.h" | 38 #include "core/clipboard/Clipboard.h" |
39 #include "core/css/StyleSheetContents.h" | 39 #include "core/css/StyleSheetContents.h" |
| 40 #include "core/css/resolver/StyleResolver.h" |
40 #include "core/css/resolver/ViewportStyleResolver.h" | 41 #include "core/css/resolver/ViewportStyleResolver.h" |
41 #include "core/dom/DocumentMarkerController.h" | 42 #include "core/dom/DocumentMarkerController.h" |
42 #include "core/dom/FullscreenElementStack.h" | 43 #include "core/dom/FullscreenElementStack.h" |
43 #include "core/dom/Range.h" | 44 #include "core/dom/Range.h" |
44 #include "core/editing/Editor.h" | 45 #include "core/editing/Editor.h" |
45 #include "core/editing/FrameSelection.h" | 46 #include "core/editing/FrameSelection.h" |
46 #include "core/editing/SpellChecker.h" | 47 #include "core/editing/SpellChecker.h" |
47 #include "core/editing/VisiblePosition.h" | 48 #include "core/editing/VisiblePosition.h" |
48 #include "core/events/MouseEvent.h" | 49 #include "core/events/MouseEvent.h" |
49 #include "core/frame/FrameView.h" | 50 #include "core/frame/FrameView.h" |
(...skipping 5557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5607 EXPECT_EQ(0xff0000ff, frame->document().brandColor()); | 5608 EXPECT_EQ(0xff0000ff, frame->document().brandColor()); |
5608 // Change of second brand-color meta tag will not change frame's brand | 5609 // Change of second brand-color meta tag will not change frame's brand |
5609 // color. | 5610 // color. |
5610 client.reset(); | 5611 client.reset(); |
5611 frame->executeScript(WebScriptSource("document.getElementById('bc2').setAttr
ibute('content', '#00FF00');")); | 5612 frame->executeScript(WebScriptSource("document.getElementById('bc2').setAttr
ibute('content', '#00FF00');")); |
5612 EXPECT_TRUE(client.didNotify()); | 5613 EXPECT_TRUE(client.didNotify()); |
5613 EXPECT_EQ(0xff0000ff, frame->document().brandColor()); | 5614 EXPECT_EQ(0xff0000ff, frame->document().brandColor()); |
5614 } | 5615 } |
5615 | 5616 |
5616 } // namespace | 5617 } // namespace |
OLD | NEW |